diff options
Diffstat (limited to 'include/asm-arm/arch-lh7a40x/registers.h')
-rw-r--r-- | include/asm-arm/arch-lh7a40x/registers.h | 64 |
1 files changed, 48 insertions, 16 deletions
diff --git a/include/asm-arm/arch-lh7a40x/registers.h b/include/asm-arm/arch-lh7a40x/registers.h index 2edb22e35450..544307bb87a2 100644 --- a/include/asm-arm/arch-lh7a40x/registers.h +++ b/include/asm-arm/arch-lh7a40x/registers.h | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | /* Physical register base addresses */ | 19 | /* Physical register base addresses */ |
20 | 20 | ||
21 | #define AC97_PHYS (0x80000000) /* AC97 Controller */ | 21 | #define AC97C_PHYS (0x80000000) /* AC97 Controller */ |
22 | #define MMC_PHYS (0x80000100) /* Multimedia Card Controller */ | 22 | #define MMC_PHYS (0x80000100) /* Multimedia Card Controller */ |
23 | #define USB_PHYS (0x80000200) /* USB Client */ | 23 | #define USB_PHYS (0x80000200) /* USB Client */ |
24 | #define SCI_PHYS (0x80000300) /* Secure Card Interface */ | 24 | #define SCI_PHYS (0x80000300) /* Secure Card Interface */ |
@@ -35,6 +35,8 @@ | |||
35 | #define RTC_PHYS (0x80000d00) /* Real-time Clock */ | 35 | #define RTC_PHYS (0x80000d00) /* Real-time Clock */ |
36 | #define GPIO_PHYS (0x80000e00) /* General Purpose IO */ | 36 | #define GPIO_PHYS (0x80000e00) /* General Purpose IO */ |
37 | #define BMI_PHYS (0x80000f00) /* Battery Monitor Interface */ | 37 | #define BMI_PHYS (0x80000f00) /* Battery Monitor Interface */ |
38 | #define HRTFTC_PHYS (0x80001000) /* High-res TFT Controller (LH7A400) */ | ||
39 | #define ALI_PHYS (0x80001000) /* Advanced LCD Interface (LH7A404) */ | ||
38 | #define WDT_PHYS (0x80001400) /* Watchdog Timer */ | 40 | #define WDT_PHYS (0x80001400) /* Watchdog Timer */ |
39 | #define SMC_PHYS (0x80002000) /* Static Memory Controller */ | 41 | #define SMC_PHYS (0x80002000) /* Static Memory Controller */ |
40 | #define SDRC_PHYS (0x80002400) /* SDRAM Controller */ | 42 | #define SDRC_PHYS (0x80002400) /* SDRAM Controller */ |
@@ -43,6 +45,7 @@ | |||
43 | 45 | ||
44 | /* Physical registers of the LH7A404 */ | 46 | /* Physical registers of the LH7A404 */ |
45 | 47 | ||
48 | #define ADC_PHYS (0x80001300) /* A/D & Touchscreen Controller */ | ||
46 | #define VIC1_PHYS (0x80008000) /* Vectored Interrupt Controller 1 */ | 49 | #define VIC1_PHYS (0x80008000) /* Vectored Interrupt Controller 1 */ |
47 | #define USBH_PHYS (0x80009000) /* USB OHCI host controller */ | 50 | #define USBH_PHYS (0x80009000) /* USB OHCI host controller */ |
48 | #define VIC2_PHYS (0x8000a000) /* Vectored Interrupt Controller 2 */ | 51 | #define VIC2_PHYS (0x8000a000) /* Vectored Interrupt Controller 2 */ |
@@ -53,10 +56,32 @@ | |||
53 | 56 | ||
54 | /* Clock/State Controller register */ | 57 | /* Clock/State Controller register */ |
55 | 58 | ||
59 | #define CSC_PWRSR __REG(CSC_PHYS + 0x00) /* Reset register & ID */ | ||
56 | #define CSC_PWRCNT __REG(CSC_PHYS + 0x04) /* Power control */ | 60 | #define CSC_PWRCNT __REG(CSC_PHYS + 0x04) /* Power control */ |
61 | #define CSC_CLKSET __REG(CSC_PHYS + 0x20) /* Clock speed control */ | ||
62 | #define CSC_USBDRESET __REG(CSC_PHYS + 0x4c) /* USB Device resets */ | ||
57 | 63 | ||
58 | #define CSC_PWRCNT_USBH_EN (1<<28) /* USB Host power enable */ | 64 | #define CSC_PWRCNT_USBH_EN (1<<28) /* USB Host power enable */ |
59 | 65 | #define CSC_PWRCNT_DMAC_M2M1_EN (1<<27) | |
66 | #define CSC_PWRCNT_DMAC_M2M0_EN (1<<26) | ||
67 | #define CSC_PWRCNT_DMAC_M2P8_EN (1<<25) | ||
68 | #define CSC_PWRCNT_DMAC_M2P9_EN (1<<24) | ||
69 | #define CSC_PWRCNT_DMAC_M2P6_EN (1<<23) | ||
70 | #define CSC_PWRCNT_DMAC_M2P7_EN (1<<22) | ||
71 | #define CSC_PWRCNT_DMAC_M2P4_EN (1<<21) | ||
72 | #define CSC_PWRCNT_DMAC_M2P5_EN (1<<20) | ||
73 | #define CSC_PWRCNT_DMAC_M2P2_EN (1<<19) | ||
74 | #define CSC_PWRCNT_DMAC_M2P3_EN (1<<18) | ||
75 | #define CSC_PWRCNT_DMAC_M2P0_EN (1<<17) | ||
76 | #define CSC_PWRCNT_DMAC_M2P1_EN (1<<16) | ||
77 | |||
78 | #define CSC_PWRSR_CHIPMAN_SHIFT (24) | ||
79 | #define CSC_PWRSR_CHIPMAN_MASK (0xff) | ||
80 | #define CSC_PWRSR_CHIPID_SHIFT (16) | ||
81 | #define CSC_PWRSR_CHIPID_MASK (0xff) | ||
82 | |||
83 | #define CSC_USBDRESET_APBRESETREG (1<<1) | ||
84 | #define CSC_USBDRESET_IORESETREG (1<<0) | ||
60 | 85 | ||
61 | /* Interrupt Controller registers */ | 86 | /* Interrupt Controller registers */ |
62 | 87 | ||
@@ -109,6 +134,13 @@ | |||
109 | #define GPIO_GPIOFEOI __REG(GPIO_PHYS + 0x54) /* GPIO End-of-Interrupt */ | 134 | #define GPIO_GPIOFEOI __REG(GPIO_PHYS + 0x54) /* GPIO End-of-Interrupt */ |
110 | #define GPIO_GPIOINTEN __REG(GPIO_PHYS + 0x58) /* GPIO Interrupt Enable */ | 135 | #define GPIO_GPIOINTEN __REG(GPIO_PHYS + 0x58) /* GPIO Interrupt Enable */ |
111 | #define GPIO_INTSTATUS __REG(GPIO_PHYS + 0x5c) /* GPIO Interrupt Status */ | 136 | #define GPIO_INTSTATUS __REG(GPIO_PHYS + 0x5c) /* GPIO Interrupt Status */ |
137 | #define GPIO_PINMUX __REG(GPIO_PHYS + 0x2c) | ||
138 | #define GPIO_PADD __REG(GPIO_PHYS + 0x10) | ||
139 | #define GPIO_PAD __REG(GPIO_PHYS + 0x00) | ||
140 | #define GPIO_PCD __REG(GPIO_PHYS + 0x08) | ||
141 | #define GPIO_PCDD __REG(GPIO_PHYS + 0x18) | ||
142 | #define GPIO_PEDD __REG(GPIO_PHYS + 0x24) | ||
143 | #define GPIO_PED __REG(GPIO_PHYS + 0x20) | ||
112 | 144 | ||
113 | 145 | ||
114 | /* Static Memory Controller registers */ | 146 | /* Static Memory Controller registers */ |
@@ -138,20 +170,21 @@ | |||
138 | #endif | 170 | #endif |
139 | 171 | ||
140 | #if defined (CONFIG_MACH_LPD7A400) || defined (CONFIG_MACH_LPD7A404) | 172 | #if defined (CONFIG_MACH_LPD7A400) || defined (CONFIG_MACH_LPD7A404) |
141 | # define CPLD_CONTROL __REG8(CPLD02_PHYS) | ||
142 | # define CPLD_SPI_DATA __REG8(CPLD06_PHYS) | ||
143 | # define CPLD_SPI_CONTROL __REG8(CPLD08_PHYS) | ||
144 | # define CPLD_SPI_EEPROM __REG8(CPLD0A_PHYS) | ||
145 | # define CPLD_INTERRUPTS __REG8(CPLD0C_PHYS) /* IRQ mask/status */ | ||
146 | # define CPLD_BOOT_MODE __REG8(CPLD0E_PHYS) | ||
147 | # define CPLD_FLASH __REG8(CPLD10_PHYS) | ||
148 | # define CPLD_POWER_MGMT __REG8(CPLD12_PHYS) | ||
149 | # define CPLD_REVISION __REG8(CPLD14_PHYS) | ||
150 | # define CPLD_GPIO_EXT __REG8(CPLD16_PHYS) | ||
151 | # define CPLD_GPIO_DATA __REG8(CPLD18_PHYS) | ||
152 | # define CPLD_GPIO_DIR __REG8(CPLD1A_PHYS) | ||
153 | #endif | ||
154 | 173 | ||
174 | # define CPLD_CONTROL __REG16(CPLD02_PHYS) | ||
175 | # define CPLD_SPI_DATA __REG16(CPLD06_PHYS) | ||
176 | # define CPLD_SPI_CONTROL __REG16(CPLD08_PHYS) | ||
177 | # define CPLD_SPI_EEPROM __REG16(CPLD0A_PHYS) | ||
178 | # define CPLD_INTERRUPTS __REG16(CPLD0C_PHYS) /* IRQ mask/status */ | ||
179 | # define CPLD_BOOT_MODE __REG16(CPLD0E_PHYS) | ||
180 | # define CPLD_FLASH __REG16(CPLD10_PHYS) | ||
181 | # define CPLD_POWER_MGMT __REG16(CPLD12_PHYS) | ||
182 | # define CPLD_REVISION __REG16(CPLD14_PHYS) | ||
183 | # define CPLD_GPIO_EXT __REG16(CPLD16_PHYS) | ||
184 | # define CPLD_GPIO_DATA __REG16(CPLD18_PHYS) | ||
185 | # define CPLD_GPIO_DIR __REG16(CPLD1A_PHYS) | ||
186 | |||
187 | #endif | ||
155 | 188 | ||
156 | /* Timer registers */ | 189 | /* Timer registers */ |
157 | 190 | ||
@@ -190,4 +223,3 @@ | |||
190 | 223 | ||
191 | 224 | ||
192 | #endif /* _ASM_ARCH_REGISTERS_H */ | 225 | #endif /* _ASM_ARCH_REGISTERS_H */ |
193 | |||