diff options
Diffstat (limited to 'arch/arm/mach-omap1/include')
-rw-r--r-- | arch/arm/mach-omap1/include/mach/ams-delta-fiq.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/board-ams-delta.h | 71 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/board-sx1.h | 52 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/board-voiceblue.h | 19 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/flash.h | 17 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/gpio.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/hardware.h | 285 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/irda.h | 33 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/irqs.h | 267 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/mux.h | 454 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/omap1510.h | 49 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/omap16xx.h | 201 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/omap7xx.h | 106 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/smp.h | 5 |
14 files changed, 1548 insertions, 15 deletions
diff --git a/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h b/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h index 23eed0035ed..adb5e764965 100644 --- a/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h +++ b/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h | |||
@@ -14,8 +14,6 @@ | |||
14 | #ifndef __AMS_DELTA_FIQ_H | 14 | #ifndef __AMS_DELTA_FIQ_H |
15 | #define __AMS_DELTA_FIQ_H | 15 | #define __AMS_DELTA_FIQ_H |
16 | 16 | ||
17 | #include <plat/irqs.h> | ||
18 | |||
19 | /* | 17 | /* |
20 | * Interrupt number used for passing control from FIQ to IRQ. | 18 | * Interrupt number used for passing control from FIQ to IRQ. |
21 | * IRQ12, described as reserved, has been selected. | 19 | * IRQ12, described as reserved, has been selected. |
diff --git a/arch/arm/mach-omap1/include/mach/board-ams-delta.h b/arch/arm/mach-omap1/include/mach/board-ams-delta.h new file mode 100644 index 00000000000..ad6f865d1f1 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/board-ams-delta.h | |||
@@ -0,0 +1,71 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/board-ams-delta.h | ||
3 | * | ||
4 | * Copyright (C) 2006 Jonathan McDowell <noodles@earth.li> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | * | ||
11 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
12 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
13 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
14 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
15 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
16 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
17 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
18 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
19 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
20 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License along | ||
23 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
24 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | #ifndef __ASM_ARCH_OMAP_AMS_DELTA_H | ||
27 | #define __ASM_ARCH_OMAP_AMS_DELTA_H | ||
28 | |||
29 | #if defined (CONFIG_MACH_AMS_DELTA) | ||
30 | |||
31 | #define AMD_DELTA_LATCH2_SCARD_RSTIN 0x0400 | ||
32 | #define AMD_DELTA_LATCH2_SCARD_CMDVCC 0x0800 | ||
33 | #define AMS_DELTA_LATCH2_MODEM_CODEC 0x2000 | ||
34 | |||
35 | #define AMS_DELTA_GPIO_PIN_KEYBRD_DATA 0 | ||
36 | #define AMS_DELTA_GPIO_PIN_KEYBRD_CLK 1 | ||
37 | #define AMS_DELTA_GPIO_PIN_MODEM_IRQ 2 | ||
38 | #define AMS_DELTA_GPIO_PIN_HOOK_SWITCH 4 | ||
39 | #define AMS_DELTA_GPIO_PIN_SCARD_NOFF 6 | ||
40 | #define AMS_DELTA_GPIO_PIN_SCARD_IO 7 | ||
41 | #define AMS_DELTA_GPIO_PIN_CONFIG 11 | ||
42 | #define AMS_DELTA_GPIO_PIN_NAND_RB 12 | ||
43 | |||
44 | #define AMS_DELTA_GPIO_PIN_LCD_VBLEN 240 | ||
45 | #define AMS_DELTA_GPIO_PIN_LCD_NDISP 241 | ||
46 | #define AMS_DELTA_GPIO_PIN_NAND_NCE 242 | ||
47 | #define AMS_DELTA_GPIO_PIN_NAND_NRE 243 | ||
48 | #define AMS_DELTA_GPIO_PIN_NAND_NWP 244 | ||
49 | #define AMS_DELTA_GPIO_PIN_NAND_NWE 245 | ||
50 | #define AMS_DELTA_GPIO_PIN_NAND_ALE 246 | ||
51 | #define AMS_DELTA_GPIO_PIN_NAND_CLE 247 | ||
52 | #define AMS_DELTA_GPIO_PIN_KEYBRD_PWR 248 | ||
53 | #define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT 249 | ||
54 | #define AMS_DELTA_GPIO_PIN_SCARD_RSTIN 250 | ||
55 | #define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC 251 | ||
56 | #define AMS_DELTA_GPIO_PIN_MODEM_NRESET 252 | ||
57 | #define AMS_DELTA_GPIO_PIN_MODEM_CODEC 253 | ||
58 | |||
59 | #define AMS_DELTA_LATCH2_GPIO_BASE AMS_DELTA_GPIO_PIN_LCD_VBLEN | ||
60 | #define AMS_DELTA_LATCH2_NGPIO 16 | ||
61 | |||
62 | #ifndef __ASSEMBLY__ | ||
63 | void ams_delta_latch_write(int base, int ngpio, u16 mask, u16 value); | ||
64 | #define ams_delta_latch2_write(mask, value) \ | ||
65 | ams_delta_latch_write(AMS_DELTA_LATCH2_GPIO_BASE, \ | ||
66 | AMS_DELTA_LATCH2_NGPIO, (mask), (value)) | ||
67 | #endif | ||
68 | |||
69 | #endif /* CONFIG_MACH_AMS_DELTA */ | ||
70 | |||
71 | #endif /* __ASM_ARCH_OMAP_AMS_DELTA_H */ | ||
diff --git a/arch/arm/mach-omap1/include/mach/board-sx1.h b/arch/arm/mach-omap1/include/mach/board-sx1.h new file mode 100644 index 00000000000..355adbdaae3 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/board-sx1.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /* | ||
2 | * Siemens SX1 board definitions | ||
3 | * | ||
4 | * Copyright: Vovan888 at gmail com | ||
5 | * | ||
6 | * This package is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
11 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
12 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_ARCH_SX1_I2C_CHIPS_H | ||
16 | #define __ASM_ARCH_SX1_I2C_CHIPS_H | ||
17 | |||
18 | #define SOFIA_MAX_LIGHT_VAL 0x2B | ||
19 | |||
20 | #define SOFIA_I2C_ADDR 0x32 | ||
21 | /* Sofia reg 3 bits masks */ | ||
22 | #define SOFIA_POWER1_REG 0x03 | ||
23 | |||
24 | #define SOFIA_USB_POWER 0x01 | ||
25 | #define SOFIA_MMC_POWER 0x04 | ||
26 | #define SOFIA_BLUETOOTH_POWER 0x08 | ||
27 | #define SOFIA_MMILIGHT_POWER 0x20 | ||
28 | |||
29 | #define SOFIA_POWER2_REG 0x04 | ||
30 | #define SOFIA_BACKLIGHT_REG 0x06 | ||
31 | #define SOFIA_KEYLIGHT_REG 0x07 | ||
32 | #define SOFIA_DIMMING_REG 0x09 | ||
33 | |||
34 | |||
35 | /* Function Prototypes for SX1 devices control on I2C bus */ | ||
36 | |||
37 | int sx1_setbacklight(u8 backlight); | ||
38 | int sx1_getbacklight(u8 *backlight); | ||
39 | int sx1_setkeylight(u8 keylight); | ||
40 | int sx1_getkeylight(u8 *keylight); | ||
41 | |||
42 | int sx1_setmmipower(u8 onoff); | ||
43 | int sx1_setusbpower(u8 onoff); | ||
44 | int sx1_i2c_read_byte(u8 devaddr, u8 regoffset, u8 *value); | ||
45 | int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value); | ||
46 | |||
47 | /* MMC prototypes */ | ||
48 | |||
49 | extern void sx1_mmc_init(void); | ||
50 | extern void sx1_mmc_slot_cover_handler(void *arg, int state); | ||
51 | |||
52 | #endif /* __ASM_ARCH_SX1_I2C_CHIPS_H */ | ||
diff --git a/arch/arm/mach-omap1/include/mach/board-voiceblue.h b/arch/arm/mach-omap1/include/mach/board-voiceblue.h new file mode 100644 index 00000000000..27916b210f5 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/board-voiceblue.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004 2N Telekomunikace, Ladislav Michl <michl@2n.cz> | ||
3 | * | ||
4 | * Hardware definitions for OMAP5910 based VoiceBlue board. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARCH_VOICEBLUE_H | ||
12 | #define __ASM_ARCH_VOICEBLUE_H | ||
13 | |||
14 | extern void voiceblue_wdt_enable(void); | ||
15 | extern void voiceblue_wdt_disable(void); | ||
16 | extern void voiceblue_wdt_ping(void); | ||
17 | |||
18 | #endif /* __ASM_ARCH_VOICEBLUE_H */ | ||
19 | |||
diff --git a/arch/arm/mach-omap1/include/mach/flash.h b/arch/arm/mach-omap1/include/mach/flash.h new file mode 100644 index 00000000000..0d88499b79e --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/flash.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* | ||
2 | * Flash support for OMAP1 | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #ifndef __OMAP_FLASH_H | ||
10 | #define __OMAP_FLASH_H | ||
11 | |||
12 | #include <linux/mtd/map.h> | ||
13 | |||
14 | struct platform_device; | ||
15 | extern void omap1_set_vpp(struct platform_device *pdev, int enable); | ||
16 | |||
17 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/gpio.h b/arch/arm/mach-omap1/include/mach/gpio.h index e737706a8fe..ebf86c0f4f4 100644 --- a/arch/arm/mach-omap1/include/mach/gpio.h +++ b/arch/arm/mach-omap1/include/mach/gpio.h | |||
@@ -1,5 +1,3 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-omap1/include/mach/gpio.h | 2 | * arch/arm/mach-omap1/include/mach/gpio.h |
3 | */ | 3 | */ |
4 | |||
5 | #include <plat/gpio.h> | ||
diff --git a/arch/arm/mach-omap1/include/mach/hardware.h b/arch/arm/mach-omap1/include/mach/hardware.h index 01e35fa106b..84248d250ad 100644 --- a/arch/arm/mach-omap1/include/mach/hardware.h +++ b/arch/arm/mach-omap1/include/mach/hardware.h | |||
@@ -1,11 +1,46 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-omap1/include/mach/hardware.h | 2 | * arch/arm/mach-omap1/include/mach/hardware.h |
3 | * | ||
4 | * Hardware definitions for TI OMAP processors and boards | ||
5 | * | ||
6 | * NOTE: Please put device driver specific defines into a separate header | ||
7 | * file for each driver. | ||
8 | * | ||
9 | * Copyright (C) 2001 RidgeRun, Inc. | ||
10 | * Author: RidgeRun, Inc. Greg Lonnon <glonnon@ridgerun.com> | ||
11 | * | ||
12 | * Reorganized for Linux-2.6 by Tony Lindgren <tony@atomide.com> | ||
13 | * and Dirk Behme <dirk.behme@de.bosch.com> | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or modify it | ||
16 | * under the terms of the GNU General Public License as published by the | ||
17 | * Free Software Foundation; either version 2 of the License, or (at your | ||
18 | * option) any later version. | ||
19 | * | ||
20 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
21 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
23 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
24 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
25 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
26 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
27 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
29 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
30 | * | ||
31 | * You should have received a copy of the GNU General Public License along | ||
32 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
33 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
3 | */ | 34 | */ |
4 | 35 | ||
5 | #ifndef __MACH_HARDWARE_H | 36 | #ifndef __ASM_ARCH_OMAP_HARDWARE_H |
6 | #define __MACH_HARDWARE_H | 37 | #define __ASM_ARCH_OMAP_HARDWARE_H |
7 | 38 | ||
39 | #include <asm/sizes.h> | ||
8 | #ifndef __ASSEMBLER__ | 40 | #ifndef __ASSEMBLER__ |
41 | #include <asm/types.h> | ||
42 | #include <plat/cpu.h> | ||
43 | |||
9 | /* | 44 | /* |
10 | * NOTE: Please use ioremap + __raw_read/write where possible instead of these | 45 | * NOTE: Please use ioremap + __raw_read/write where possible instead of these |
11 | */ | 46 | */ |
@@ -35,7 +70,249 @@ static inline u32 omap_cs3_phys(void) | |||
35 | ? 0 : OMAP_CS3_PHYS; | 70 | ? 0 : OMAP_CS3_PHYS; |
36 | } | 71 | } |
37 | 72 | ||
73 | #endif /* ifndef __ASSEMBLER__ */ | ||
74 | |||
75 | #include <plat/serial.h> | ||
76 | |||
77 | /* | ||
78 | * --------------------------------------------------------------------------- | ||
79 | * Common definitions for all OMAP processors | ||
80 | * NOTE: Put all processor or board specific parts to the special header | ||
81 | * files. | ||
82 | * --------------------------------------------------------------------------- | ||
83 | */ | ||
84 | |||
85 | /* | ||
86 | * ---------------------------------------------------------------------------- | ||
87 | * Timers | ||
88 | * ---------------------------------------------------------------------------- | ||
89 | */ | ||
90 | #define OMAP_MPU_TIMER1_BASE (0xfffec500) | ||
91 | #define OMAP_MPU_TIMER2_BASE (0xfffec600) | ||
92 | #define OMAP_MPU_TIMER3_BASE (0xfffec700) | ||
93 | #define MPU_TIMER_FREE (1 << 6) | ||
94 | #define MPU_TIMER_CLOCK_ENABLE (1 << 5) | ||
95 | #define MPU_TIMER_AR (1 << 1) | ||
96 | #define MPU_TIMER_ST (1 << 0) | ||
97 | |||
98 | /* | ||
99 | * ---------------------------------------------------------------------------- | ||
100 | * Clocks | ||
101 | * ---------------------------------------------------------------------------- | ||
102 | */ | ||
103 | #define CLKGEN_REG_BASE (0xfffece00) | ||
104 | #define ARM_CKCTL (CLKGEN_REG_BASE + 0x0) | ||
105 | #define ARM_IDLECT1 (CLKGEN_REG_BASE + 0x4) | ||
106 | #define ARM_IDLECT2 (CLKGEN_REG_BASE + 0x8) | ||
107 | #define ARM_EWUPCT (CLKGEN_REG_BASE + 0xC) | ||
108 | #define ARM_RSTCT1 (CLKGEN_REG_BASE + 0x10) | ||
109 | #define ARM_RSTCT2 (CLKGEN_REG_BASE + 0x14) | ||
110 | #define ARM_SYSST (CLKGEN_REG_BASE + 0x18) | ||
111 | #define ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24) | ||
112 | |||
113 | #define CK_RATEF 1 | ||
114 | #define CK_IDLEF 2 | ||
115 | #define CK_ENABLEF 4 | ||
116 | #define CK_SELECTF 8 | ||
117 | #define SETARM_IDLE_SHIFT | ||
118 | |||
119 | /* DPLL control registers */ | ||
120 | #define DPLL_CTL (0xfffecf00) | ||
121 | |||
122 | /* DSP clock control. Must use __raw_readw() and __raw_writew() with these */ | ||
123 | #define DSP_CONFIG_REG_BASE IOMEM(0xe1008000) | ||
124 | #define DSP_CKCTL (DSP_CONFIG_REG_BASE + 0x0) | ||
125 | #define DSP_IDLECT1 (DSP_CONFIG_REG_BASE + 0x4) | ||
126 | #define DSP_IDLECT2 (DSP_CONFIG_REG_BASE + 0x8) | ||
127 | #define DSP_RSTCT2 (DSP_CONFIG_REG_BASE + 0x14) | ||
128 | |||
129 | /* | ||
130 | * --------------------------------------------------------------------------- | ||
131 | * UPLD | ||
132 | * --------------------------------------------------------------------------- | ||
133 | */ | ||
134 | #define ULPD_REG_BASE (0xfffe0800) | ||
135 | #define ULPD_IT_STATUS (ULPD_REG_BASE + 0x14) | ||
136 | #define ULPD_SETUP_ANALOG_CELL_3 (ULPD_REG_BASE + 0x24) | ||
137 | #define ULPD_CLOCK_CTRL (ULPD_REG_BASE + 0x30) | ||
138 | # define DIS_USB_PVCI_CLK (1 << 5) /* no USB/FAC synch */ | ||
139 | # define USB_MCLK_EN (1 << 4) /* enable W4_USB_CLKO */ | ||
140 | #define ULPD_SOFT_REQ (ULPD_REG_BASE + 0x34) | ||
141 | # define SOFT_UDC_REQ (1 << 4) | ||
142 | # define SOFT_USB_CLK_REQ (1 << 3) | ||
143 | # define SOFT_DPLL_REQ (1 << 0) | ||
144 | #define ULPD_DPLL_CTRL (ULPD_REG_BASE + 0x3c) | ||
145 | #define ULPD_STATUS_REQ (ULPD_REG_BASE + 0x40) | ||
146 | #define ULPD_APLL_CTRL (ULPD_REG_BASE + 0x4c) | ||
147 | #define ULPD_POWER_CTRL (ULPD_REG_BASE + 0x50) | ||
148 | #define ULPD_SOFT_DISABLE_REQ_REG (ULPD_REG_BASE + 0x68) | ||
149 | # define DIS_MMC2_DPLL_REQ (1 << 11) | ||
150 | # define DIS_MMC1_DPLL_REQ (1 << 10) | ||
151 | # define DIS_UART3_DPLL_REQ (1 << 9) | ||
152 | # define DIS_UART2_DPLL_REQ (1 << 8) | ||
153 | # define DIS_UART1_DPLL_REQ (1 << 7) | ||
154 | # define DIS_USB_HOST_DPLL_REQ (1 << 6) | ||
155 | #define ULPD_SDW_CLK_DIV_CTRL_SEL (ULPD_REG_BASE + 0x74) | ||
156 | #define ULPD_CAM_CLK_CTRL (ULPD_REG_BASE + 0x7c) | ||
157 | |||
158 | /* | ||
159 | * --------------------------------------------------------------------------- | ||
160 | * Watchdog timer | ||
161 | * --------------------------------------------------------------------------- | ||
162 | */ | ||
163 | |||
164 | /* Watchdog timer within the OMAP3.2 gigacell */ | ||
165 | #define OMAP_MPU_WATCHDOG_BASE (0xfffec800) | ||
166 | #define OMAP_WDT_TIMER (OMAP_MPU_WATCHDOG_BASE + 0x0) | ||
167 | #define OMAP_WDT_LOAD_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) | ||
168 | #define OMAP_WDT_READ_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) | ||
169 | #define OMAP_WDT_TIMER_MODE (OMAP_MPU_WATCHDOG_BASE + 0x8) | ||
170 | |||
171 | /* | ||
172 | * --------------------------------------------------------------------------- | ||
173 | * Interrupts | ||
174 | * --------------------------------------------------------------------------- | ||
175 | */ | ||
176 | #ifdef CONFIG_ARCH_OMAP1 | ||
177 | |||
178 | /* | ||
179 | * XXX: These probably want to be moved to arch/arm/mach-omap/omap1/irq.c | ||
180 | * or something similar.. -- PFM. | ||
181 | */ | ||
182 | |||
183 | #define OMAP_IH1_BASE 0xfffecb00 | ||
184 | #define OMAP_IH2_BASE 0xfffe0000 | ||
185 | |||
186 | #define OMAP_IH1_ITR (OMAP_IH1_BASE + 0x00) | ||
187 | #define OMAP_IH1_MIR (OMAP_IH1_BASE + 0x04) | ||
188 | #define OMAP_IH1_SIR_IRQ (OMAP_IH1_BASE + 0x10) | ||
189 | #define OMAP_IH1_SIR_FIQ (OMAP_IH1_BASE + 0x14) | ||
190 | #define OMAP_IH1_CONTROL (OMAP_IH1_BASE + 0x18) | ||
191 | #define OMAP_IH1_ILR0 (OMAP_IH1_BASE + 0x1c) | ||
192 | #define OMAP_IH1_ISR (OMAP_IH1_BASE + 0x9c) | ||
193 | |||
194 | #define OMAP_IH2_ITR (OMAP_IH2_BASE + 0x00) | ||
195 | #define OMAP_IH2_MIR (OMAP_IH2_BASE + 0x04) | ||
196 | #define OMAP_IH2_SIR_IRQ (OMAP_IH2_BASE + 0x10) | ||
197 | #define OMAP_IH2_SIR_FIQ (OMAP_IH2_BASE + 0x14) | ||
198 | #define OMAP_IH2_CONTROL (OMAP_IH2_BASE + 0x18) | ||
199 | #define OMAP_IH2_ILR0 (OMAP_IH2_BASE + 0x1c) | ||
200 | #define OMAP_IH2_ISR (OMAP_IH2_BASE + 0x9c) | ||
201 | |||
202 | #define IRQ_ITR_REG_OFFSET 0x00 | ||
203 | #define IRQ_MIR_REG_OFFSET 0x04 | ||
204 | #define IRQ_SIR_IRQ_REG_OFFSET 0x10 | ||
205 | #define IRQ_SIR_FIQ_REG_OFFSET 0x14 | ||
206 | #define IRQ_CONTROL_REG_OFFSET 0x18 | ||
207 | #define IRQ_ISR_REG_OFFSET 0x9c | ||
208 | #define IRQ_ILR0_REG_OFFSET 0x1c | ||
209 | #define IRQ_GMR_REG_OFFSET 0xa0 | ||
210 | |||
38 | #endif | 211 | #endif |
39 | #endif | ||
40 | 212 | ||
41 | #include <plat/hardware.h> | 213 | /* |
214 | * ---------------------------------------------------------------------------- | ||
215 | * System control registers | ||
216 | * ---------------------------------------------------------------------------- | ||
217 | */ | ||
218 | #define MOD_CONF_CTRL_0 0xfffe1080 | ||
219 | #define MOD_CONF_CTRL_1 0xfffe1110 | ||
220 | |||
221 | /* | ||
222 | * ---------------------------------------------------------------------------- | ||
223 | * Pin multiplexing registers | ||
224 | * ---------------------------------------------------------------------------- | ||
225 | */ | ||
226 | #define FUNC_MUX_CTRL_0 0xfffe1000 | ||
227 | #define FUNC_MUX_CTRL_1 0xfffe1004 | ||
228 | #define FUNC_MUX_CTRL_2 0xfffe1008 | ||
229 | #define COMP_MODE_CTRL_0 0xfffe100c | ||
230 | #define FUNC_MUX_CTRL_3 0xfffe1010 | ||
231 | #define FUNC_MUX_CTRL_4 0xfffe1014 | ||
232 | #define FUNC_MUX_CTRL_5 0xfffe1018 | ||
233 | #define FUNC_MUX_CTRL_6 0xfffe101C | ||
234 | #define FUNC_MUX_CTRL_7 0xfffe1020 | ||
235 | #define FUNC_MUX_CTRL_8 0xfffe1024 | ||
236 | #define FUNC_MUX_CTRL_9 0xfffe1028 | ||
237 | #define FUNC_MUX_CTRL_A 0xfffe102C | ||
238 | #define FUNC_MUX_CTRL_B 0xfffe1030 | ||
239 | #define FUNC_MUX_CTRL_C 0xfffe1034 | ||
240 | #define FUNC_MUX_CTRL_D 0xfffe1038 | ||
241 | #define PULL_DWN_CTRL_0 0xfffe1040 | ||
242 | #define PULL_DWN_CTRL_1 0xfffe1044 | ||
243 | #define PULL_DWN_CTRL_2 0xfffe1048 | ||
244 | #define PULL_DWN_CTRL_3 0xfffe104c | ||
245 | #define PULL_DWN_CTRL_4 0xfffe10ac | ||
246 | |||
247 | /* OMAP-1610 specific multiplexing registers */ | ||
248 | #define FUNC_MUX_CTRL_E 0xfffe1090 | ||
249 | #define FUNC_MUX_CTRL_F 0xfffe1094 | ||
250 | #define FUNC_MUX_CTRL_10 0xfffe1098 | ||
251 | #define FUNC_MUX_CTRL_11 0xfffe109c | ||
252 | #define FUNC_MUX_CTRL_12 0xfffe10a0 | ||
253 | #define PU_PD_SEL_0 0xfffe10b4 | ||
254 | #define PU_PD_SEL_1 0xfffe10b8 | ||
255 | #define PU_PD_SEL_2 0xfffe10bc | ||
256 | #define PU_PD_SEL_3 0xfffe10c0 | ||
257 | #define PU_PD_SEL_4 0xfffe10c4 | ||
258 | |||
259 | /* Timer32K for 1610 and 1710*/ | ||
260 | #define OMAP_TIMER32K_BASE 0xFFFBC400 | ||
261 | |||
262 | /* | ||
263 | * --------------------------------------------------------------------------- | ||
264 | * TIPB bus interface | ||
265 | * --------------------------------------------------------------------------- | ||
266 | */ | ||
267 | #define TIPB_PUBLIC_CNTL_BASE 0xfffed300 | ||
268 | #define MPU_PUBLIC_TIPB_CNTL (TIPB_PUBLIC_CNTL_BASE + 0x8) | ||
269 | #define TIPB_PRIVATE_CNTL_BASE 0xfffeca00 | ||
270 | #define MPU_PRIVATE_TIPB_CNTL (TIPB_PRIVATE_CNTL_BASE + 0x8) | ||
271 | |||
272 | /* | ||
273 | * ---------------------------------------------------------------------------- | ||
274 | * MPUI interface | ||
275 | * ---------------------------------------------------------------------------- | ||
276 | */ | ||
277 | #define MPUI_BASE (0xfffec900) | ||
278 | #define MPUI_CTRL (MPUI_BASE + 0x0) | ||
279 | #define MPUI_DEBUG_ADDR (MPUI_BASE + 0x4) | ||
280 | #define MPUI_DEBUG_DATA (MPUI_BASE + 0x8) | ||
281 | #define MPUI_DEBUG_FLAG (MPUI_BASE + 0xc) | ||
282 | #define MPUI_STATUS_REG (MPUI_BASE + 0x10) | ||
283 | #define MPUI_DSP_STATUS (MPUI_BASE + 0x14) | ||
284 | #define MPUI_DSP_BOOT_CONFIG (MPUI_BASE + 0x18) | ||
285 | #define MPUI_DSP_API_CONFIG (MPUI_BASE + 0x1c) | ||
286 | |||
287 | /* | ||
288 | * ---------------------------------------------------------------------------- | ||
289 | * LED Pulse Generator | ||
290 | * ---------------------------------------------------------------------------- | ||
291 | */ | ||
292 | #define OMAP_LPG1_BASE 0xfffbd000 | ||
293 | #define OMAP_LPG2_BASE 0xfffbd800 | ||
294 | #define OMAP_LPG1_LCR (OMAP_LPG1_BASE + 0x00) | ||
295 | #define OMAP_LPG1_PMR (OMAP_LPG1_BASE + 0x04) | ||
296 | #define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00) | ||
297 | #define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04) | ||
298 | |||
299 | /* | ||
300 | * ---------------------------------------------------------------------------- | ||
301 | * Pulse-Width Light | ||
302 | * ---------------------------------------------------------------------------- | ||
303 | */ | ||
304 | #define OMAP_PWL_BASE 0xfffb5800 | ||
305 | #define OMAP_PWL_ENABLE (OMAP_PWL_BASE + 0x00) | ||
306 | #define OMAP_PWL_CLK_ENABLE (OMAP_PWL_BASE + 0x04) | ||
307 | |||
308 | /* | ||
309 | * --------------------------------------------------------------------------- | ||
310 | * Processor specific defines | ||
311 | * --------------------------------------------------------------------------- | ||
312 | */ | ||
313 | |||
314 | #include "omap7xx.h" | ||
315 | #include "omap1510.h" | ||
316 | #include "omap16xx.h" | ||
317 | |||
318 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ | ||
diff --git a/arch/arm/mach-omap1/include/mach/irda.h b/arch/arm/mach-omap1/include/mach/irda.h new file mode 100644 index 00000000000..40f60339d1c --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/irda.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/irda.h | ||
3 | * | ||
4 | * Copyright (C) 2005-2006 Komal Shah <komal_shah802003@yahoo.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | #ifndef ASMARM_ARCH_IRDA_H | ||
11 | #define ASMARM_ARCH_IRDA_H | ||
12 | |||
13 | /* board specific transceiver capabilities */ | ||
14 | |||
15 | #define IR_SEL 1 /* Selects IrDA */ | ||
16 | #define IR_SIRMODE 2 | ||
17 | #define IR_FIRMODE 4 | ||
18 | #define IR_MIRMODE 8 | ||
19 | |||
20 | struct omap_irda_config { | ||
21 | int transceiver_cap; | ||
22 | int (*transceiver_mode)(struct device *dev, int mode); | ||
23 | int (*select_irda)(struct device *dev, int state); | ||
24 | int rx_channel; | ||
25 | int tx_channel; | ||
26 | unsigned long dest_start; | ||
27 | unsigned long src_start; | ||
28 | int tx_trigger; | ||
29 | int rx_trigger; | ||
30 | int mode; | ||
31 | }; | ||
32 | |||
33 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/irqs.h b/arch/arm/mach-omap1/include/mach/irqs.h index 9292fdc1cb0..729992d7d26 100644 --- a/arch/arm/mach-omap1/include/mach/irqs.h +++ b/arch/arm/mach-omap1/include/mach/irqs.h | |||
@@ -1,5 +1,268 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-omap1/include/mach/irqs.h | 2 | * arch/arm/plat-omap/include/mach/irqs.h |
3 | * | ||
4 | * Copyright (C) Greg Lonnon 2001 | ||
5 | * Updated for OMAP-1610 by Tony Lindgren <tony@atomide.com> | ||
6 | * | ||
7 | * Copyright (C) 2009 Texas Instruments | ||
8 | * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | * GNU General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | * | ||
24 | * NOTE: The interrupt vectors for the OMAP-1509, OMAP-1510, and OMAP-1610 | ||
25 | * are different. | ||
3 | */ | 26 | */ |
4 | 27 | ||
5 | #include <plat/irqs.h> | 28 | #ifndef __ASM_ARCH_OMAP15XX_IRQS_H |
29 | #define __ASM_ARCH_OMAP15XX_IRQS_H | ||
30 | |||
31 | /* | ||
32 | * IRQ numbers for interrupt handler 1 | ||
33 | * | ||
34 | * NOTE: See also the OMAP-1510 and 1610 specific IRQ numbers below | ||
35 | * | ||
36 | */ | ||
37 | #define INT_CAMERA 1 | ||
38 | #define INT_FIQ 3 | ||
39 | #define INT_RTDX 6 | ||
40 | #define INT_DSP_MMU_ABORT 7 | ||
41 | #define INT_HOST 8 | ||
42 | #define INT_ABORT 9 | ||
43 | #define INT_BRIDGE_PRIV 13 | ||
44 | #define INT_GPIO_BANK1 14 | ||
45 | #define INT_UART3 15 | ||
46 | #define INT_TIMER3 16 | ||
47 | #define INT_DMA_CH0_6 19 | ||
48 | #define INT_DMA_CH1_7 20 | ||
49 | #define INT_DMA_CH2_8 21 | ||
50 | #define INT_DMA_CH3 22 | ||
51 | #define INT_DMA_CH4 23 | ||
52 | #define INT_DMA_CH5 24 | ||
53 | #define INT_TIMER1 26 | ||
54 | #define INT_WD_TIMER 27 | ||
55 | #define INT_BRIDGE_PUB 28 | ||
56 | #define INT_TIMER2 30 | ||
57 | #define INT_LCD_CTRL 31 | ||
58 | |||
59 | /* | ||
60 | * OMAP-1510 specific IRQ numbers for interrupt handler 1 | ||
61 | */ | ||
62 | #define INT_1510_IH2_IRQ 0 | ||
63 | #define INT_1510_RES2 2 | ||
64 | #define INT_1510_SPI_TX 4 | ||
65 | #define INT_1510_SPI_RX 5 | ||
66 | #define INT_1510_DSP_MAILBOX1 10 | ||
67 | #define INT_1510_DSP_MAILBOX2 11 | ||
68 | #define INT_1510_RES12 12 | ||
69 | #define INT_1510_LB_MMU 17 | ||
70 | #define INT_1510_RES18 18 | ||
71 | #define INT_1510_LOCAL_BUS 29 | ||
72 | |||
73 | /* | ||
74 | * OMAP-1610 specific IRQ numbers for interrupt handler 1 | ||
75 | */ | ||
76 | #define INT_1610_IH2_IRQ INT_1510_IH2_IRQ | ||
77 | #define INT_1610_IH2_FIQ 2 | ||
78 | #define INT_1610_McBSP2_TX 4 | ||
79 | #define INT_1610_McBSP2_RX 5 | ||
80 | #define INT_1610_DSP_MAILBOX1 10 | ||
81 | #define INT_1610_DSP_MAILBOX2 11 | ||
82 | #define INT_1610_LCD_LINE 12 | ||
83 | #define INT_1610_GPTIMER1 17 | ||
84 | #define INT_1610_GPTIMER2 18 | ||
85 | #define INT_1610_SSR_FIFO_0 29 | ||
86 | |||
87 | /* | ||
88 | * OMAP-7xx specific IRQ numbers for interrupt handler 1 | ||
89 | */ | ||
90 | #define INT_7XX_IH2_FIQ 0 | ||
91 | #define INT_7XX_IH2_IRQ 1 | ||
92 | #define INT_7XX_USB_NON_ISO 2 | ||
93 | #define INT_7XX_USB_ISO 3 | ||
94 | #define INT_7XX_ICR 4 | ||
95 | #define INT_7XX_EAC 5 | ||
96 | #define INT_7XX_GPIO_BANK1 6 | ||
97 | #define INT_7XX_GPIO_BANK2 7 | ||
98 | #define INT_7XX_GPIO_BANK3 8 | ||
99 | #define INT_7XX_McBSP2TX 10 | ||
100 | #define INT_7XX_McBSP2RX 11 | ||
101 | #define INT_7XX_McBSP2RX_OVF 12 | ||
102 | #define INT_7XX_LCD_LINE 14 | ||
103 | #define INT_7XX_GSM_PROTECT 15 | ||
104 | #define INT_7XX_TIMER3 16 | ||
105 | #define INT_7XX_GPIO_BANK5 17 | ||
106 | #define INT_7XX_GPIO_BANK6 18 | ||
107 | #define INT_7XX_SPGIO_WR 29 | ||
108 | |||
109 | /* | ||
110 | * IRQ numbers for interrupt handler 2 | ||
111 | * | ||
112 | * NOTE: See also the OMAP-1510 and 1610 specific IRQ numbers below | ||
113 | */ | ||
114 | #define IH2_BASE 32 | ||
115 | |||
116 | #define INT_KEYBOARD (1 + IH2_BASE) | ||
117 | #define INT_uWireTX (2 + IH2_BASE) | ||
118 | #define INT_uWireRX (3 + IH2_BASE) | ||
119 | #define INT_I2C (4 + IH2_BASE) | ||
120 | #define INT_MPUIO (5 + IH2_BASE) | ||
121 | #define INT_USB_HHC_1 (6 + IH2_BASE) | ||
122 | #define INT_McBSP3TX (10 + IH2_BASE) | ||
123 | #define INT_McBSP3RX (11 + IH2_BASE) | ||
124 | #define INT_McBSP1TX (12 + IH2_BASE) | ||
125 | #define INT_McBSP1RX (13 + IH2_BASE) | ||
126 | #define INT_UART1 (14 + IH2_BASE) | ||
127 | #define INT_UART2 (15 + IH2_BASE) | ||
128 | #define INT_BT_MCSI1TX (16 + IH2_BASE) | ||
129 | #define INT_BT_MCSI1RX (17 + IH2_BASE) | ||
130 | #define INT_SOSSI_MATCH (19 + IH2_BASE) | ||
131 | #define INT_USB_W2FC (20 + IH2_BASE) | ||
132 | #define INT_1WIRE (21 + IH2_BASE) | ||
133 | #define INT_OS_TIMER (22 + IH2_BASE) | ||
134 | #define INT_MMC (23 + IH2_BASE) | ||
135 | #define INT_GAUGE_32K (24 + IH2_BASE) | ||
136 | #define INT_RTC_TIMER (25 + IH2_BASE) | ||
137 | #define INT_RTC_ALARM (26 + IH2_BASE) | ||
138 | #define INT_MEM_STICK (27 + IH2_BASE) | ||
139 | |||
140 | /* | ||
141 | * OMAP-1510 specific IRQ numbers for interrupt handler 2 | ||
142 | */ | ||
143 | #define INT_1510_DSP_MMU (28 + IH2_BASE) | ||
144 | #define INT_1510_COM_SPI_RO (31 + IH2_BASE) | ||
145 | |||
146 | /* | ||
147 | * OMAP-1610 specific IRQ numbers for interrupt handler 2 | ||
148 | */ | ||
149 | #define INT_1610_FAC (0 + IH2_BASE) | ||
150 | #define INT_1610_USB_HHC_2 (7 + IH2_BASE) | ||
151 | #define INT_1610_USB_OTG (8 + IH2_BASE) | ||
152 | #define INT_1610_SoSSI (9 + IH2_BASE) | ||
153 | #define INT_1610_SoSSI_MATCH (19 + IH2_BASE) | ||
154 | #define INT_1610_DSP_MMU (28 + IH2_BASE) | ||
155 | #define INT_1610_McBSP2RX_OF (31 + IH2_BASE) | ||
156 | #define INT_1610_STI (32 + IH2_BASE) | ||
157 | #define INT_1610_STI_WAKEUP (33 + IH2_BASE) | ||
158 | #define INT_1610_GPTIMER3 (34 + IH2_BASE) | ||
159 | #define INT_1610_GPTIMER4 (35 + IH2_BASE) | ||
160 | #define INT_1610_GPTIMER5 (36 + IH2_BASE) | ||
161 | #define INT_1610_GPTIMER6 (37 + IH2_BASE) | ||
162 | #define INT_1610_GPTIMER7 (38 + IH2_BASE) | ||
163 | #define INT_1610_GPTIMER8 (39 + IH2_BASE) | ||
164 | #define INT_1610_GPIO_BANK2 (40 + IH2_BASE) | ||
165 | #define INT_1610_GPIO_BANK3 (41 + IH2_BASE) | ||
166 | #define INT_1610_MMC2 (42 + IH2_BASE) | ||
167 | #define INT_1610_CF (43 + IH2_BASE) | ||
168 | #define INT_1610_WAKE_UP_REQ (46 + IH2_BASE) | ||
169 | #define INT_1610_GPIO_BANK4 (48 + IH2_BASE) | ||
170 | #define INT_1610_SPI (49 + IH2_BASE) | ||
171 | #define INT_1610_DMA_CH6 (53 + IH2_BASE) | ||
172 | #define INT_1610_DMA_CH7 (54 + IH2_BASE) | ||
173 | #define INT_1610_DMA_CH8 (55 + IH2_BASE) | ||
174 | #define INT_1610_DMA_CH9 (56 + IH2_BASE) | ||
175 | #define INT_1610_DMA_CH10 (57 + IH2_BASE) | ||
176 | #define INT_1610_DMA_CH11 (58 + IH2_BASE) | ||
177 | #define INT_1610_DMA_CH12 (59 + IH2_BASE) | ||
178 | #define INT_1610_DMA_CH13 (60 + IH2_BASE) | ||
179 | #define INT_1610_DMA_CH14 (61 + IH2_BASE) | ||
180 | #define INT_1610_DMA_CH15 (62 + IH2_BASE) | ||
181 | #define INT_1610_NAND (63 + IH2_BASE) | ||
182 | #define INT_1610_SHA1MD5 (91 + IH2_BASE) | ||
183 | |||
184 | /* | ||
185 | * OMAP-7xx specific IRQ numbers for interrupt handler 2 | ||
186 | */ | ||
187 | #define INT_7XX_HW_ERRORS (0 + IH2_BASE) | ||
188 | #define INT_7XX_NFIQ_PWR_FAIL (1 + IH2_BASE) | ||
189 | #define INT_7XX_CFCD (2 + IH2_BASE) | ||
190 | #define INT_7XX_CFIREQ (3 + IH2_BASE) | ||
191 | #define INT_7XX_I2C (4 + IH2_BASE) | ||
192 | #define INT_7XX_PCC (5 + IH2_BASE) | ||
193 | #define INT_7XX_MPU_EXT_NIRQ (6 + IH2_BASE) | ||
194 | #define INT_7XX_SPI_100K_1 (7 + IH2_BASE) | ||
195 | #define INT_7XX_SYREN_SPI (8 + IH2_BASE) | ||
196 | #define INT_7XX_VLYNQ (9 + IH2_BASE) | ||
197 | #define INT_7XX_GPIO_BANK4 (10 + IH2_BASE) | ||
198 | #define INT_7XX_McBSP1TX (11 + IH2_BASE) | ||
199 | #define INT_7XX_McBSP1RX (12 + IH2_BASE) | ||
200 | #define INT_7XX_McBSP1RX_OF (13 + IH2_BASE) | ||
201 | #define INT_7XX_UART_MODEM_IRDA_2 (14 + IH2_BASE) | ||
202 | #define INT_7XX_UART_MODEM_1 (15 + IH2_BASE) | ||
203 | #define INT_7XX_MCSI (16 + IH2_BASE) | ||
204 | #define INT_7XX_uWireTX (17 + IH2_BASE) | ||
205 | #define INT_7XX_uWireRX (18 + IH2_BASE) | ||
206 | #define INT_7XX_SMC_CD (19 + IH2_BASE) | ||
207 | #define INT_7XX_SMC_IREQ (20 + IH2_BASE) | ||
208 | #define INT_7XX_HDQ_1WIRE (21 + IH2_BASE) | ||
209 | #define INT_7XX_TIMER32K (22 + IH2_BASE) | ||
210 | #define INT_7XX_MMC_SDIO (23 + IH2_BASE) | ||
211 | #define INT_7XX_UPLD (24 + IH2_BASE) | ||
212 | #define INT_7XX_USB_HHC_1 (27 + IH2_BASE) | ||
213 | #define INT_7XX_USB_HHC_2 (28 + IH2_BASE) | ||
214 | #define INT_7XX_USB_GENI (29 + IH2_BASE) | ||
215 | #define INT_7XX_USB_OTG (30 + IH2_BASE) | ||
216 | #define INT_7XX_CAMERA_IF (31 + IH2_BASE) | ||
217 | #define INT_7XX_RNG (32 + IH2_BASE) | ||
218 | #define INT_7XX_DUAL_MODE_TIMER (33 + IH2_BASE) | ||
219 | #define INT_7XX_DBB_RF_EN (34 + IH2_BASE) | ||
220 | #define INT_7XX_MPUIO_KEYPAD (35 + IH2_BASE) | ||
221 | #define INT_7XX_SHA1_MD5 (36 + IH2_BASE) | ||
222 | #define INT_7XX_SPI_100K_2 (37 + IH2_BASE) | ||
223 | #define INT_7XX_RNG_IDLE (38 + IH2_BASE) | ||
224 | #define INT_7XX_MPUIO (39 + IH2_BASE) | ||
225 | #define INT_7XX_LLPC_LCD_CTRL_CAN_BE_OFF (40 + IH2_BASE) | ||
226 | #define INT_7XX_LLPC_OE_FALLING (41 + IH2_BASE) | ||
227 | #define INT_7XX_LLPC_OE_RISING (42 + IH2_BASE) | ||
228 | #define INT_7XX_LLPC_VSYNC (43 + IH2_BASE) | ||
229 | #define INT_7XX_WAKE_UP_REQ (46 + IH2_BASE) | ||
230 | #define INT_7XX_DMA_CH6 (53 + IH2_BASE) | ||
231 | #define INT_7XX_DMA_CH7 (54 + IH2_BASE) | ||
232 | #define INT_7XX_DMA_CH8 (55 + IH2_BASE) | ||
233 | #define INT_7XX_DMA_CH9 (56 + IH2_BASE) | ||
234 | #define INT_7XX_DMA_CH10 (57 + IH2_BASE) | ||
235 | #define INT_7XX_DMA_CH11 (58 + IH2_BASE) | ||
236 | #define INT_7XX_DMA_CH12 (59 + IH2_BASE) | ||
237 | #define INT_7XX_DMA_CH13 (60 + IH2_BASE) | ||
238 | #define INT_7XX_DMA_CH14 (61 + IH2_BASE) | ||
239 | #define INT_7XX_DMA_CH15 (62 + IH2_BASE) | ||
240 | #define INT_7XX_NAND (63 + IH2_BASE) | ||
241 | |||
242 | /* Max. 128 level 2 IRQs (OMAP1610), 192 GPIOs (OMAP730/850) and | ||
243 | * 16 MPUIO lines */ | ||
244 | #define OMAP_MAX_GPIO_LINES 192 | ||
245 | #define IH_GPIO_BASE (128 + IH2_BASE) | ||
246 | #define IH_MPUIO_BASE (OMAP_MAX_GPIO_LINES + IH_GPIO_BASE) | ||
247 | #define OMAP_IRQ_END (IH_MPUIO_BASE + 16) | ||
248 | |||
249 | /* External FPGA handles interrupts on Innovator boards */ | ||
250 | #define OMAP_FPGA_IRQ_BASE (OMAP_IRQ_END) | ||
251 | #ifdef CONFIG_MACH_OMAP_INNOVATOR | ||
252 | #define OMAP_FPGA_NR_IRQS 24 | ||
253 | #else | ||
254 | #define OMAP_FPGA_NR_IRQS 0 | ||
255 | #endif | ||
256 | #define OMAP_FPGA_IRQ_END (OMAP_FPGA_IRQ_BASE + OMAP_FPGA_NR_IRQS) | ||
257 | |||
258 | #define NR_IRQS OMAP_FPGA_IRQ_END | ||
259 | |||
260 | #define OMAP_IRQ_BIT(irq) (1 << ((irq) % 32)) | ||
261 | |||
262 | #include <mach/hardware.h> | ||
263 | |||
264 | #ifdef CONFIG_FIQ | ||
265 | #define FIQ_START 1024 | ||
266 | #endif | ||
267 | |||
268 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/mux.h b/arch/arm/mach-omap1/include/mach/mux.h new file mode 100644 index 00000000000..32394895920 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/mux.h | |||
@@ -0,0 +1,454 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/mux.h | ||
3 | * | ||
4 | * Table of the Omap register configurations for the FUNC_MUX and | ||
5 | * PULL_DWN combinations. | ||
6 | * | ||
7 | * Copyright (C) 2004 - 2008 Texas Instruments Inc. | ||
8 | * Copyright (C) 2003 - 2008 Nokia Corporation | ||
9 | * | ||
10 | * Written by Tony Lindgren | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License as published by | ||
14 | * the Free Software Foundation; either version 2 of the License, or | ||
15 | * (at your option) any later version. | ||
16 | * | ||
17 | * This program is distributed in the hope that it will be useful, | ||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | * GNU General Public License for more details. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License | ||
23 | * along with this program; if not, write to the Free Software | ||
24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
25 | * | ||
26 | * NOTE: Please use the following naming style for new pin entries. | ||
27 | * For example, W8_1610_MMC2_DAT0, where: | ||
28 | * - W8 = ball | ||
29 | * - 1610 = 1510 or 1610, none if common for both 1510 and 1610 | ||
30 | * - MMC2_DAT0 = function | ||
31 | */ | ||
32 | |||
33 | #ifndef __ASM_ARCH_MUX_H | ||
34 | #define __ASM_ARCH_MUX_H | ||
35 | |||
36 | #define PU_PD_SEL_NA 0 /* No pu_pd reg available */ | ||
37 | #define PULL_DWN_CTRL_NA 0 /* No pull-down control needed */ | ||
38 | |||
39 | #ifdef CONFIG_OMAP_MUX_DEBUG | ||
40 | #define MUX_REG(reg, mode_offset, mode) .mux_reg_name = "FUNC_MUX_CTRL_"#reg, \ | ||
41 | .mux_reg = FUNC_MUX_CTRL_##reg, \ | ||
42 | .mask_offset = mode_offset, \ | ||
43 | .mask = mode, | ||
44 | |||
45 | #define PULL_REG(reg, bit, status) .pull_name = "PULL_DWN_CTRL_"#reg, \ | ||
46 | .pull_reg = PULL_DWN_CTRL_##reg, \ | ||
47 | .pull_bit = bit, \ | ||
48 | .pull_val = status, | ||
49 | |||
50 | #define PU_PD_REG(reg, status) .pu_pd_name = "PU_PD_SEL_"#reg, \ | ||
51 | .pu_pd_reg = PU_PD_SEL_##reg, \ | ||
52 | .pu_pd_val = status, | ||
53 | |||
54 | #define MUX_REG_7XX(reg, mode_offset, mode) .mux_reg_name = "OMAP7XX_IO_CONF_"#reg, \ | ||
55 | .mux_reg = OMAP7XX_IO_CONF_##reg, \ | ||
56 | .mask_offset = mode_offset, \ | ||
57 | .mask = mode, | ||
58 | |||
59 | #define PULL_REG_7XX(reg, bit, status) .pull_name = "OMAP7XX_IO_CONF_"#reg, \ | ||
60 | .pull_reg = OMAP7XX_IO_CONF_##reg, \ | ||
61 | .pull_bit = bit, \ | ||
62 | .pull_val = status, | ||
63 | |||
64 | #else | ||
65 | |||
66 | #define MUX_REG(reg, mode_offset, mode) .mux_reg = FUNC_MUX_CTRL_##reg, \ | ||
67 | .mask_offset = mode_offset, \ | ||
68 | .mask = mode, | ||
69 | |||
70 | #define PULL_REG(reg, bit, status) .pull_reg = PULL_DWN_CTRL_##reg, \ | ||
71 | .pull_bit = bit, \ | ||
72 | .pull_val = status, | ||
73 | |||
74 | #define PU_PD_REG(reg, status) .pu_pd_reg = PU_PD_SEL_##reg, \ | ||
75 | .pu_pd_val = status, | ||
76 | |||
77 | #define MUX_REG_7XX(reg, mode_offset, mode) \ | ||
78 | .mux_reg = OMAP7XX_IO_CONF_##reg, \ | ||
79 | .mask_offset = mode_offset, \ | ||
80 | .mask = mode, | ||
81 | |||
82 | #define PULL_REG_7XX(reg, bit, status) .pull_reg = OMAP7XX_IO_CONF_##reg, \ | ||
83 | .pull_bit = bit, \ | ||
84 | .pull_val = status, | ||
85 | |||
86 | #endif /* CONFIG_OMAP_MUX_DEBUG */ | ||
87 | |||
88 | #define MUX_CFG(desc, mux_reg, mode_offset, mode, \ | ||
89 | pull_reg, pull_bit, pull_status, \ | ||
90 | pu_pd_reg, pu_pd_status, debug_status) \ | ||
91 | { \ | ||
92 | .name = desc, \ | ||
93 | .debug = debug_status, \ | ||
94 | MUX_REG(mux_reg, mode_offset, mode) \ | ||
95 | PULL_REG(pull_reg, pull_bit, pull_status) \ | ||
96 | PU_PD_REG(pu_pd_reg, pu_pd_status) \ | ||
97 | }, | ||
98 | |||
99 | |||
100 | /* | ||
101 | * OMAP730/850 has a slightly different config for the pin mux. | ||
102 | * - config regs are the OMAP7XX_IO_CONF_x regs (see omap7xx.h) regs and | ||
103 | * not the FUNC_MUX_CTRL_x regs from hardware.h | ||
104 | * - for pull-up/down, only has one enable bit which is is in the same register | ||
105 | * as mux config | ||
106 | */ | ||
107 | #define MUX_CFG_7XX(desc, mux_reg, mode_offset, mode, \ | ||
108 | pull_bit, pull_status, debug_status)\ | ||
109 | { \ | ||
110 | .name = desc, \ | ||
111 | .debug = debug_status, \ | ||
112 | MUX_REG_7XX(mux_reg, mode_offset, mode) \ | ||
113 | PULL_REG_7XX(mux_reg, pull_bit, pull_status) \ | ||
114 | PU_PD_REG(NA, 0) \ | ||
115 | }, | ||
116 | |||
117 | struct pin_config { | ||
118 | char *name; | ||
119 | const unsigned int mux_reg; | ||
120 | unsigned char debug; | ||
121 | |||
122 | const unsigned char mask_offset; | ||
123 | const unsigned char mask; | ||
124 | |||
125 | const char *pull_name; | ||
126 | const unsigned int pull_reg; | ||
127 | const unsigned char pull_val; | ||
128 | const unsigned char pull_bit; | ||
129 | |||
130 | const char *pu_pd_name; | ||
131 | const unsigned int pu_pd_reg; | ||
132 | const unsigned char pu_pd_val; | ||
133 | |||
134 | #if defined(CONFIG_OMAP_MUX_DEBUG) || defined(CONFIG_OMAP_MUX_WARNINGS) | ||
135 | const char *mux_reg_name; | ||
136 | #endif | ||
137 | |||
138 | }; | ||
139 | |||
140 | enum omap7xx_index { | ||
141 | /* OMAP 730 keyboard */ | ||
142 | E2_7XX_KBR0, | ||
143 | J7_7XX_KBR1, | ||
144 | E1_7XX_KBR2, | ||
145 | F3_7XX_KBR3, | ||
146 | D2_7XX_KBR4, | ||
147 | C2_7XX_KBC0, | ||
148 | D3_7XX_KBC1, | ||
149 | E4_7XX_KBC2, | ||
150 | F4_7XX_KBC3, | ||
151 | E3_7XX_KBC4, | ||
152 | |||
153 | /* USB */ | ||
154 | AA17_7XX_USB_DM, | ||
155 | W16_7XX_USB_PU_EN, | ||
156 | W17_7XX_USB_VBUSI, | ||
157 | W18_7XX_USB_DMCK_OUT, | ||
158 | W19_7XX_USB_DCRST, | ||
159 | |||
160 | /* MMC */ | ||
161 | MMC_7XX_CMD, | ||
162 | MMC_7XX_CLK, | ||
163 | MMC_7XX_DAT0, | ||
164 | |||
165 | /* I2C */ | ||
166 | I2C_7XX_SCL, | ||
167 | I2C_7XX_SDA, | ||
168 | |||
169 | /* SPI */ | ||
170 | SPI_7XX_1, | ||
171 | SPI_7XX_2, | ||
172 | SPI_7XX_3, | ||
173 | SPI_7XX_4, | ||
174 | SPI_7XX_5, | ||
175 | SPI_7XX_6, | ||
176 | |||
177 | /* UART */ | ||
178 | UART_7XX_1, | ||
179 | UART_7XX_2, | ||
180 | }; | ||
181 | |||
182 | enum omap1xxx_index { | ||
183 | /* UART1 (BT_UART_GATING)*/ | ||
184 | UART1_TX = 0, | ||
185 | UART1_RTS, | ||
186 | |||
187 | /* UART2 (COM_UART_GATING)*/ | ||
188 | UART2_TX, | ||
189 | UART2_RX, | ||
190 | UART2_CTS, | ||
191 | UART2_RTS, | ||
192 | |||
193 | /* UART3 (GIGA_UART_GATING) */ | ||
194 | UART3_TX, | ||
195 | UART3_RX, | ||
196 | UART3_CTS, | ||
197 | UART3_RTS, | ||
198 | UART3_CLKREQ, | ||
199 | UART3_BCLK, /* 12MHz clock out */ | ||
200 | Y15_1610_UART3_RTS, | ||
201 | |||
202 | /* PWT & PWL */ | ||
203 | PWT, | ||
204 | PWL, | ||
205 | |||
206 | /* USB master generic */ | ||
207 | R18_USB_VBUS, | ||
208 | R18_1510_USB_GPIO0, | ||
209 | W4_USB_PUEN, | ||
210 | W4_USB_CLKO, | ||
211 | W4_USB_HIGHZ, | ||
212 | W4_GPIO58, | ||
213 | |||
214 | /* USB1 master */ | ||
215 | USB1_SUSP, | ||
216 | USB1_SEO, | ||
217 | W13_1610_USB1_SE0, | ||
218 | USB1_TXEN, | ||
219 | USB1_TXD, | ||
220 | USB1_VP, | ||
221 | USB1_VM, | ||
222 | USB1_RCV, | ||
223 | USB1_SPEED, | ||
224 | R13_1610_USB1_SPEED, | ||
225 | R13_1710_USB1_SE0, | ||
226 | |||
227 | /* USB2 master */ | ||
228 | USB2_SUSP, | ||
229 | USB2_VP, | ||
230 | USB2_TXEN, | ||
231 | USB2_VM, | ||
232 | USB2_RCV, | ||
233 | USB2_SEO, | ||
234 | USB2_TXD, | ||
235 | |||
236 | /* OMAP-1510 GPIO */ | ||
237 | R18_1510_GPIO0, | ||
238 | R19_1510_GPIO1, | ||
239 | M14_1510_GPIO2, | ||
240 | |||
241 | /* OMAP1610 GPIO */ | ||
242 | P18_1610_GPIO3, | ||
243 | Y15_1610_GPIO17, | ||
244 | |||
245 | /* OMAP-1710 GPIO */ | ||
246 | R18_1710_GPIO0, | ||
247 | V2_1710_GPIO10, | ||
248 | N21_1710_GPIO14, | ||
249 | W15_1710_GPIO40, | ||
250 | |||
251 | /* MPUIO */ | ||
252 | MPUIO2, | ||
253 | N15_1610_MPUIO2, | ||
254 | MPUIO4, | ||
255 | MPUIO5, | ||
256 | T20_1610_MPUIO5, | ||
257 | W11_1610_MPUIO6, | ||
258 | V10_1610_MPUIO7, | ||
259 | W11_1610_MPUIO9, | ||
260 | V10_1610_MPUIO10, | ||
261 | W10_1610_MPUIO11, | ||
262 | E20_1610_MPUIO13, | ||
263 | U20_1610_MPUIO14, | ||
264 | E19_1610_MPUIO15, | ||
265 | |||
266 | /* MCBSP2 */ | ||
267 | MCBSP2_CLKR, | ||
268 | MCBSP2_CLKX, | ||
269 | MCBSP2_DR, | ||
270 | MCBSP2_DX, | ||
271 | MCBSP2_FSR, | ||
272 | MCBSP2_FSX, | ||
273 | |||
274 | /* MCBSP3 */ | ||
275 | MCBSP3_CLKX, | ||
276 | |||
277 | /* Misc ballouts */ | ||
278 | BALLOUT_V8_ARMIO3, | ||
279 | N20_HDQ, | ||
280 | |||
281 | /* OMAP-1610 MMC2 */ | ||
282 | W8_1610_MMC2_DAT0, | ||
283 | V8_1610_MMC2_DAT1, | ||
284 | W15_1610_MMC2_DAT2, | ||
285 | R10_1610_MMC2_DAT3, | ||
286 | Y10_1610_MMC2_CLK, | ||
287 | Y8_1610_MMC2_CMD, | ||
288 | V9_1610_MMC2_CMDDIR, | ||
289 | V5_1610_MMC2_DATDIR0, | ||
290 | W19_1610_MMC2_DATDIR1, | ||
291 | R18_1610_MMC2_CLKIN, | ||
292 | |||
293 | /* OMAP-1610 External Trace Interface */ | ||
294 | M19_1610_ETM_PSTAT0, | ||
295 | L15_1610_ETM_PSTAT1, | ||
296 | L18_1610_ETM_PSTAT2, | ||
297 | L19_1610_ETM_D0, | ||
298 | J19_1610_ETM_D6, | ||
299 | J18_1610_ETM_D7, | ||
300 | |||
301 | /* OMAP16XX GPIO */ | ||
302 | P20_1610_GPIO4, | ||
303 | V9_1610_GPIO7, | ||
304 | W8_1610_GPIO9, | ||
305 | N20_1610_GPIO11, | ||
306 | N19_1610_GPIO13, | ||
307 | P10_1610_GPIO22, | ||
308 | V5_1610_GPIO24, | ||
309 | AA20_1610_GPIO_41, | ||
310 | W19_1610_GPIO48, | ||
311 | M7_1610_GPIO62, | ||
312 | V14_16XX_GPIO37, | ||
313 | R9_16XX_GPIO18, | ||
314 | L14_16XX_GPIO49, | ||
315 | |||
316 | /* OMAP-1610 uWire */ | ||
317 | V19_1610_UWIRE_SCLK, | ||
318 | U18_1610_UWIRE_SDI, | ||
319 | W21_1610_UWIRE_SDO, | ||
320 | N14_1610_UWIRE_CS0, | ||
321 | P15_1610_UWIRE_CS3, | ||
322 | N15_1610_UWIRE_CS1, | ||
323 | |||
324 | /* OMAP-1610 SPI */ | ||
325 | U19_1610_SPIF_SCK, | ||
326 | U18_1610_SPIF_DIN, | ||
327 | P20_1610_SPIF_DIN, | ||
328 | W21_1610_SPIF_DOUT, | ||
329 | R18_1610_SPIF_DOUT, | ||
330 | N14_1610_SPIF_CS0, | ||
331 | N15_1610_SPIF_CS1, | ||
332 | T19_1610_SPIF_CS2, | ||
333 | P15_1610_SPIF_CS3, | ||
334 | |||
335 | /* OMAP-1610 Flash */ | ||
336 | L3_1610_FLASH_CS2B_OE, | ||
337 | M8_1610_FLASH_CS2B_WE, | ||
338 | |||
339 | /* First MMC */ | ||
340 | MMC_CMD, | ||
341 | MMC_DAT1, | ||
342 | MMC_DAT2, | ||
343 | MMC_DAT0, | ||
344 | MMC_CLK, | ||
345 | MMC_DAT3, | ||
346 | |||
347 | /* OMAP-1710 MMC CMDDIR and DATDIR0 */ | ||
348 | M15_1710_MMC_CLKI, | ||
349 | P19_1710_MMC_CMDDIR, | ||
350 | P20_1710_MMC_DATDIR0, | ||
351 | |||
352 | /* OMAP-1610 USB0 alternate pin configuration */ | ||
353 | W9_USB0_TXEN, | ||
354 | AA9_USB0_VP, | ||
355 | Y5_USB0_RCV, | ||
356 | R9_USB0_VM, | ||
357 | V6_USB0_TXD, | ||
358 | W5_USB0_SE0, | ||
359 | V9_USB0_SPEED, | ||
360 | V9_USB0_SUSP, | ||
361 | |||
362 | /* USB2 */ | ||
363 | W9_USB2_TXEN, | ||
364 | AA9_USB2_VP, | ||
365 | Y5_USB2_RCV, | ||
366 | R9_USB2_VM, | ||
367 | V6_USB2_TXD, | ||
368 | W5_USB2_SE0, | ||
369 | |||
370 | /* 16XX UART */ | ||
371 | R13_1610_UART1_TX, | ||
372 | V14_16XX_UART1_RX, | ||
373 | R14_1610_UART1_CTS, | ||
374 | AA15_1610_UART1_RTS, | ||
375 | R9_16XX_UART2_RX, | ||
376 | L14_16XX_UART3_RX, | ||
377 | |||
378 | /* I2C OMAP-1610 */ | ||
379 | I2C_SCL, | ||
380 | I2C_SDA, | ||
381 | |||
382 | /* Keypad */ | ||
383 | F18_1610_KBC0, | ||
384 | D20_1610_KBC1, | ||
385 | D19_1610_KBC2, | ||
386 | E18_1610_KBC3, | ||
387 | C21_1610_KBC4, | ||
388 | G18_1610_KBR0, | ||
389 | F19_1610_KBR1, | ||
390 | H14_1610_KBR2, | ||
391 | E20_1610_KBR3, | ||
392 | E19_1610_KBR4, | ||
393 | N19_1610_KBR5, | ||
394 | |||
395 | /* Power management */ | ||
396 | T20_1610_LOW_PWR, | ||
397 | |||
398 | /* MCLK Settings */ | ||
399 | V5_1710_MCLK_ON, | ||
400 | V5_1710_MCLK_OFF, | ||
401 | R10_1610_MCLK_ON, | ||
402 | R10_1610_MCLK_OFF, | ||
403 | |||
404 | /* CompactFlash controller */ | ||
405 | P11_1610_CF_CD2, | ||
406 | R11_1610_CF_IOIS16, | ||
407 | V10_1610_CF_IREQ, | ||
408 | W10_1610_CF_RESET, | ||
409 | W11_1610_CF_CD1, | ||
410 | |||
411 | /* parallel camera */ | ||
412 | J15_1610_CAM_LCLK, | ||
413 | J18_1610_CAM_D7, | ||
414 | J19_1610_CAM_D6, | ||
415 | J14_1610_CAM_D5, | ||
416 | K18_1610_CAM_D4, | ||
417 | K19_1610_CAM_D3, | ||
418 | K15_1610_CAM_D2, | ||
419 | K14_1610_CAM_D1, | ||
420 | L19_1610_CAM_D0, | ||
421 | L18_1610_CAM_VS, | ||
422 | L15_1610_CAM_HS, | ||
423 | M19_1610_CAM_RSTZ, | ||
424 | Y15_1610_CAM_OUTCLK, | ||
425 | |||
426 | /* serial camera */ | ||
427 | H19_1610_CAM_EXCLK, | ||
428 | Y12_1610_CCP_CLKP, | ||
429 | W13_1610_CCP_CLKM, | ||
430 | W14_1610_CCP_DATAP, | ||
431 | Y14_1610_CCP_DATAM, | ||
432 | |||
433 | }; | ||
434 | |||
435 | struct omap_mux_cfg { | ||
436 | struct pin_config *pins; | ||
437 | unsigned long size; | ||
438 | int (*cfg_reg)(const struct pin_config *cfg); | ||
439 | }; | ||
440 | |||
441 | #ifdef CONFIG_OMAP_MUX | ||
442 | /* setup pin muxing in Linux */ | ||
443 | extern int omap1_mux_init(void); | ||
444 | extern int omap_mux_register(struct omap_mux_cfg *); | ||
445 | extern int omap_cfg_reg(unsigned long reg_cfg); | ||
446 | #else | ||
447 | /* boot loader does it all (no warnings from CONFIG_OMAP_MUX_WARNINGS) */ | ||
448 | static inline int omap1_mux_init(void) { return 0; } | ||
449 | static inline int omap_cfg_reg(unsigned long reg_cfg) { return 0; } | ||
450 | #endif | ||
451 | |||
452 | extern int omap2_mux_init(void); | ||
453 | |||
454 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/omap1510.h b/arch/arm/mach-omap1/include/mach/omap1510.h new file mode 100644 index 00000000000..8fe05d6137c --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap1510.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP1510 processor. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | * | ||
11 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
12 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
13 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
14 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
15 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
16 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
17 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
18 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
19 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
20 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License along | ||
23 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
24 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | |||
27 | #ifndef __ASM_ARCH_OMAP15XX_H | ||
28 | #define __ASM_ARCH_OMAP15XX_H | ||
29 | |||
30 | /* | ||
31 | * ---------------------------------------------------------------------------- | ||
32 | * Base addresses | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | */ | ||
35 | |||
36 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
37 | |||
38 | #define OMAP1510_DSP_BASE 0xE0000000 | ||
39 | #define OMAP1510_DSP_SIZE 0x28000 | ||
40 | #define OMAP1510_DSP_START 0xE0000000 | ||
41 | |||
42 | #define OMAP1510_DSPREG_BASE 0xE1000000 | ||
43 | #define OMAP1510_DSPREG_SIZE SZ_128K | ||
44 | #define OMAP1510_DSPREG_START 0xE1000000 | ||
45 | |||
46 | #define OMAP1510_DSP_MMU_BASE (0xfffed200) | ||
47 | |||
48 | #endif /* __ASM_ARCH_OMAP15XX_H */ | ||
49 | |||
diff --git a/arch/arm/mach-omap1/include/mach/omap16xx.h b/arch/arm/mach-omap1/include/mach/omap16xx.h new file mode 100644 index 00000000000..cd1c724869c --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap16xx.h | |||
@@ -0,0 +1,201 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP1610/5912/1710 processors. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | * | ||
11 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
12 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
13 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
14 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
15 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
16 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
17 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
18 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
19 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
20 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License along | ||
23 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
24 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | |||
27 | #ifndef __ASM_ARCH_OMAP16XX_H | ||
28 | #define __ASM_ARCH_OMAP16XX_H | ||
29 | |||
30 | /* | ||
31 | * ---------------------------------------------------------------------------- | ||
32 | * Base addresses | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | */ | ||
35 | |||
36 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
37 | |||
38 | #define OMAP16XX_DSP_BASE 0xE0000000 | ||
39 | #define OMAP16XX_DSP_SIZE 0x28000 | ||
40 | #define OMAP16XX_DSP_START 0xE0000000 | ||
41 | |||
42 | #define OMAP16XX_DSPREG_BASE 0xE1000000 | ||
43 | #define OMAP16XX_DSPREG_SIZE SZ_128K | ||
44 | #define OMAP16XX_DSPREG_START 0xE1000000 | ||
45 | |||
46 | #define OMAP16XX_SEC_BASE 0xFFFE4000 | ||
47 | #define OMAP16XX_SEC_DES (OMAP16XX_SEC_BASE + 0x0000) | ||
48 | #define OMAP16XX_SEC_SHA1MD5 (OMAP16XX_SEC_BASE + 0x0800) | ||
49 | #define OMAP16XX_SEC_RNG (OMAP16XX_SEC_BASE + 0x1000) | ||
50 | |||
51 | /* | ||
52 | * --------------------------------------------------------------------------- | ||
53 | * Interrupts | ||
54 | * --------------------------------------------------------------------------- | ||
55 | */ | ||
56 | #define OMAP_IH2_0_BASE (0xfffe0000) | ||
57 | #define OMAP_IH2_1_BASE (0xfffe0100) | ||
58 | #define OMAP_IH2_2_BASE (0xfffe0200) | ||
59 | #define OMAP_IH2_3_BASE (0xfffe0300) | ||
60 | |||
61 | #define OMAP_IH2_0_ITR (OMAP_IH2_0_BASE + 0x00) | ||
62 | #define OMAP_IH2_0_MIR (OMAP_IH2_0_BASE + 0x04) | ||
63 | #define OMAP_IH2_0_SIR_IRQ (OMAP_IH2_0_BASE + 0x10) | ||
64 | #define OMAP_IH2_0_SIR_FIQ (OMAP_IH2_0_BASE + 0x14) | ||
65 | #define OMAP_IH2_0_CONTROL (OMAP_IH2_0_BASE + 0x18) | ||
66 | #define OMAP_IH2_0_ILR0 (OMAP_IH2_0_BASE + 0x1c) | ||
67 | #define OMAP_IH2_0_ISR (OMAP_IH2_0_BASE + 0x9c) | ||
68 | |||
69 | #define OMAP_IH2_1_ITR (OMAP_IH2_1_BASE + 0x00) | ||
70 | #define OMAP_IH2_1_MIR (OMAP_IH2_1_BASE + 0x04) | ||
71 | #define OMAP_IH2_1_SIR_IRQ (OMAP_IH2_1_BASE + 0x10) | ||
72 | #define OMAP_IH2_1_SIR_FIQ (OMAP_IH2_1_BASE + 0x14) | ||
73 | #define OMAP_IH2_1_CONTROL (OMAP_IH2_1_BASE + 0x18) | ||
74 | #define OMAP_IH2_1_ILR1 (OMAP_IH2_1_BASE + 0x1c) | ||
75 | #define OMAP_IH2_1_ISR (OMAP_IH2_1_BASE + 0x9c) | ||
76 | |||
77 | #define OMAP_IH2_2_ITR (OMAP_IH2_2_BASE + 0x00) | ||
78 | #define OMAP_IH2_2_MIR (OMAP_IH2_2_BASE + 0x04) | ||
79 | #define OMAP_IH2_2_SIR_IRQ (OMAP_IH2_2_BASE + 0x10) | ||
80 | #define OMAP_IH2_2_SIR_FIQ (OMAP_IH2_2_BASE + 0x14) | ||
81 | #define OMAP_IH2_2_CONTROL (OMAP_IH2_2_BASE + 0x18) | ||
82 | #define OMAP_IH2_2_ILR2 (OMAP_IH2_2_BASE + 0x1c) | ||
83 | #define OMAP_IH2_2_ISR (OMAP_IH2_2_BASE + 0x9c) | ||
84 | |||
85 | #define OMAP_IH2_3_ITR (OMAP_IH2_3_BASE + 0x00) | ||
86 | #define OMAP_IH2_3_MIR (OMAP_IH2_3_BASE + 0x04) | ||
87 | #define OMAP_IH2_3_SIR_IRQ (OMAP_IH2_3_BASE + 0x10) | ||
88 | #define OMAP_IH2_3_SIR_FIQ (OMAP_IH2_3_BASE + 0x14) | ||
89 | #define OMAP_IH2_3_CONTROL (OMAP_IH2_3_BASE + 0x18) | ||
90 | #define OMAP_IH2_3_ILR3 (OMAP_IH2_3_BASE + 0x1c) | ||
91 | #define OMAP_IH2_3_ISR (OMAP_IH2_3_BASE + 0x9c) | ||
92 | |||
93 | /* | ||
94 | * ---------------------------------------------------------------------------- | ||
95 | * Clocks | ||
96 | * ---------------------------------------------------------------------------- | ||
97 | */ | ||
98 | #define OMAP16XX_ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24) | ||
99 | |||
100 | /* | ||
101 | * ---------------------------------------------------------------------------- | ||
102 | * Pin configuration registers | ||
103 | * ---------------------------------------------------------------------------- | ||
104 | */ | ||
105 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV6 (1 << 8) | ||
106 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV7 (1 << 9) | ||
107 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV8 (1 << 10) | ||
108 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV9 (1 << 11) | ||
109 | #define OMAP16XX_SUBLVDS_CONF_VALID (1 << 13) | ||
110 | |||
111 | /* | ||
112 | * ---------------------------------------------------------------------------- | ||
113 | * System control registers | ||
114 | * ---------------------------------------------------------------------------- | ||
115 | */ | ||
116 | #define OMAP1610_RESET_CONTROL 0xfffe1140 | ||
117 | |||
118 | /* | ||
119 | * --------------------------------------------------------------------------- | ||
120 | * TIPB bus interface | ||
121 | * --------------------------------------------------------------------------- | ||
122 | */ | ||
123 | #define TIPB_SWITCH_BASE (0xfffbc800) | ||
124 | #define OMAP16XX_MMCSD2_SSW_MPU_CONF (TIPB_SWITCH_BASE + 0x160) | ||
125 | |||
126 | /* UART3 Registers Mapping through MPU bus */ | ||
127 | #define UART3_RHR (OMAP1_UART3_BASE + 0) | ||
128 | #define UART3_THR (OMAP1_UART3_BASE + 0) | ||
129 | #define UART3_DLL (OMAP1_UART3_BASE + 0) | ||
130 | #define UART3_IER (OMAP1_UART3_BASE + 4) | ||
131 | #define UART3_DLH (OMAP1_UART3_BASE + 4) | ||
132 | #define UART3_IIR (OMAP1_UART3_BASE + 8) | ||
133 | #define UART3_FCR (OMAP1_UART3_BASE + 8) | ||
134 | #define UART3_EFR (OMAP1_UART3_BASE + 8) | ||
135 | #define UART3_LCR (OMAP1_UART3_BASE + 0x0C) | ||
136 | #define UART3_MCR (OMAP1_UART3_BASE + 0x10) | ||
137 | #define UART3_XON1_ADDR1 (OMAP1_UART3_BASE + 0x10) | ||
138 | #define UART3_XON2_ADDR2 (OMAP1_UART3_BASE + 0x14) | ||
139 | #define UART3_LSR (OMAP1_UART3_BASE + 0x14) | ||
140 | #define UART3_TCR (OMAP1_UART3_BASE + 0x18) | ||
141 | #define UART3_MSR (OMAP1_UART3_BASE + 0x18) | ||
142 | #define UART3_XOFF1 (OMAP1_UART3_BASE + 0x18) | ||
143 | #define UART3_XOFF2 (OMAP1_UART3_BASE + 0x1C) | ||
144 | #define UART3_SPR (OMAP1_UART3_BASE + 0x1C) | ||
145 | #define UART3_TLR (OMAP1_UART3_BASE + 0x1C) | ||
146 | #define UART3_MDR1 (OMAP1_UART3_BASE + 0x20) | ||
147 | #define UART3_MDR2 (OMAP1_UART3_BASE + 0x24) | ||
148 | #define UART3_SFLSR (OMAP1_UART3_BASE + 0x28) | ||
149 | #define UART3_TXFLL (OMAP1_UART3_BASE + 0x28) | ||
150 | #define UART3_RESUME (OMAP1_UART3_BASE + 0x2C) | ||
151 | #define UART3_TXFLH (OMAP1_UART3_BASE + 0x2C) | ||
152 | #define UART3_SFREGL (OMAP1_UART3_BASE + 0x30) | ||
153 | #define UART3_RXFLL (OMAP1_UART3_BASE + 0x30) | ||
154 | #define UART3_SFREGH (OMAP1_UART3_BASE + 0x34) | ||
155 | #define UART3_RXFLH (OMAP1_UART3_BASE + 0x34) | ||
156 | #define UART3_BLR (OMAP1_UART3_BASE + 0x38) | ||
157 | #define UART3_ACREG (OMAP1_UART3_BASE + 0x3C) | ||
158 | #define UART3_DIV16 (OMAP1_UART3_BASE + 0x3C) | ||
159 | #define UART3_SCR (OMAP1_UART3_BASE + 0x40) | ||
160 | #define UART3_SSR (OMAP1_UART3_BASE + 0x44) | ||
161 | #define UART3_EBLR (OMAP1_UART3_BASE + 0x48) | ||
162 | #define UART3_OSC_12M_SEL (OMAP1_UART3_BASE + 0x4C) | ||
163 | #define UART3_MVR (OMAP1_UART3_BASE + 0x50) | ||
164 | |||
165 | /* | ||
166 | * --------------------------------------------------------------------------- | ||
167 | * Watchdog timer | ||
168 | * --------------------------------------------------------------------------- | ||
169 | */ | ||
170 | |||
171 | /* 32-bit Watchdog timer in OMAP 16XX */ | ||
172 | #define OMAP_16XX_WATCHDOG_BASE (0xfffeb000) | ||
173 | #define OMAP_16XX_WIDR (OMAP_16XX_WATCHDOG_BASE + 0x00) | ||
174 | #define OMAP_16XX_WD_SYSCONFIG (OMAP_16XX_WATCHDOG_BASE + 0x10) | ||
175 | #define OMAP_16XX_WD_SYSSTATUS (OMAP_16XX_WATCHDOG_BASE + 0x14) | ||
176 | #define OMAP_16XX_WCLR (OMAP_16XX_WATCHDOG_BASE + 0x24) | ||
177 | #define OMAP_16XX_WCRR (OMAP_16XX_WATCHDOG_BASE + 0x28) | ||
178 | #define OMAP_16XX_WLDR (OMAP_16XX_WATCHDOG_BASE + 0x2c) | ||
179 | #define OMAP_16XX_WTGR (OMAP_16XX_WATCHDOG_BASE + 0x30) | ||
180 | #define OMAP_16XX_WWPS (OMAP_16XX_WATCHDOG_BASE + 0x34) | ||
181 | #define OMAP_16XX_WSPR (OMAP_16XX_WATCHDOG_BASE + 0x48) | ||
182 | |||
183 | #define WCLR_PRE_SHIFT 5 | ||
184 | #define WCLR_PTV_SHIFT 2 | ||
185 | |||
186 | #define WWPS_W_PEND_WSPR (1 << 4) | ||
187 | #define WWPS_W_PEND_WTGR (1 << 3) | ||
188 | #define WWPS_W_PEND_WLDR (1 << 2) | ||
189 | #define WWPS_W_PEND_WCRR (1 << 1) | ||
190 | #define WWPS_W_PEND_WCLR (1 << 0) | ||
191 | |||
192 | #define WSPR_ENABLE_0 (0x0000bbbb) | ||
193 | #define WSPR_ENABLE_1 (0x00004444) | ||
194 | #define WSPR_DISABLE_0 (0x0000aaaa) | ||
195 | #define WSPR_DISABLE_1 (0x00005555) | ||
196 | |||
197 | #define OMAP16XX_DSP_MMU_BASE (0xfffed200) | ||
198 | #define OMAP16XX_MAILBOX_BASE (0xfffcf000) | ||
199 | |||
200 | #endif /* __ASM_ARCH_OMAP16XX_H */ | ||
201 | |||
diff --git a/arch/arm/mach-omap1/include/mach/omap7xx.h b/arch/arm/mach-omap1/include/mach/omap7xx.h new file mode 100644 index 00000000000..63da994bc60 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap7xx.h | |||
@@ -0,0 +1,106 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP7XX processor. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
5 | * Adapted for omap850 by Zebediah C. McClure <zmc@lurian.net> | ||
6 | * Adapted for omap7xx by Alistair Buxton <a.j.buxton@gmail.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
14 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
15 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
16 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
17 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
18 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
19 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
20 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
23 | * | ||
24 | * You should have received a copy of the GNU General Public License along | ||
25 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
26 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
27 | */ | ||
28 | |||
29 | #ifndef __ASM_ARCH_OMAP7XX_H | ||
30 | #define __ASM_ARCH_OMAP7XX_H | ||
31 | |||
32 | /* | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | * Base addresses | ||
35 | * ---------------------------------------------------------------------------- | ||
36 | */ | ||
37 | |||
38 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
39 | |||
40 | #define OMAP7XX_DSP_BASE 0xE0000000 | ||
41 | #define OMAP7XX_DSP_SIZE 0x50000 | ||
42 | #define OMAP7XX_DSP_START 0xE0000000 | ||
43 | |||
44 | #define OMAP7XX_DSPREG_BASE 0xE1000000 | ||
45 | #define OMAP7XX_DSPREG_SIZE SZ_128K | ||
46 | #define OMAP7XX_DSPREG_START 0xE1000000 | ||
47 | |||
48 | #define OMAP7XX_SPI1_BASE 0xfffc0800 | ||
49 | #define OMAP7XX_SPI2_BASE 0xfffc1000 | ||
50 | |||
51 | /* | ||
52 | * ---------------------------------------------------------------------------- | ||
53 | * OMAP7XX specific configuration registers | ||
54 | * ---------------------------------------------------------------------------- | ||
55 | */ | ||
56 | #define OMAP7XX_CONFIG_BASE 0xfffe1000 | ||
57 | #define OMAP7XX_IO_CONF_0 0xfffe1070 | ||
58 | #define OMAP7XX_IO_CONF_1 0xfffe1074 | ||
59 | #define OMAP7XX_IO_CONF_2 0xfffe1078 | ||
60 | #define OMAP7XX_IO_CONF_3 0xfffe107c | ||
61 | #define OMAP7XX_IO_CONF_4 0xfffe1080 | ||
62 | #define OMAP7XX_IO_CONF_5 0xfffe1084 | ||
63 | #define OMAP7XX_IO_CONF_6 0xfffe1088 | ||
64 | #define OMAP7XX_IO_CONF_7 0xfffe108c | ||
65 | #define OMAP7XX_IO_CONF_8 0xfffe1090 | ||
66 | #define OMAP7XX_IO_CONF_9 0xfffe1094 | ||
67 | #define OMAP7XX_IO_CONF_10 0xfffe1098 | ||
68 | #define OMAP7XX_IO_CONF_11 0xfffe109c | ||
69 | #define OMAP7XX_IO_CONF_12 0xfffe10a0 | ||
70 | #define OMAP7XX_IO_CONF_13 0xfffe10a4 | ||
71 | |||
72 | #define OMAP7XX_MODE_1 0xfffe1010 | ||
73 | #define OMAP7XX_MODE_2 0xfffe1014 | ||
74 | |||
75 | /* CSMI specials: in terms of base + offset */ | ||
76 | #define OMAP7XX_MODE2_OFFSET 0x14 | ||
77 | |||
78 | /* | ||
79 | * ---------------------------------------------------------------------------- | ||
80 | * OMAP7XX traffic controller configuration registers | ||
81 | * ---------------------------------------------------------------------------- | ||
82 | */ | ||
83 | #define OMAP7XX_FLASH_CFG_0 0xfffecc10 | ||
84 | #define OMAP7XX_FLASH_ACFG_0 0xfffecc50 | ||
85 | #define OMAP7XX_FLASH_CFG_1 0xfffecc14 | ||
86 | #define OMAP7XX_FLASH_ACFG_1 0xfffecc54 | ||
87 | |||
88 | /* | ||
89 | * ---------------------------------------------------------------------------- | ||
90 | * OMAP7XX DSP control registers | ||
91 | * ---------------------------------------------------------------------------- | ||
92 | */ | ||
93 | #define OMAP7XX_ICR_BASE 0xfffbb800 | ||
94 | #define OMAP7XX_DSP_M_CTL 0xfffbb804 | ||
95 | #define OMAP7XX_DSP_MMU_BASE 0xfffed200 | ||
96 | |||
97 | /* | ||
98 | * ---------------------------------------------------------------------------- | ||
99 | * OMAP7XX PCC_UPLD configuration registers | ||
100 | * ---------------------------------------------------------------------------- | ||
101 | */ | ||
102 | #define OMAP7XX_PCC_UPLD_CTRL_BASE (0xfffe0900) | ||
103 | #define OMAP7XX_PCC_UPLD_CTRL (OMAP7XX_PCC_UPLD_CTRL_BASE + 0x00) | ||
104 | |||
105 | #endif /* __ASM_ARCH_OMAP7XX_H */ | ||
106 | |||
diff --git a/arch/arm/mach-omap1/include/mach/smp.h b/arch/arm/mach-omap1/include/mach/smp.h deleted file mode 100644 index 80a371c06e5..00000000000 --- a/arch/arm/mach-omap1/include/mach/smp.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-omap1/include/mach/smp.h | ||
3 | */ | ||
4 | |||
5 | #include <plat/smp.h> | ||