diff options
Diffstat (limited to 'arch/arm/mach-ep93xx/include/mach')
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | 20 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/memory.h | 6 |
2 files changed, 23 insertions, 3 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h index 1732de7629a5..967c079180db 100644 --- a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h +++ b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | |||
@@ -147,13 +147,27 @@ | |||
147 | #define EP93XX_PWM_BASE (EP93XX_APB_VIRT_BASE + 0x00110000) | 147 | #define EP93XX_PWM_BASE (EP93XX_APB_VIRT_BASE + 0x00110000) |
148 | 148 | ||
149 | #define EP93XX_RTC_BASE (EP93XX_APB_VIRT_BASE + 0x00120000) | 149 | #define EP93XX_RTC_BASE (EP93XX_APB_VIRT_BASE + 0x00120000) |
150 | #define EP93XX_RTC_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00120000) | ||
150 | 151 | ||
151 | #define EP93XX_SYSCON_BASE (EP93XX_APB_VIRT_BASE + 0x00130000) | 152 | #define EP93XX_SYSCON_BASE (EP93XX_APB_VIRT_BASE + 0x00130000) |
152 | #define EP93XX_SYSCON_REG(x) (EP93XX_SYSCON_BASE + (x)) | 153 | #define EP93XX_SYSCON_REG(x) (EP93XX_SYSCON_BASE + (x)) |
153 | #define EP93XX_SYSCON_POWER_STATE EP93XX_SYSCON_REG(0x00) | 154 | #define EP93XX_SYSCON_POWER_STATE EP93XX_SYSCON_REG(0x00) |
154 | #define EP93XX_SYSCON_CLOCK_CONTROL EP93XX_SYSCON_REG(0x04) | 155 | #define EP93XX_SYSCON_PWRCNT EP93XX_SYSCON_REG(0x04) |
155 | #define EP93XX_SYSCON_CLOCK_UARTBAUD 0x20000000 | 156 | #define EP93XX_SYSCON_PWRCNT_FIR_EN (1<<31) |
156 | #define EP93XX_SYSCON_CLOCK_USH_EN 0x10000000 | 157 | #define EP93XX_SYSCON_PWRCNT_UARTBAUD (1<<29) |
158 | #define EP93XX_SYSCON_PWRCNT_USH_EN (1<<28) | ||
159 | #define EP93XX_SYSCON_PWRCNT_DMA_M2M1 (1<<27) | ||
160 | #define EP93XX_SYSCON_PWRCNT_DMA_M2M0 (1<<26) | ||
161 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P8 (1<<25) | ||
162 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P9 (1<<24) | ||
163 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P6 (1<<23) | ||
164 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P7 (1<<22) | ||
165 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P4 (1<<21) | ||
166 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P5 (1<<20) | ||
167 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P2 (1<<19) | ||
168 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P3 (1<<18) | ||
169 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P0 (1<<17) | ||
170 | #define EP93XX_SYSCON_PWRCNT_DMA_M2P1 (1<<16) | ||
157 | #define EP93XX_SYSCON_HALT EP93XX_SYSCON_REG(0x08) | 171 | #define EP93XX_SYSCON_HALT EP93XX_SYSCON_REG(0x08) |
158 | #define EP93XX_SYSCON_STANDBY EP93XX_SYSCON_REG(0x0c) | 172 | #define EP93XX_SYSCON_STANDBY EP93XX_SYSCON_REG(0x0c) |
159 | #define EP93XX_SYSCON_CLOCK_SET1 EP93XX_SYSCON_REG(0x20) | 173 | #define EP93XX_SYSCON_CLOCK_SET1 EP93XX_SYSCON_REG(0x20) |
diff --git a/arch/arm/mach-ep93xx/include/mach/memory.h b/arch/arm/mach-ep93xx/include/mach/memory.h index 5c80c3c8158d..925b12ea0990 100644 --- a/arch/arm/mach-ep93xx/include/mach/memory.h +++ b/arch/arm/mach-ep93xx/include/mach/memory.h | |||
@@ -5,6 +5,12 @@ | |||
5 | #ifndef __ASM_ARCH_MEMORY_H | 5 | #ifndef __ASM_ARCH_MEMORY_H |
6 | #define __ASM_ARCH_MEMORY_H | 6 | #define __ASM_ARCH_MEMORY_H |
7 | 7 | ||
8 | #if defined(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET) | ||
8 | #define PHYS_OFFSET UL(0x00000000) | 9 | #define PHYS_OFFSET UL(0x00000000) |
10 | #elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) | ||
11 | #define PHYS_OFFSET UL(0xc0000000) | ||
12 | #else | ||
13 | #error "Kconfig bug: No EP93xx PHYS_OFFSET set" | ||
14 | #endif | ||
9 | 15 | ||
10 | #endif | 16 | #endif |