diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-ti8168evm.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock3xxx_data.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/common.c | 29 | ||||
-rw-r--r-- | arch/arm/mach-omap2/common.h | 13 | ||||
-rw-r--r-- | arch/arm/mach-omap2/control.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/id.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/include/mach/debug-macro.S | 12 | ||||
-rw-r--r-- | arch/arm/mach-omap2/io.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-omap2/irq.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/cpu.h | 13 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/hardware.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/serial.h | 14 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/ti81xx.h (renamed from arch/arm/plat-omap/include/plat/ti816x.h) | 18 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/uncompress.h | 8 |
16 files changed, 90 insertions, 76 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index ccdd442ca124..f475954c3b98 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -76,8 +76,8 @@ config SOC_OMAP3430 | |||
76 | default y | 76 | default y |
77 | select ARCH_OMAP_OTG | 77 | select ARCH_OMAP_OTG |
78 | 78 | ||
79 | config SOC_OMAPTI816X | 79 | config SOC_OMAPTI81XX |
80 | bool "TI816X support" | 80 | bool "TI81XX support" |
81 | depends on ARCH_OMAP3 | 81 | depends on ARCH_OMAP3 |
82 | default y | 82 | default y |
83 | 83 | ||
@@ -319,7 +319,7 @@ config MACH_OMAP_3630SDP | |||
319 | 319 | ||
320 | config MACH_TI8168EVM | 320 | config MACH_TI8168EVM |
321 | bool "TI8168 Evaluation Module" | 321 | bool "TI8168 Evaluation Module" |
322 | depends on SOC_OMAPTI816X | 322 | depends on SOC_OMAPTI81XX |
323 | default y | 323 | default y |
324 | 324 | ||
325 | config MACH_OMAP_4430SDP | 325 | config MACH_OMAP_4430SDP |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index 8402b39b2840..b236fcc023ac 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -35,17 +35,12 @@ static void __init ti8168_evm_init(void) | |||
35 | omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); | 35 | omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); |
36 | } | 36 | } |
37 | 37 | ||
38 | static void __init ti8168_evm_map_io(void) | ||
39 | { | ||
40 | omapti816x_map_common_io(); | ||
41 | } | ||
42 | |||
43 | MACHINE_START(TI8168EVM, "ti8168evm") | 38 | MACHINE_START(TI8168EVM, "ti8168evm") |
44 | /* Maintainer: Texas Instruments */ | 39 | /* Maintainer: Texas Instruments */ |
45 | .atag_offset = 0x100, | 40 | .atag_offset = 0x100, |
46 | .map_io = ti8168_evm_map_io, | 41 | .map_io = ti81xx_map_io, |
47 | .init_early = ti816x_init_early, | 42 | .init_early = ti81xx_init_early, |
48 | .init_irq = ti816x_init_irq, | 43 | .init_irq = ti81xx_init_irq, |
49 | .timer = &omap3_timer, | 44 | .timer = &omap3_timer, |
50 | .init_machine = ti8168_evm_init, | 45 | .init_machine = ti8168_evm_init, |
51 | MACHINE_END | 46 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/clock3xxx_data.c b/arch/arm/mach-omap2/clock3xxx_data.c index 3d56d8a2b86e..be0fa34e5506 100644 --- a/arch/arm/mach-omap2/clock3xxx_data.c +++ b/arch/arm/mach-omap2/clock3xxx_data.c | |||
@@ -3602,7 +3602,7 @@ int __init omap3xxx_clk_init(void) | |||
3602 | * Lock DPLL5 -- here only until other device init code can | 3602 | * Lock DPLL5 -- here only until other device init code can |
3603 | * handle this | 3603 | * handle this |
3604 | */ | 3604 | */ |
3605 | if (!cpu_is_ti816x() && (omap_rev() >= OMAP3430_REV_ES2_0)) | 3605 | if (!cpu_is_ti81xx() && (omap_rev() >= OMAP3430_REV_ES2_0)) |
3606 | omap3_clk_lock_dpll5(); | 3606 | omap3_clk_lock_dpll5(); |
3607 | 3607 | ||
3608 | /* Avoid sleeping during omap3_core_dpll_m2_set_rate() */ | 3608 | /* Avoid sleeping during omap3_core_dpll_m2_set_rate() */ |
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index c900dcb6f1fd..aaf421178c91 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c | |||
@@ -110,27 +110,32 @@ void __init omap3_map_io(void) | |||
110 | 110 | ||
111 | /* | 111 | /* |
112 | * Adjust TAP register base such that omap3_check_revision accesses the correct | 112 | * Adjust TAP register base such that omap3_check_revision accesses the correct |
113 | * TI816X register for checking device ID (it adds 0x204 to tap base while | 113 | * TI81XX register for checking device ID (it adds 0x204 to tap base while |
114 | * TI816X DEVICE ID register is at offset 0x600 from control base). | 114 | * TI81XX DEVICE ID register is at offset 0x600 from control base). |
115 | */ | 115 | */ |
116 | #define TI816X_TAP_BASE (TI816X_CTRL_BASE + \ | 116 | #define TI81XX_TAP_BASE (TI81XX_CTRL_BASE + \ |
117 | TI816X_CONTROL_DEVICE_ID - 0x204) | 117 | TI81XX_CONTROL_DEVICE_ID - 0x204) |
118 | 118 | ||
119 | static struct omap_globals ti816x_globals = { | 119 | static struct omap_globals ti81xx_globals = { |
120 | .class = OMAP343X_CLASS, | 120 | .class = OMAP343X_CLASS, |
121 | .tap = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE), | 121 | .tap = OMAP2_L4_IO_ADDRESS(TI81XX_TAP_BASE), |
122 | .ctrl = OMAP2_L4_IO_ADDRESS(TI816X_CTRL_BASE), | 122 | .ctrl = OMAP2_L4_IO_ADDRESS(TI81XX_CTRL_BASE), |
123 | .prm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE), | 123 | .prm = OMAP2_L4_IO_ADDRESS(TI81XX_PRCM_BASE), |
124 | .cm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE), | 124 | .cm = OMAP2_L4_IO_ADDRESS(TI81XX_PRCM_BASE), |
125 | }; | 125 | }; |
126 | 126 | ||
127 | void __init omap2_set_globals_ti816x(void) | 127 | void __init omap2_set_globals_ti81xx(void) |
128 | { | 128 | { |
129 | __omap2_set_globals(&ti816x_globals); | 129 | __omap2_set_globals(&ti81xx_globals); |
130 | } | ||
131 | |||
132 | void __init ti81xx_map_io(void) | ||
133 | { | ||
134 | omapti81xx_map_common_io(); | ||
130 | } | 135 | } |
131 | 136 | ||
132 | #define AM33XX_TAP_BASE (AM33XX_CTRL_BASE + \ | 137 | #define AM33XX_TAP_BASE (AM33XX_CTRL_BASE + \ |
133 | TI816X_CONTROL_DEVICE_ID - 0x204) | 138 | TI81XX_CONTROL_DEVICE_ID - 0x204) |
134 | 139 | ||
135 | static struct omap_globals am33xx_globals = { | 140 | static struct omap_globals am33xx_globals = { |
136 | .class = AM335X_CLASS, | 141 | .class = AM335X_CLASS, |
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 9b733e343bf5..4b2b416fafe1 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -52,10 +52,10 @@ static inline void omap34xx_map_common_io(void) | |||
52 | } | 52 | } |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #ifdef CONFIG_SOC_OMAPTI816X | 55 | #ifdef CONFIG_SOC_OMAPTI81XX |
56 | extern void omapti816x_map_common_io(void); | 56 | extern void omapti81xx_map_common_io(void); |
57 | #else | 57 | #else |
58 | static inline void omapti816x_map_common_io(void) | 58 | static inline void omapti81xx_map_common_io(void) |
59 | { | 59 | { |
60 | } | 60 | } |
61 | #endif | 61 | #endif |
@@ -90,7 +90,7 @@ void omap35xx_init_early(void); | |||
90 | void omap3630_init_early(void); | 90 | void omap3630_init_early(void); |
91 | void omap3_init_early(void); /* Do not use this one */ | 91 | void omap3_init_early(void); /* Do not use this one */ |
92 | void am35xx_init_early(void); | 92 | void am35xx_init_early(void); |
93 | void ti816x_init_early(void); | 93 | void ti81xx_init_early(void); |
94 | void omap4430_init_early(void); | 94 | void omap4430_init_early(void); |
95 | 95 | ||
96 | /* | 96 | /* |
@@ -114,7 +114,7 @@ void omap2_set_globals_242x(void); | |||
114 | void omap2_set_globals_243x(void); | 114 | void omap2_set_globals_243x(void); |
115 | void omap2_set_globals_3xxx(void); | 115 | void omap2_set_globals_3xxx(void); |
116 | void omap2_set_globals_443x(void); | 116 | void omap2_set_globals_443x(void); |
117 | void omap2_set_globals_ti816x(void); | 117 | void omap2_set_globals_ti81xx(void); |
118 | void omap2_set_globals_am33xx(void); | 118 | void omap2_set_globals_am33xx(void); |
119 | 119 | ||
120 | /* These get called from omap2_set_globals_xxxx(), do not call these */ | 120 | /* These get called from omap2_set_globals_xxxx(), do not call these */ |
@@ -128,6 +128,7 @@ void omap243x_map_io(void); | |||
128 | void omap3_map_io(void); | 128 | void omap3_map_io(void); |
129 | void am33xx_map_io(void); | 129 | void am33xx_map_io(void); |
130 | void omap4_map_io(void); | 130 | void omap4_map_io(void); |
131 | void ti81xx_map_io(void); | ||
131 | 132 | ||
132 | /** | 133 | /** |
133 | * omap_test_timeout - busy-loop, testing a condition | 134 | * omap_test_timeout - busy-loop, testing a condition |
@@ -156,7 +157,7 @@ extern struct device *omap4_get_dsp_device(void); | |||
156 | 157 | ||
157 | void omap2_init_irq(void); | 158 | void omap2_init_irq(void); |
158 | void omap3_init_irq(void); | 159 | void omap3_init_irq(void); |
159 | void ti816x_init_irq(void); | 160 | void ti81xx_init_irq(void); |
160 | extern int omap_irq_pending(void); | 161 | extern int omap_irq_pending(void); |
161 | void omap_intc_save_context(void); | 162 | void omap_intc_save_context(void); |
162 | void omap_intc_restore_context(void); | 163 | void omap_intc_restore_context(void); |
diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h index d4ef75d5a382..0ba68d3764bc 100644 --- a/arch/arm/mach-omap2/control.h +++ b/arch/arm/mach-omap2/control.h | |||
@@ -52,8 +52,8 @@ | |||
52 | #define OMAP343X_CONTROL_PADCONFS_WKUP 0xa00 | 52 | #define OMAP343X_CONTROL_PADCONFS_WKUP 0xa00 |
53 | #define OMAP343X_CONTROL_GENERAL_WKUP 0xa60 | 53 | #define OMAP343X_CONTROL_GENERAL_WKUP 0xa60 |
54 | 54 | ||
55 | /* TI816X spefic control submodules */ | 55 | /* TI81XX spefic control submodules */ |
56 | #define TI816X_CONTROL_DEVCONF 0x600 | 56 | #define TI81XX_CONTROL_DEVCONF 0x600 |
57 | 57 | ||
58 | /* Control register offsets - read/write with omap_ctrl_{read,write}{bwl}() */ | 58 | /* Control register offsets - read/write with omap_ctrl_{read,write}{bwl}() */ |
59 | 59 | ||
@@ -244,8 +244,8 @@ | |||
244 | #define OMAP3_PADCONF_SAD2D_MSTANDBY 0x250 | 244 | #define OMAP3_PADCONF_SAD2D_MSTANDBY 0x250 |
245 | #define OMAP3_PADCONF_SAD2D_IDLEACK 0x254 | 245 | #define OMAP3_PADCONF_SAD2D_IDLEACK 0x254 |
246 | 246 | ||
247 | /* TI816X CONTROL_DEVCONF register offsets */ | 247 | /* TI81XX CONTROL_DEVCONF register offsets */ |
248 | #define TI816X_CONTROL_DEVICE_ID (TI816X_CONTROL_DEVCONF + 0x000) | 248 | #define TI81XX_CONTROL_DEVICE_ID (TI81XX_CONTROL_DEVCONF + 0x000) |
249 | 249 | ||
250 | /* | 250 | /* |
251 | * REVISIT: This list of registers is not comprehensive - there are more | 251 | * REVISIT: This list of registers is not comprehensive - there are more |
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 439afe7acdca..1dc68e64d7e2 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
@@ -226,7 +226,7 @@ static void __init omap4_check_features(void) | |||
226 | } | 226 | } |
227 | } | 227 | } |
228 | 228 | ||
229 | static void __init ti816x_check_features(void) | 229 | static void __init ti81xx_check_features(void) |
230 | { | 230 | { |
231 | omap_features = OMAP3_HAS_NEON; | 231 | omap_features = OMAP3_HAS_NEON; |
232 | } | 232 | } |
@@ -489,11 +489,11 @@ void __init omap2_check_revision(void) | |||
489 | } else if (cpu_is_omap34xx()) { | 489 | } else if (cpu_is_omap34xx()) { |
490 | omap3_check_revision(&cpu_rev); | 490 | omap3_check_revision(&cpu_rev); |
491 | 491 | ||
492 | /* TI816X doesn't have feature register */ | 492 | /* TI81XX doesn't have feature register */ |
493 | if (!cpu_is_ti816x()) | 493 | if (!cpu_is_ti81xx()) |
494 | omap3_check_features(); | 494 | omap3_check_features(); |
495 | else | 495 | else |
496 | ti816x_check_features(); | 496 | ti81xx_check_features(); |
497 | 497 | ||
498 | omap3_cpuinfo(cpu_rev); | 498 | omap3_cpuinfo(cpu_rev); |
499 | return; | 499 | return; |
diff --git a/arch/arm/mach-omap2/include/mach/debug-macro.S b/arch/arm/mach-omap2/include/mach/debug-macro.S index 13f98e59cfef..cdfc2a1f0e75 100644 --- a/arch/arm/mach-omap2/include/mach/debug-macro.S +++ b/arch/arm/mach-omap2/include/mach/debug-macro.S | |||
@@ -66,11 +66,11 @@ omap_uart_lsr: .word 0 | |||
66 | beq 34f @ configure OMAP3UART4 | 66 | beq 34f @ configure OMAP3UART4 |
67 | cmp \rp, #OMAP4UART4 @ only on 44xx | 67 | cmp \rp, #OMAP4UART4 @ only on 44xx |
68 | beq 44f @ configure OMAP4UART4 | 68 | beq 44f @ configure OMAP4UART4 |
69 | cmp \rp, #TI816XUART1 @ ti816x UART offsets different | 69 | cmp \rp, #TI81XXUART1 @ ti81Xx UART offsets different |
70 | beq 81f @ configure UART1 | 70 | beq 81f @ configure UART1 |
71 | cmp \rp, #TI816XUART2 @ ti816x UART offsets different | 71 | cmp \rp, #TI81XXUART2 @ ti81Xx UART offsets different |
72 | beq 82f @ configure UART2 | 72 | beq 82f @ configure UART2 |
73 | cmp \rp, #TI816XUART3 @ ti816x UART offsets different | 73 | cmp \rp, #TI81XXUART3 @ ti81Xx UART offsets different |
74 | beq 83f @ configure UART3 | 74 | beq 83f @ configure UART3 |
75 | cmp \rp, #ZOOM_UART @ only on zoom2/3 | 75 | cmp \rp, #ZOOM_UART @ only on zoom2/3 |
76 | beq 95f @ configure ZOOM_UART | 76 | beq 95f @ configure ZOOM_UART |
@@ -94,11 +94,11 @@ omap_uart_lsr: .word 0 | |||
94 | b 98f | 94 | b 98f |
95 | 44: mov \rp, #UART_OFFSET(OMAP4_UART4_BASE) | 95 | 44: mov \rp, #UART_OFFSET(OMAP4_UART4_BASE) |
96 | b 98f | 96 | b 98f |
97 | 81: mov \rp, #UART_OFFSET(TI816X_UART1_BASE) | 97 | 81: mov \rp, #UART_OFFSET(TI81XX_UART1_BASE) |
98 | b 98f | 98 | b 98f |
99 | 82: mov \rp, #UART_OFFSET(TI816X_UART2_BASE) | 99 | 82: mov \rp, #UART_OFFSET(TI81XX_UART2_BASE) |
100 | b 98f | 100 | b 98f |
101 | 83: mov \rp, #UART_OFFSET(TI816X_UART3_BASE) | 101 | 83: mov \rp, #UART_OFFSET(TI81XX_UART3_BASE) |
102 | b 98f | 102 | b 98f |
103 | 103 | ||
104 | 95: ldr \rp, =ZOOM_UART_BASE | 104 | 95: ldr \rp, =ZOOM_UART_BASE |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 088d2ba60eff..73d617f0dc4a 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -176,8 +176,8 @@ static struct map_desc omap34xx_io_desc[] __initdata = { | |||
176 | }; | 176 | }; |
177 | #endif | 177 | #endif |
178 | 178 | ||
179 | #ifdef CONFIG_SOC_OMAPTI816X | 179 | #ifdef CONFIG_SOC_OMAPTI81XX |
180 | static struct map_desc omapti816x_io_desc[] __initdata = { | 180 | static struct map_desc omapti81xx_io_desc[] __initdata = { |
181 | { | 181 | { |
182 | .virtual = L4_34XX_VIRT, | 182 | .virtual = L4_34XX_VIRT, |
183 | .pfn = __phys_to_pfn(L4_34XX_PHYS), | 183 | .pfn = __phys_to_pfn(L4_34XX_PHYS), |
@@ -280,10 +280,10 @@ void __init omap34xx_map_common_io(void) | |||
280 | } | 280 | } |
281 | #endif | 281 | #endif |
282 | 282 | ||
283 | #ifdef CONFIG_SOC_OMAPTI816X | 283 | #ifdef CONFIG_SOC_OMAPTI81XX |
284 | void __init omapti816x_map_common_io(void) | 284 | void __init omapti81xx_map_common_io(void) |
285 | { | 285 | { |
286 | iotable_init(omapti816x_io_desc, ARRAY_SIZE(omapti816x_io_desc)); | 286 | iotable_init(omapti81xx_io_desc, ARRAY_SIZE(omapti81xx_io_desc)); |
287 | } | 287 | } |
288 | #endif | 288 | #endif |
289 | 289 | ||
@@ -442,9 +442,9 @@ void __init am35xx_init_early(void) | |||
442 | omap3_init_early(); | 442 | omap3_init_early(); |
443 | } | 443 | } |
444 | 444 | ||
445 | void __init ti816x_init_early(void) | 445 | void __init ti81xx_init_early(void) |
446 | { | 446 | { |
447 | omap2_set_globals_ti816x(); | 447 | omap2_set_globals_ti81xx(); |
448 | omap_common_init_early(); | 448 | omap_common_init_early(); |
449 | omap3xxx_voltagedomains_init(); | 449 | omap3xxx_voltagedomains_init(); |
450 | omap3xxx_powerdomains_init(); | 450 | omap3xxx_powerdomains_init(); |
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 42b1d6591912..1fef061f7927 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
@@ -193,7 +193,7 @@ void __init omap3_init_irq(void) | |||
193 | omap_init_irq(OMAP34XX_IC_BASE, 96); | 193 | omap_init_irq(OMAP34XX_IC_BASE, 96); |
194 | } | 194 | } |
195 | 195 | ||
196 | void __init ti816x_init_irq(void) | 196 | void __init ti81xx_init_irq(void) |
197 | { | 197 | { |
198 | omap_init_irq(OMAP34XX_IC_BASE, 128); | 198 | omap_init_irq(OMAP34XX_IC_BASE, 128); |
199 | } | 199 | } |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 9770c7624aa0..d0f009cbfb50 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -464,7 +464,7 @@ static void omap_uart_idle_init(struct omap_uart_state *uart) | |||
464 | mod_timer(&uart->timer, jiffies + uart->timeout); | 464 | mod_timer(&uart->timer, jiffies + uart->timeout); |
465 | omap_uart_smart_idle_enable(uart, 0); | 465 | omap_uart_smart_idle_enable(uart, 0); |
466 | 466 | ||
467 | if (cpu_is_omap34xx() && !(cpu_is_ti816x() || cpu_is_am33xx())) { | 467 | if (cpu_is_omap34xx() && !(cpu_is_ti81xx() || cpu_is_am33xx())) { |
468 | u32 mod = (uart->num > 1) ? OMAP3430_PER_MOD : CORE_MOD; | 468 | u32 mod = (uart->num > 1) ? OMAP3430_PER_MOD : CORE_MOD; |
469 | u32 wk_mask = 0; | 469 | u32 wk_mask = 0; |
470 | u32 padconf = 0; | 470 | u32 padconf = 0; |
@@ -746,7 +746,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata) | |||
746 | */ | 746 | */ |
747 | uart->regshift = p->regshift; | 747 | uart->regshift = p->regshift; |
748 | uart->membase = p->membase; | 748 | uart->membase = p->membase; |
749 | if (cpu_is_omap44xx() || cpu_is_ti816x()) | 749 | if (cpu_is_omap44xx() || cpu_is_ti81xx()) |
750 | uart->errata |= UART_ERRATA_FIFO_FULL_ABORT; | 750 | uart->errata |= UART_ERRATA_FIFO_FULL_ABORT; |
751 | else if ((serial_read_reg(uart, UART_OMAP_MVER) & 0xFF) | 751 | else if ((serial_read_reg(uart, UART_OMAP_MVER) & 0xFF) |
752 | >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV) | 752 | >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV) |
@@ -828,7 +828,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata) | |||
828 | } | 828 | } |
829 | 829 | ||
830 | /* Enable the MDR1 errata for OMAP3 */ | 830 | /* Enable the MDR1 errata for OMAP3 */ |
831 | if (cpu_is_omap34xx() && !(cpu_is_ti816x() || cpu_is_am33xx())) | 831 | if (cpu_is_omap34xx() && !(cpu_is_ti81xx() || cpu_is_am33xx())) |
832 | uart->errata |= UART_ERRATA_i202_MDR1_ACCESS; | 832 | uart->errata |= UART_ERRATA_i202_MDR1_ACCESS; |
833 | } | 833 | } |
834 | 834 | ||
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index 34fc9136b1a0..5f7aa4981daf 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -87,6 +87,14 @@ static inline int is_am ##class (void) \ | |||
87 | return (GET_AM_CLASS == (id)) ? 1 : 0; \ | 87 | return (GET_AM_CLASS == (id)) ? 1 : 0; \ |
88 | } | 88 | } |
89 | 89 | ||
90 | #define GET_TI_CLASS ((omap_rev() >> 24) & 0xff) | ||
91 | |||
92 | #define IS_TI_CLASS(class, id) \ | ||
93 | static inline int is_ti ##class (void) \ | ||
94 | { \ | ||
95 | return (GET_TI_CLASS == (id)) ? 1 : 0; \ | ||
96 | } | ||
97 | |||
90 | #define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff) | 98 | #define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff) |
91 | 99 | ||
92 | #define IS_OMAP_SUBCLASS(subclass, id) \ | 100 | #define IS_OMAP_SUBCLASS(subclass, id) \ |
@@ -115,6 +123,8 @@ IS_OMAP_CLASS(34xx, 0x34) | |||
115 | IS_OMAP_CLASS(44xx, 0x44) | 123 | IS_OMAP_CLASS(44xx, 0x44) |
116 | IS_AM_CLASS(33xx, 0x33) | 124 | IS_AM_CLASS(33xx, 0x33) |
117 | 125 | ||
126 | IS_TI_CLASS(81xx, 0x81) | ||
127 | |||
118 | IS_OMAP_SUBCLASS(242x, 0x242) | 128 | IS_OMAP_SUBCLASS(242x, 0x242) |
119 | IS_OMAP_SUBCLASS(243x, 0x243) | 129 | IS_OMAP_SUBCLASS(243x, 0x243) |
120 | IS_OMAP_SUBCLASS(343x, 0x343) | 130 | IS_OMAP_SUBCLASS(343x, 0x343) |
@@ -134,6 +144,7 @@ IS_AM_SUBCLASS(335x, 0x335) | |||
134 | #define cpu_is_omap243x() 0 | 144 | #define cpu_is_omap243x() 0 |
135 | #define cpu_is_omap34xx() 0 | 145 | #define cpu_is_omap34xx() 0 |
136 | #define cpu_is_omap343x() 0 | 146 | #define cpu_is_omap343x() 0 |
147 | #define cpu_is_ti81xx() 0 | ||
137 | #define cpu_is_ti816x() 0 | 148 | #define cpu_is_ti816x() 0 |
138 | #define cpu_is_am33xx() 0 | 149 | #define cpu_is_am33xx() 0 |
139 | #define cpu_is_am335x() 0 | 150 | #define cpu_is_am335x() 0 |
@@ -343,6 +354,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
343 | # undef cpu_is_omap3530 | 354 | # undef cpu_is_omap3530 |
344 | # undef cpu_is_omap3505 | 355 | # undef cpu_is_omap3505 |
345 | # undef cpu_is_omap3517 | 356 | # undef cpu_is_omap3517 |
357 | # undef cpu_is_ti81xx | ||
346 | # undef cpu_is_ti816x | 358 | # undef cpu_is_ti816x |
347 | # undef cpu_is_am33xx | 359 | # undef cpu_is_am33xx |
348 | # undef cpu_is_am335x | 360 | # undef cpu_is_am335x |
@@ -362,6 +374,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
362 | !omap3_has_sgx()) | 374 | !omap3_has_sgx()) |
363 | # undef cpu_is_omap3630 | 375 | # undef cpu_is_omap3630 |
364 | # define cpu_is_omap3630() is_omap363x() | 376 | # define cpu_is_omap3630() is_omap363x() |
377 | # define cpu_is_ti81xx() is_ti81xx() | ||
365 | # define cpu_is_ti816x() is_ti816x() | 378 | # define cpu_is_ti816x() is_ti816x() |
366 | # define cpu_is_am33xx() is_am33xx() | 379 | # define cpu_is_am33xx() is_am33xx() |
367 | # define cpu_is_am335x() is_am335x() | 380 | # define cpu_is_am335x() is_am335x() |
diff --git a/arch/arm/plat-omap/include/plat/hardware.h b/arch/arm/plat-omap/include/plat/hardware.h index e6521e120d9f..e897978371c2 100644 --- a/arch/arm/plat-omap/include/plat/hardware.h +++ b/arch/arm/plat-omap/include/plat/hardware.h | |||
@@ -286,7 +286,7 @@ | |||
286 | #include <plat/omap24xx.h> | 286 | #include <plat/omap24xx.h> |
287 | #include <plat/omap34xx.h> | 287 | #include <plat/omap34xx.h> |
288 | #include <plat/omap44xx.h> | 288 | #include <plat/omap44xx.h> |
289 | #include <plat/ti816x.h> | 289 | #include <plat/ti81xx.h> |
290 | #include <plat/am33xx.h> | 290 | #include <plat/am33xx.h> |
291 | 291 | ||
292 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ | 292 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ |
diff --git a/arch/arm/plat-omap/include/plat/serial.h b/arch/arm/plat-omap/include/plat/serial.h index 1ab9fd6abe6d..6975ee3f5217 100644 --- a/arch/arm/plat-omap/include/plat/serial.h +++ b/arch/arm/plat-omap/include/plat/serial.h | |||
@@ -51,10 +51,10 @@ | |||
51 | #define OMAP4_UART3_BASE 0x48020000 | 51 | #define OMAP4_UART3_BASE 0x48020000 |
52 | #define OMAP4_UART4_BASE 0x4806e000 | 52 | #define OMAP4_UART4_BASE 0x4806e000 |
53 | 53 | ||
54 | /* TI816X serial ports */ | 54 | /* TI81XX serial ports */ |
55 | #define TI816X_UART1_BASE 0x48020000 | 55 | #define TI81XX_UART1_BASE 0x48020000 |
56 | #define TI816X_UART2_BASE 0x48022000 | 56 | #define TI81XX_UART2_BASE 0x48022000 |
57 | #define TI816X_UART3_BASE 0x48024000 | 57 | #define TI81XX_UART3_BASE 0x48024000 |
58 | 58 | ||
59 | /* AM3505/3517 UART4 */ | 59 | /* AM3505/3517 UART4 */ |
60 | #define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */ | 60 | #define AM35XX_UART4_BASE 0x4809E000 /* Only on AM3505/3517 */ |
@@ -89,9 +89,9 @@ | |||
89 | #define OMAP4UART2 OMAP2UART2 | 89 | #define OMAP4UART2 OMAP2UART2 |
90 | #define OMAP4UART3 43 | 90 | #define OMAP4UART3 43 |
91 | #define OMAP4UART4 44 | 91 | #define OMAP4UART4 44 |
92 | #define TI816XUART1 81 | 92 | #define TI81XXUART1 81 |
93 | #define TI816XUART2 82 | 93 | #define TI81XXUART2 82 |
94 | #define TI816XUART3 83 | 94 | #define TI81XXUART3 83 |
95 | #define ZOOM_UART 95 /* Only on zoom2/3 */ | 95 | #define ZOOM_UART 95 /* Only on zoom2/3 */ |
96 | 96 | ||
97 | /* This is only used by 8250.c for omap1510 */ | 97 | /* This is only used by 8250.c for omap1510 */ |
diff --git a/arch/arm/plat-omap/include/plat/ti816x.h b/arch/arm/plat-omap/include/plat/ti81xx.h index 50510f5dda1e..8f9843f78422 100644 --- a/arch/arm/plat-omap/include/plat/ti816x.h +++ b/arch/arm/plat-omap/include/plat/ti81xx.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * This file contains the address data for various TI816X modules. | 2 | * This file contains the address data for various TI81XX modules. |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ | 4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ |
5 | * | 5 | * |
@@ -13,15 +13,15 @@ | |||
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef __ASM_ARCH_TI816X_H | 16 | #ifndef __ASM_ARCH_TI81XX_H |
17 | #define __ASM_ARCH_TI816X_H | 17 | #define __ASM_ARCH_TI81XX_H |
18 | 18 | ||
19 | #define L4_SLOW_TI816X_BASE 0x48000000 | 19 | #define L4_SLOW_TI81XX_BASE 0x48000000 |
20 | 20 | ||
21 | #define TI816X_SCM_BASE 0x48140000 | 21 | #define TI81XX_SCM_BASE 0x48140000 |
22 | #define TI816X_CTRL_BASE TI816X_SCM_BASE | 22 | #define TI81XX_CTRL_BASE TI81XX_SCM_BASE |
23 | #define TI816X_PRCM_BASE 0x48180000 | 23 | #define TI81XX_PRCM_BASE 0x48180000 |
24 | 24 | ||
25 | #define TI816X_ARM_INTC_BASE 0x48200000 | 25 | #define TI81XX_ARM_INTC_BASE 0x48200000 |
26 | 26 | ||
27 | #endif /* __ASM_ARCH_TI816X_H */ | 27 | #endif /* __ASM_ARCH_TI81XX_H */ |
diff --git a/arch/arm/plat-omap/include/plat/uncompress.h b/arch/arm/plat-omap/include/plat/uncompress.h index 2f472e989ec6..7fbc361946b5 100644 --- a/arch/arm/plat-omap/include/plat/uncompress.h +++ b/arch/arm/plat-omap/include/plat/uncompress.h | |||
@@ -99,9 +99,9 @@ static inline void flush(void) | |||
99 | #define DEBUG_LL_ZOOM(mach) \ | 99 | #define DEBUG_LL_ZOOM(mach) \ |
100 | _DEBUG_LL_ENTRY(mach, ZOOM_UART_BASE, ZOOM_PORT_SHIFT, ZOOM_UART) | 100 | _DEBUG_LL_ENTRY(mach, ZOOM_UART_BASE, ZOOM_PORT_SHIFT, ZOOM_UART) |
101 | 101 | ||
102 | #define DEBUG_LL_TI816X(p, mach) \ | 102 | #define DEBUG_LL_TI81XX(p, mach) \ |
103 | _DEBUG_LL_ENTRY(mach, TI816X_UART##p##_BASE, OMAP_PORT_SHIFT, \ | 103 | _DEBUG_LL_ENTRY(mach, TI81XX_UART##p##_BASE, OMAP_PORT_SHIFT, \ |
104 | TI816XUART##p) | 104 | TI81XXUART##p) |
105 | 105 | ||
106 | static inline void __arch_decomp_setup(unsigned long arch_id) | 106 | static inline void __arch_decomp_setup(unsigned long arch_id) |
107 | { | 107 | { |
@@ -177,7 +177,7 @@ static inline void __arch_decomp_setup(unsigned long arch_id) | |||
177 | DEBUG_LL_ZOOM(omap_zoom3); | 177 | DEBUG_LL_ZOOM(omap_zoom3); |
178 | 178 | ||
179 | /* TI8168 base boards using UART3 */ | 179 | /* TI8168 base boards using UART3 */ |
180 | DEBUG_LL_TI816X(3, ti8168evm); | 180 | DEBUG_LL_TI81XX(3, ti8168evm); |
181 | 181 | ||
182 | } while (0); | 182 | } while (0); |
183 | } | 183 | } |