Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branches 'devel-cleanup', 'devel-board', 'devel-early-init' and 'devel-ti816x' into omap-for-linus

+662 -383
+1 -1
arch/arm/mach-omap1/Makefile
··· 4 4 5 5 # Common support 6 6 obj-y := io.o id.o sram.o time.o irq.o mux.o flash.o serial.o devices.o dma.o 7 - obj-y += clock.o clock_data.o opp_data.o 7 + obj-y += clock.o clock_data.o opp_data.o reset.o 8 8 9 9 obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o 10 10
+8 -8
arch/arm/mach-omap1/board-ams-delta.c
··· 165 165 } 166 166 }; 167 167 168 - static struct omap_lcd_config ams_delta_lcd_config __initdata = { 168 + static struct omap_lcd_config ams_delta_lcd_config = { 169 169 .ctrl_name = "internal", 170 170 }; 171 171 ··· 175 175 .pins[0] = 2, 176 176 }; 177 177 178 - static struct omap_board_config_kernel ams_delta_config[] = { 178 + static struct omap_board_config_kernel ams_delta_config[] __initdata = { 179 179 { OMAP_TAG_LCD, &ams_delta_lcd_config }, 180 180 }; 181 181 ··· 208 208 .keymap_size = ARRAY_SIZE(ams_delta_keymap), 209 209 }; 210 210 211 - static struct omap_kp_platform_data ams_delta_kp_data = { 211 + static struct omap_kp_platform_data ams_delta_kp_data __initdata = { 212 212 .rows = 8, 213 213 .cols = 8, 214 214 .keymap_data = &ams_delta_keymap_data, 215 215 .delay = 9, 216 216 }; 217 217 218 - static struct platform_device ams_delta_kp_device = { 218 + static struct platform_device ams_delta_kp_device __initdata = { 219 219 .name = "omap-keypad", 220 220 .id = -1, 221 221 .dev = { ··· 225 225 .resource = ams_delta_kp_resources, 226 226 }; 227 227 228 - static struct platform_device ams_delta_lcd_device = { 228 + static struct platform_device ams_delta_lcd_device __initdata = { 229 229 .name = "lcd_ams_delta", 230 230 .id = -1, 231 231 }; 232 232 233 - static struct platform_device ams_delta_led_device = { 233 + static struct platform_device ams_delta_led_device __initdata = { 234 234 .name = "ams-delta-led", 235 235 .id = -1 236 236 }; ··· 259 259 #define ams_delta_camera_power NULL 260 260 #endif 261 261 262 - static struct soc_camera_link __initdata ams_delta_iclink = { 262 + static struct soc_camera_link ams_delta_iclink = { 263 263 .bus_id = 0, /* OMAP1 SoC camera bus */ 264 264 .i2c_adapter_id = 1, 265 265 .board_info = &ams_delta_camera_board_info[0], ··· 267 267 .power = ams_delta_camera_power, 268 268 }; 269 269 270 - static struct platform_device ams_delta_camera_device = { 270 + static struct platform_device ams_delta_camera_device __initdata = { 271 271 .name = "soc-camera-pdrv", 272 272 .id = 0, 273 273 .dev = {
+2 -2
arch/arm/mach-omap1/board-fsample.c
··· 287 287 &lcd_device, 288 288 }; 289 289 290 - static struct omap_lcd_config fsample_lcd_config __initdata = { 290 + static struct omap_lcd_config fsample_lcd_config = { 291 291 .ctrl_name = "internal", 292 292 }; 293 293 294 - static struct omap_board_config_kernel fsample_config[] = { 294 + static struct omap_board_config_kernel fsample_config[] __initdata = { 295 295 { OMAP_TAG_LCD, &fsample_lcd_config }, 296 296 }; 297 297
+1 -1
arch/arm/mach-omap1/board-h2.c
··· 202 202 203 203 static const char *h2_part_probes[] = { "cmdlinepart", NULL }; 204 204 205 - struct platform_nand_data h2_nand_platdata = { 205 + static struct platform_nand_data h2_nand_platdata = { 206 206 .chip = { 207 207 .nr_chips = 1, 208 208 .chip_offset = 0,
+1 -1
arch/arm/mach-omap1/board-h3.c
··· 204 204 205 205 static const char *part_probes[] = { "cmdlinepart", NULL }; 206 206 207 - struct platform_nand_data nand_platdata = { 207 + static struct platform_nand_data nand_platdata = { 208 208 .chip = { 209 209 .nr_chips = 1, 210 210 .chip_offset = 0,
+2 -2
arch/arm/mach-omap1/board-htcherald.c
··· 331 331 }, 332 332 }; 333 333 334 - struct htcpld_chip_platform_data htcpld_chips[] = { 334 + static struct htcpld_chip_platform_data htcpld_chips[] = { 335 335 [0] = { 336 336 .addr = 0x03, 337 337 .reset = 0x04, ··· 366 366 }, 367 367 }; 368 368 369 - struct htcpld_core_platform_data htcpld_pfdata = { 369 + static struct htcpld_core_platform_data htcpld_pfdata = { 370 370 .int_reset_gpio_hi = HTCPLD_GPIO_INT_RESET_HI, 371 371 .int_reset_gpio_lo = HTCPLD_GPIO_INT_RESET_LO, 372 372 .i2c_adapter_id = 1,
+1 -1
arch/arm/mach-omap1/board-innovator.c
··· 365 365 366 366 static struct omap_mmc_platform_data *mmc_data[OMAP16XX_NR_MMC]; 367 367 368 - void __init innovator_mmc_init(void) 368 + static void __init innovator_mmc_init(void) 369 369 { 370 370 mmc_data[0] = &mmc1_data; 371 371 omap1_init_mmc(mmc_data, OMAP15XX_NR_MMC);
+3 -3
arch/arm/mach-omap1/board-nokia770.c
··· 115 115 .shutdown = mipid_shutdown, 116 116 }; 117 117 118 - static void mipid_dev_init(void) 118 + static void __init mipid_dev_init(void) 119 119 { 120 120 const struct omap_lcd_config *conf; 121 121 ··· 126 126 } 127 127 } 128 128 129 - static void ads7846_dev_init(void) 129 + static void __init ads7846_dev_init(void) 130 130 { 131 131 if (gpio_request(ADS7846_PENDOWN_GPIO, "ADS7846 pendown") < 0) 132 132 printk(KERN_ERR "can't get ads7846 pen down GPIO\n"); ··· 170 170 .te_connected = 1, 171 171 }; 172 172 173 - static void hwa742_dev_init(void) 173 + static void __init hwa742_dev_init(void) 174 174 { 175 175 clk_add_alias("hwa_sys_ck", NULL, "bclk", NULL); 176 176 omapfb_set_ctrl_platform_data(&nokia770_hwa742_platform_data);
-13
arch/arm/mach-omap1/board-palmte.c
··· 230 230 }, 231 231 }; 232 232 233 - static void palmte_headphones_detect(void *data, int state) 234 - { 235 - if (state) { 236 - /* Headphones connected, disable speaker */ 237 - gpio_set_value(PALMTE_SPEAKER_GPIO, 0); 238 - printk(KERN_INFO "PM: speaker off\n"); 239 - } else { 240 - /* Headphones unplugged, re-enable speaker */ 241 - gpio_set_value(PALMTE_SPEAKER_GPIO, 1); 242 - printk(KERN_INFO "PM: speaker on\n"); 243 - } 244 - } 245 - 246 233 static void __init palmte_misc_gpio_setup(void) 247 234 { 248 235 /* Set TSC2102 PINTDAV pin as input (used by TSC2102 driver) */
+60 -47
arch/arm/mach-omap1/board-voiceblue.c
··· 26 26 #include <linux/smc91x.h> 27 27 28 28 #include <mach/hardware.h> 29 + #include <mach/system.h> 29 30 #include <asm/mach-types.h> 30 31 #include <asm/mach/arch.h> 31 32 #include <asm/mach/map.h> 32 33 34 + #include <plat/board-voiceblue.h> 33 35 #include <plat/common.h> 34 36 #include <mach/gpio.h> 35 37 #include <plat/flash.h> ··· 165 163 omap_init_irq(); 166 164 } 167 165 168 - static void __init voiceblue_init(void) 169 - { 170 - /* mux pins for uarts */ 171 - omap_cfg_reg(UART1_TX); 172 - omap_cfg_reg(UART1_RTS); 173 - omap_cfg_reg(UART2_TX); 174 - omap_cfg_reg(UART2_RTS); 175 - omap_cfg_reg(UART3_TX); 176 - omap_cfg_reg(UART3_RX); 177 - 178 - /* Watchdog */ 179 - gpio_request(0, "Watchdog"); 180 - /* smc91x reset */ 181 - gpio_request(7, "SMC91x reset"); 182 - gpio_direction_output(7, 1); 183 - udelay(2); /* wait at least 100ns */ 184 - gpio_set_value(7, 0); 185 - mdelay(50); /* 50ms until PHY ready */ 186 - /* smc91x interrupt pin */ 187 - gpio_request(8, "SMC91x irq"); 188 - /* 16C554 reset*/ 189 - gpio_request(6, "16C554 reset"); 190 - gpio_direction_output(6, 0); 191 - /* 16C554 interrupt pins */ 192 - gpio_request(12, "16C554 irq"); 193 - gpio_request(13, "16C554 irq"); 194 - gpio_request(14, "16C554 irq"); 195 - gpio_request(15, "16C554 irq"); 196 - set_irq_type(gpio_to_irq(12), IRQ_TYPE_EDGE_RISING); 197 - set_irq_type(gpio_to_irq(13), IRQ_TYPE_EDGE_RISING); 198 - set_irq_type(gpio_to_irq(14), IRQ_TYPE_EDGE_RISING); 199 - set_irq_type(gpio_to_irq(15), IRQ_TYPE_EDGE_RISING); 200 - 201 - platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); 202 - omap_board_config = voiceblue_config; 203 - omap_board_config_size = ARRAY_SIZE(voiceblue_config); 204 - omap_serial_init(); 205 - omap1_usb_init(&voiceblue_usb_config); 206 - omap_register_i2c_bus(1, 100, NULL, 0); 207 - 208 - /* There is a good chance board is going up, so enable power LED 209 - * (it is connected through invertor) */ 210 - omap_writeb(0x00, OMAP_LPG1_LCR); 211 - omap_writeb(0x00, OMAP_LPG1_PMR); /* Disable clock */ 212 - } 213 - 214 166 static void __init voiceblue_map_io(void) 215 167 { 216 168 omap1_map_common_io(); ··· 231 275 gpio_set_value(0, wdt_gpio_state); 232 276 } 233 277 234 - void voiceblue_reset(void) 278 + static void voiceblue_reset(char mode, const char *cmd) 235 279 { 280 + /* 281 + * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 282 + * "Global Software Reset Affects Traffic Controller Frequency". 283 + */ 284 + if (cpu_is_omap5912()) { 285 + omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL); 286 + omap_writew(0x8, ARM_RSTCT1); 287 + } 288 + 236 289 set_bit(MACHINE_REBOOT, &machine_state); 237 290 voiceblue_wdt_enable(); 238 291 while (1) ; ··· 250 285 EXPORT_SYMBOL(voiceblue_wdt_enable); 251 286 EXPORT_SYMBOL(voiceblue_wdt_disable); 252 287 EXPORT_SYMBOL(voiceblue_wdt_ping); 288 + 289 + static void __init voiceblue_init(void) 290 + { 291 + /* mux pins for uarts */ 292 + omap_cfg_reg(UART1_TX); 293 + omap_cfg_reg(UART1_RTS); 294 + omap_cfg_reg(UART2_TX); 295 + omap_cfg_reg(UART2_RTS); 296 + omap_cfg_reg(UART3_TX); 297 + omap_cfg_reg(UART3_RX); 298 + 299 + /* Watchdog */ 300 + gpio_request(0, "Watchdog"); 301 + /* smc91x reset */ 302 + gpio_request(7, "SMC91x reset"); 303 + gpio_direction_output(7, 1); 304 + udelay(2); /* wait at least 100ns */ 305 + gpio_set_value(7, 0); 306 + mdelay(50); /* 50ms until PHY ready */ 307 + /* smc91x interrupt pin */ 308 + gpio_request(8, "SMC91x irq"); 309 + /* 16C554 reset*/ 310 + gpio_request(6, "16C554 reset"); 311 + gpio_direction_output(6, 0); 312 + /* 16C554 interrupt pins */ 313 + gpio_request(12, "16C554 irq"); 314 + gpio_request(13, "16C554 irq"); 315 + gpio_request(14, "16C554 irq"); 316 + gpio_request(15, "16C554 irq"); 317 + set_irq_type(gpio_to_irq(12), IRQ_TYPE_EDGE_RISING); 318 + set_irq_type(gpio_to_irq(13), IRQ_TYPE_EDGE_RISING); 319 + set_irq_type(gpio_to_irq(14), IRQ_TYPE_EDGE_RISING); 320 + set_irq_type(gpio_to_irq(15), IRQ_TYPE_EDGE_RISING); 321 + 322 + platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); 323 + omap_board_config = voiceblue_config; 324 + omap_board_config_size = ARRAY_SIZE(voiceblue_config); 325 + omap_serial_init(); 326 + omap1_usb_init(&voiceblue_usb_config); 327 + omap_register_i2c_bus(1, 100, NULL, 0); 328 + 329 + /* There is a good chance board is going up, so enable power LED 330 + * (it is connected through invertor) */ 331 + omap_writeb(0x00, OMAP_LPG1_LCR); 332 + omap_writeb(0x00, OMAP_LPG1_PMR); /* Disable clock */ 333 + 334 + arch_reset = voiceblue_reset; 335 + } 253 336 254 337 MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910") 255 338 /* Maintainer: Ladislav Michl <michl@2n.cz> */
+25
arch/arm/mach-omap1/reset.c
··· 1 + /* 2 + * OMAP1 reset support 3 + */ 4 + #include <linux/kernel.h> 5 + #include <linux/io.h> 6 + 7 + #include <mach/hardware.h> 8 + #include <mach/system.h> 9 + #include <plat/prcm.h> 10 + 11 + void omap1_arch_reset(char mode, const char *cmd) 12 + { 13 + /* 14 + * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 15 + * "Global Software Reset Affects Traffic Controller Frequency". 16 + */ 17 + if (cpu_is_omap5912()) { 18 + omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), DPLL_CTL); 19 + omap_writew(0x8, ARM_RSTCT1); 20 + } 21 + 22 + omap_writew(1, ARM_RSTCT1); 23 + } 24 + 25 + void (*arch_reset)(char, const char *) = omap1_arch_reset;
+18 -8
arch/arm/mach-omap2/Kconfig
··· 53 53 comment "OMAP Core Type" 54 54 depends on ARCH_OMAP2 55 55 56 - config ARCH_OMAP2420 56 + config SOC_OMAP2420 57 57 bool "OMAP2420 support" 58 58 depends on ARCH_OMAP2 59 59 default y 60 60 select OMAP_DM_TIMER 61 61 select ARCH_OMAP_OTG 62 62 63 - config ARCH_OMAP2430 63 + config SOC_OMAP2430 64 64 bool "OMAP2430 support" 65 65 depends on ARCH_OMAP2 66 66 default y 67 67 select ARCH_OMAP_OTG 68 68 69 - config ARCH_OMAP3430 69 + config SOC_OMAP3430 70 70 bool "OMAP3430 support" 71 71 depends on ARCH_OMAP3 72 72 default y 73 73 select ARCH_OMAP_OTG 74 + 75 + config SOC_OMAPTI816X 76 + bool "TI816X support" 77 + depends on ARCH_OMAP3 78 + default y 74 79 75 80 config OMAP_PACKAGE_ZAF 76 81 bool ··· 111 106 112 107 config MACH_OMAP2_TUSB6010 113 108 bool 114 - depends on ARCH_OMAP2 && ARCH_OMAP2420 109 + depends on ARCH_OMAP2 && SOC_OMAP2420 115 110 default y if MACH_NOKIA_N8X0 116 111 117 112 config MACH_OMAP_H4 118 113 bool "OMAP 2420 H4 board" 119 - depends on ARCH_OMAP2420 114 + depends on SOC_OMAP2420 120 115 default y 121 116 select OMAP_PACKAGE_ZAF 122 117 select OMAP_DEBUG_DEVICES 123 118 124 119 config MACH_OMAP_APOLLON 125 120 bool "OMAP 2420 Apollon board" 126 - depends on ARCH_OMAP2420 121 + depends on SOC_OMAP2420 127 122 default y 128 123 select OMAP_PACKAGE_ZAC 129 124 130 125 config MACH_OMAP_2430SDP 131 126 bool "OMAP 2430 SDP board" 132 - depends on ARCH_OMAP2430 127 + depends on SOC_OMAP2430 133 128 default y 134 129 select OMAP_PACKAGE_ZAC 135 130 ··· 224 219 225 220 config MACH_NOKIA_N8X0 226 221 bool "Nokia N800/N810" 227 - depends on ARCH_OMAP2420 222 + depends on SOC_OMAP2420 228 223 default y 229 224 select OMAP_PACKAGE_ZAC 230 225 select MACH_NOKIA_N800 ··· 298 293 depends on ARCH_OMAP3 299 294 default y 300 295 select OMAP_PACKAGE_CBP 296 + 297 + config MACH_TI8168EVM 298 + bool "TI8168 Evaluation Module" 299 + depends on SOC_OMAPTI816X 300 + default y 301 301 302 302 config MACH_OMAP_4430SDP 303 303 bool "OMAP 4430 SDP board"
+11 -10
arch/arm/mach-omap2/Makefile
··· 31 31 AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec) 32 32 33 33 # Functions loaded to SRAM 34 - obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o 35 - obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o 34 + obj-$(CONFIG_SOC_OMAP2420) += sram242x.o 35 + obj-$(CONFIG_SOC_OMAP2430) += sram243x.o 36 36 obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o 37 37 38 38 AFLAGS_sram242x.o :=-Wa,-march=armv6 ··· 40 40 AFLAGS_sram34xx.o :=-Wa,-march=armv7-a 41 41 42 42 # Pin multiplexing 43 - obj-$(CONFIG_ARCH_OMAP2420) += mux2420.o 44 - obj-$(CONFIG_ARCH_OMAP2430) += mux2430.o 43 + obj-$(CONFIG_SOC_OMAP2420) += mux2420.o 44 + obj-$(CONFIG_SOC_OMAP2430) += mux2430.o 45 45 obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o 46 46 obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o 47 47 ··· 113 113 clkt2xxx_dpllcore.o \ 114 114 clkt2xxx_virt_prcm_set.o \ 115 115 clkt2xxx_apll.o clkt2xxx_osc.o 116 - obj-$(CONFIG_ARCH_OMAP2420) += clock2420_data.o 117 - obj-$(CONFIG_ARCH_OMAP2430) += clock2430.o clock2430_data.o 116 + obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o 117 + obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o 118 118 obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o \ 119 119 clock34xx.o clkt34xx_dpll3m2.o \ 120 120 clock3517.o clock36xx.o \ ··· 123 123 dpll3xxx.o 124 124 125 125 # OMAP2 clock rate set data (old "OPP" data) 126 - obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o 127 - obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o 126 + obj-$(CONFIG_SOC_OMAP2420) += opp2420_data.o 127 + obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o 128 128 129 129 # hwmod data 130 - obj-$(CONFIG_ARCH_OMAP2420) += omap_hwmod_2420_data.o 131 - obj-$(CONFIG_ARCH_OMAP2430) += omap_hwmod_2430_data.o 130 + obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2420_data.o 131 + obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2430_data.o 132 132 obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o 133 133 obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o 134 134 ··· 224 224 225 225 obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \ 226 226 hsmmc.o 227 + obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o 227 228 # Platform specific device init code 228 229 usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o 229 230 obj-y += $(usbfs-m) $(usbfs-y)
+4 -4
arch/arm/mach-omap2/board-2430sdp.c
··· 139 139 {OMAP_TAG_LCD, &sdp2430_lcd_config}, 140 140 }; 141 141 142 - static void __init omap_2430sdp_init_irq(void) 142 + static void __init omap_2430sdp_init_early(void) 143 143 { 144 144 omap_board_config = sdp2430_config; 145 145 omap_board_config_size = ARRAY_SIZE(sdp2430_config); 146 146 omap2_init_common_infrastructure(); 147 147 omap2_init_common_devices(NULL, NULL); 148 - omap_init_irq(); 149 148 } 150 149 151 150 static struct twl4030_gpio_platform_data sdp2430_gpio_data = { ··· 252 253 MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") 253 254 /* Maintainer: Syed Khasim - Texas Instruments Inc */ 254 255 .boot_params = 0x80000100, 255 - .map_io = omap_2430sdp_map_io, 256 256 .reserve = omap_reserve, 257 - .init_irq = omap_2430sdp_init_irq, 257 + .map_io = omap_2430sdp_map_io, 258 + .init_early = omap_2430sdp_init_early, 259 + .init_irq = omap_init_irq, 258 260 .init_machine = omap_2430sdp_init, 259 261 .timer = &omap_timer, 260 262 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-3430sdp.c
··· 327 327 static struct omap_board_config_kernel sdp3430_config[] __initdata = { 328 328 }; 329 329 330 - static void __init omap_3430sdp_init_irq(void) 330 + static void __init omap_3430sdp_init_early(void) 331 331 { 332 332 omap_board_config = sdp3430_config; 333 333 omap_board_config_size = ARRAY_SIZE(sdp3430_config); 334 334 omap3_pm_init_cpuidle(omap3_cpuidle_params_table); 335 335 omap2_init_common_infrastructure(); 336 336 omap2_init_common_devices(hyb18m512160af6_sdrc_params, NULL); 337 - omap_init_irq(); 338 337 } 339 338 340 339 static int sdp3430_batt_table[] = { ··· 821 822 MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") 822 823 /* Maintainer: Syed Khasim - Texas Instruments Inc */ 823 824 .boot_params = 0x80000100, 824 - .map_io = omap3_map_io, 825 825 .reserve = omap_reserve, 826 - .init_irq = omap_3430sdp_init_irq, 826 + .map_io = omap3_map_io, 827 + .init_early = omap_3430sdp_init_early, 828 + .init_irq = omap_init_irq, 827 829 .init_machine = omap_3430sdp_init, 828 830 .timer = &omap_timer, 829 831 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-3630sdp.c
··· 69 69 static struct omap_board_config_kernel sdp_config[] __initdata = { 70 70 }; 71 71 72 - static void __init omap_sdp_init_irq(void) 72 + static void __init omap_sdp_init_early(void) 73 73 { 74 74 omap_board_config = sdp_config; 75 75 omap_board_config_size = ARRAY_SIZE(sdp_config); 76 76 omap2_init_common_infrastructure(); 77 77 omap2_init_common_devices(h8mbx00u0mer0em_sdrc_params, 78 78 h8mbx00u0mer0em_sdrc_params); 79 - omap_init_irq(); 80 79 } 81 80 82 81 #ifdef CONFIG_OMAP_MUX ··· 215 216 216 217 MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") 217 218 .boot_params = 0x80000100, 218 - .map_io = omap3_map_io, 219 219 .reserve = omap_reserve, 220 - .init_irq = omap_sdp_init_irq, 220 + .map_io = omap3_map_io, 221 + .init_early = omap_sdp_init_early, 222 + .init_irq = omap_init_irq, 221 223 .init_machine = omap_sdp_init, 222 224 .timer = &omap_timer, 223 225 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-4430sdp.c
··· 239 239 { OMAP_TAG_LCD, &sdp4430_lcd_config }, 240 240 }; 241 241 242 - static void __init omap_4430sdp_init_irq(void) 242 + static void __init omap_4430sdp_init_early(void) 243 243 { 244 244 omap_board_config = sdp4430_config; 245 245 omap_board_config_size = ARRAY_SIZE(sdp4430_config); ··· 248 248 #ifdef CONFIG_OMAP_32K_TIMER 249 249 omap2_gp_clockevent_set_gptimer(1); 250 250 #endif 251 - gic_init_irq(); 252 251 } 253 252 254 253 static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { ··· 604 605 MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board") 605 606 /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */ 606 607 .boot_params = 0x80000100, 607 - .map_io = omap_4430sdp_map_io, 608 608 .reserve = omap_reserve, 609 - .init_irq = omap_4430sdp_init_irq, 609 + .map_io = omap_4430sdp_map_io, 610 + .init_early = omap_4430sdp_init_early, 611 + .init_irq = gic_init_irq, 610 612 .init_machine = omap_4430sdp_init, 611 613 .timer = &omap_timer, 612 614 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-am3517crane.c
··· 49 49 #define board_mux NULL 50 50 #endif 51 51 52 - static void __init am3517_crane_init_irq(void) 52 + static void __init am3517_crane_init_early(void) 53 53 { 54 54 omap_board_config = am3517_crane_config; 55 55 omap_board_config_size = ARRAY_SIZE(am3517_crane_config); 56 56 57 57 omap2_init_common_infrastructure(); 58 58 omap2_init_common_devices(NULL, NULL); 59 - omap_init_irq(); 60 59 } 61 60 62 61 static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { ··· 107 108 108 109 MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD") 109 110 .boot_params = 0x80000100, 110 - .map_io = omap3_map_io, 111 111 .reserve = omap_reserve, 112 - .init_irq = am3517_crane_init_irq, 112 + .map_io = omap3_map_io, 113 + .init_early = am3517_crane_init_early, 114 + .init_irq = omap_init_irq, 113 115 .init_machine = am3517_crane_init, 114 116 .timer = &omap_timer, 115 117 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-am3517evm.c
··· 396 396 &am3517_evm_dss_device, 397 397 }; 398 398 399 - static void __init am3517_evm_init_irq(void) 399 + static void __init am3517_evm_init_early(void) 400 400 { 401 401 omap_board_config = am3517_evm_config; 402 402 omap_board_config_size = ARRAY_SIZE(am3517_evm_config); 403 403 omap2_init_common_infrastructure(); 404 404 omap2_init_common_devices(NULL, NULL); 405 - omap_init_irq(); 406 405 } 407 406 408 407 static struct omap_musb_board_data musb_board_data = { ··· 520 521 521 522 MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") 522 523 .boot_params = 0x80000100, 523 - .map_io = omap3_map_io, 524 524 .reserve = omap_reserve, 525 - .init_irq = am3517_evm_init_irq, 525 + .map_io = omap3_map_io, 526 + .init_early = am3517_evm_init_early, 527 + .init_irq = omap_init_irq, 526 528 .init_machine = am3517_evm_init, 527 529 .timer = &omap_timer, 528 530 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-apollon.c
··· 274 274 { OMAP_TAG_LCD, &apollon_lcd_config }, 275 275 }; 276 276 277 - static void __init omap_apollon_init_irq(void) 277 + static void __init omap_apollon_init_early(void) 278 278 { 279 279 omap_board_config = apollon_config; 280 280 omap_board_config_size = ARRAY_SIZE(apollon_config); 281 281 omap2_init_common_infrastructure(); 282 282 omap2_init_common_devices(NULL, NULL); 283 - omap_init_irq(); 284 283 } 285 284 286 285 static void __init apollon_led_init(void) ··· 354 355 MACHINE_START(OMAP_APOLLON, "OMAP24xx Apollon") 355 356 /* Maintainer: Kyungmin Park <kyungmin.park@samsung.com> */ 356 357 .boot_params = 0x80000100, 357 - .map_io = omap_apollon_map_io, 358 358 .reserve = omap_reserve, 359 - .init_irq = omap_apollon_init_irq, 359 + .map_io = omap_apollon_map_io, 360 + .init_early = omap_apollon_init_early, 361 + .init_irq = omap_init_irq, 360 362 .init_machine = omap_apollon_init, 361 363 .timer = &omap_timer, 362 364 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-cm-t35.c
··· 683 683 static struct omap_board_config_kernel cm_t35_config[] __initdata = { 684 684 }; 685 685 686 - static void __init cm_t35_init_irq(void) 686 + static void __init cm_t35_init_early(void) 687 687 { 688 688 omap_board_config = cm_t35_config; 689 689 omap_board_config_size = ARRAY_SIZE(cm_t35_config); ··· 691 691 omap2_init_common_infrastructure(); 692 692 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, 693 693 mt46h32m32lf6_sdrc_params); 694 - omap_init_irq(); 695 694 } 696 695 697 696 static struct omap_board_mux board_mux[] __initdata = { ··· 814 815 815 816 MACHINE_START(CM_T35, "Compulab CM-T35") 816 817 .boot_params = 0x80000100, 817 - .map_io = omap3_map_io, 818 818 .reserve = omap_reserve, 819 - .init_irq = cm_t35_init_irq, 819 + .map_io = omap3_map_io, 820 + .init_early = cm_t35_init_early, 821 + .init_irq = omap_init_irq, 820 822 .init_machine = cm_t35_init, 821 823 .timer = &omap_timer, 822 824 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-cm-t3517.c
··· 254 254 static struct omap_board_config_kernel cm_t3517_config[] __initdata = { 255 255 }; 256 256 257 - static void __init cm_t3517_init_irq(void) 257 + static void __init cm_t3517_init_early(void) 258 258 { 259 259 omap_board_config = cm_t3517_config; 260 260 omap_board_config_size = ARRAY_SIZE(cm_t3517_config); 261 261 262 262 omap2_init_common_infrastructure(); 263 263 omap2_init_common_devices(NULL, NULL); 264 - omap_init_irq(); 265 264 } 266 265 267 266 static struct omap_board_mux board_mux[] __initdata = { ··· 302 303 303 304 MACHINE_START(CM_T3517, "Compulab CM-T3517") 304 305 .boot_params = 0x80000100, 305 - .map_io = omap3_map_io, 306 306 .reserve = omap_reserve, 307 - .init_irq = cm_t3517_init_irq, 307 + .map_io = omap3_map_io, 308 + .init_early = cm_t3517_init_early, 309 + .init_irq = omap_init_irq, 308 310 .init_machine = cm_t3517_init, 309 311 .timer = &omap_timer, 310 312 MACHINE_END
+7 -2
arch/arm/mach-omap2/board-devkit8000.c
··· 456 456 }; 457 457 458 458 459 - static void __init devkit8000_init_irq(void) 459 + static void __init devkit8000_init_early(void) 460 460 { 461 461 omap2_init_common_infrastructure(); 462 462 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, 463 463 mt46h32m32lf6_sdrc_params); 464 + } 465 + 466 + static void __init devkit8000_init_irq(void) 467 + { 464 468 omap_init_irq(); 465 469 #ifdef CONFIG_OMAP_32K_TIMER 466 470 omap2_gp_clockevent_set_gptimer(12); ··· 817 813 818 814 MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") 819 815 .boot_params = 0x80000100, 820 - .map_io = omap3_map_io, 821 816 .reserve = omap_reserve, 817 + .map_io = omap3_map_io, 818 + .init_early = devkit8000_init_early, 822 819 .init_irq = devkit8000_init_irq, 823 820 .init_machine = devkit8000_init, 824 821 .timer = &omap_timer,
+4 -4
arch/arm/mach-omap2/board-generic.c
··· 33 33 static struct omap_board_config_kernel generic_config[] = { 34 34 }; 35 35 36 - static void __init omap_generic_init_irq(void) 36 + static void __init omap_generic_init_early(void) 37 37 { 38 38 omap_board_config = generic_config; 39 39 omap_board_config_size = ARRAY_SIZE(generic_config); 40 40 omap2_init_common_infrastructure(); 41 41 omap2_init_common_devices(NULL, NULL); 42 - omap_init_irq(); 43 42 } 44 43 45 44 static void __init omap_generic_init(void) ··· 67 68 MACHINE_START(OMAP_GENERIC, "Generic OMAP24xx") 68 69 /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */ 69 70 .boot_params = 0x80000100, 70 - .map_io = omap_generic_map_io, 71 71 .reserve = omap_reserve, 72 - .init_irq = omap_generic_init_irq, 72 + .map_io = omap_generic_map_io, 73 + .init_early = omap_generic_init_early, 74 + .init_irq = omap_init_irq, 73 75 .init_machine = omap_generic_init, 74 76 .timer = &omap_timer, 75 77 MACHINE_END
+7 -2
arch/arm/mach-omap2/board-h4.c
··· 290 290 { OMAP_TAG_LCD, &h4_lcd_config }, 291 291 }; 292 292 293 - static void __init omap_h4_init_irq(void) 293 + static void __init omap_h4_init_early(void) 294 294 { 295 295 omap_board_config = h4_config; 296 296 omap_board_config_size = ARRAY_SIZE(h4_config); 297 297 omap2_init_common_infrastructure(); 298 298 omap2_init_common_devices(NULL, NULL); 299 + } 300 + 301 + static void __init omap_h4_init_irq(void) 302 + { 299 303 omap_init_irq(); 300 304 h4_init_flash(); 301 305 } ··· 382 378 MACHINE_START(OMAP_H4, "OMAP2420 H4 board") 383 379 /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */ 384 380 .boot_params = 0x80000100, 385 - .map_io = omap_h4_map_io, 386 381 .reserve = omap_reserve, 382 + .map_io = omap_h4_map_io, 383 + .init_early = omap_h4_init_early, 387 384 .init_irq = omap_h4_init_irq, 388 385 .init_machine = omap_h4_init, 389 386 .timer = &omap_timer,
+4 -4
arch/arm/mach-omap2/board-igep0020.c
··· 525 525 &igep2_vwlan_device, 526 526 }; 527 527 528 - static void __init igep2_init_irq(void) 528 + static void __init igep2_init_early(void) 529 529 { 530 530 omap2_init_common_infrastructure(); 531 531 omap2_init_common_devices(m65kxxxxam_sdrc_params, 532 532 m65kxxxxam_sdrc_params); 533 - omap_init_irq(); 534 533 } 535 534 536 535 static struct twl4030_codec_audio_data igep2_audio_data = { ··· 715 716 716 717 MACHINE_START(IGEP0020, "IGEP v2 board") 717 718 .boot_params = 0x80000100, 718 - .map_io = omap3_map_io, 719 719 .reserve = omap_reserve, 720 - .init_irq = igep2_init_irq, 720 + .map_io = omap3_map_io, 721 + .init_early = igep2_init_early, 722 + .init_irq = omap_init_irq, 721 723 .init_machine = igep2_init, 722 724 .timer = &omap_timer, 723 725 MACHINE_END
+3 -3
arch/arm/mach-omap2/board-igep0030.c
··· 331 331 &igep3_vwlan_device, 332 332 }; 333 333 334 - static void __init igep3_init_irq(void) 334 + static void __init igep3_init_early(void) 335 335 { 336 336 omap2_init_common_infrastructure(); 337 337 omap2_init_common_devices(m65kxxxxam_sdrc_params, 338 338 m65kxxxxam_sdrc_params); 339 - omap_init_irq(); 340 339 } 341 340 342 341 static struct twl4030_platform_data igep3_twl4030_pdata = { ··· 451 452 .boot_params = 0x80000100, 452 453 .reserve = omap_reserve, 453 454 .map_io = omap3_map_io, 454 - .init_irq = igep3_init_irq, 455 + .init_early = igep3_init_early, 456 + .init_irq = omap_init_irq, 455 457 .init_machine = igep3_init, 456 458 .timer = &omap_timer, 457 459 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-ldp.c
··· 288 288 { OMAP_TAG_LCD, &ldp_lcd_config }, 289 289 }; 290 290 291 - static void __init omap_ldp_init_irq(void) 291 + static void __init omap_ldp_init_early(void) 292 292 { 293 293 omap_board_config = ldp_config; 294 294 omap_board_config_size = ARRAY_SIZE(ldp_config); 295 295 omap2_init_common_infrastructure(); 296 296 omap2_init_common_devices(NULL, NULL); 297 - omap_init_irq(); 298 297 } 299 298 300 299 static struct twl4030_usb_data ldp_usb_data = { ··· 442 443 443 444 MACHINE_START(OMAP_LDP, "OMAP LDP board") 444 445 .boot_params = 0x80000100, 445 - .map_io = omap3_map_io, 446 446 .reserve = omap_reserve, 447 - .init_irq = omap_ldp_init_irq, 447 + .map_io = omap3_map_io, 448 + .init_early = omap_ldp_init_early, 449 + .init_irq = omap_init_irq, 448 450 .init_machine = omap_ldp_init, 449 451 .timer = &omap_timer, 450 452 MACHINE_END
+10 -8
arch/arm/mach-omap2/board-n8x0.c
··· 628 628 omap242x_map_common_io(); 629 629 } 630 630 631 - static void __init n8x0_init_irq(void) 631 + static void __init n8x0_init_early(void) 632 632 { 633 633 omap2_init_common_infrastructure(); 634 634 omap2_init_common_devices(NULL, NULL); 635 - omap_init_irq(); 636 635 } 637 636 638 637 #ifdef CONFIG_OMAP_MUX ··· 702 703 703 704 MACHINE_START(NOKIA_N800, "Nokia N800") 704 705 .boot_params = 0x80000100, 705 - .map_io = n8x0_map_io, 706 706 .reserve = omap_reserve, 707 - .init_irq = n8x0_init_irq, 707 + .map_io = n8x0_map_io, 708 + .init_early = n8x0_init_early, 709 + .init_irq = omap_init_irq, 708 710 .init_machine = n8x0_init_machine, 709 711 .timer = &omap_timer, 710 712 MACHINE_END 711 713 712 714 MACHINE_START(NOKIA_N810, "Nokia N810") 713 715 .boot_params = 0x80000100, 714 - .map_io = n8x0_map_io, 715 716 .reserve = omap_reserve, 716 - .init_irq = n8x0_init_irq, 717 + .map_io = n8x0_map_io, 718 + .init_early = n8x0_init_early, 719 + .init_irq = omap_init_irq, 717 720 .init_machine = n8x0_init_machine, 718 721 .timer = &omap_timer, 719 722 MACHINE_END 720 723 721 724 MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") 722 725 .boot_params = 0x80000100, 723 - .map_io = n8x0_map_io, 724 726 .reserve = omap_reserve, 725 - .init_irq = n8x0_init_irq, 727 + .map_io = n8x0_map_io, 728 + .init_early = n8x0_init_early, 729 + .init_irq = omap_init_irq, 726 730 .init_machine = n8x0_init_machine, 727 731 .timer = &omap_timer, 728 732 MACHINE_END
+7 -2
arch/arm/mach-omap2/board-omap3beagle.c
··· 536 536 }, 537 537 }; 538 538 539 - static void __init omap3_beagle_init_irq(void) 539 + static void __init omap3_beagle_init_early(void) 540 540 { 541 541 omap2_init_common_infrastructure(); 542 542 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, 543 543 mt46h32m32lf6_sdrc_params); 544 + } 545 + 546 + static void __init omap3_beagle_init_irq(void) 547 + { 544 548 omap_init_irq(); 545 549 #ifdef CONFIG_OMAP_32K_TIMER 546 550 omap2_gp_clockevent_set_gptimer(12); ··· 642 638 MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board") 643 639 /* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */ 644 640 .boot_params = 0x80000100, 645 - .map_io = omap3_map_io, 646 641 .reserve = omap_reserve, 642 + .map_io = omap3_map_io, 643 + .init_early = omap3_beagle_init_early, 647 644 .init_irq = omap3_beagle_init_irq, 648 645 .init_machine = omap3_beagle_init, 649 646 .timer = &omap_timer,
+4 -4
arch/arm/mach-omap2/board-omap3evm.c
··· 625 625 static struct omap_board_config_kernel omap3_evm_config[] __initdata = { 626 626 }; 627 627 628 - static void __init omap3_evm_init_irq(void) 628 + static void __init omap3_evm_init_early(void) 629 629 { 630 630 omap_board_config = omap3_evm_config; 631 631 omap_board_config_size = ARRAY_SIZE(omap3_evm_config); 632 632 omap2_init_common_infrastructure(); 633 633 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); 634 - omap_init_irq(); 635 634 } 636 635 637 636 static struct platform_device *omap3_evm_devices[] __initdata = { ··· 719 720 MACHINE_START(OMAP3EVM, "OMAP3 EVM") 720 721 /* Maintainer: Syed Mohammed Khasim - Texas Instruments */ 721 722 .boot_params = 0x80000100, 722 - .map_io = omap3_map_io, 723 723 .reserve = omap_reserve, 724 - .init_irq = omap3_evm_init_irq, 724 + .map_io = omap3_map_io, 725 + .init_early = omap3_evm_init_early, 726 + .init_irq = omap_init_irq, 725 727 .init_machine = omap3_evm_init, 726 728 .timer = &omap_timer, 727 729 MACHINE_END
+5 -4
arch/arm/mach-omap2/board-omap3logic.c
··· 195 195 gpmc_smsc911x_init(&board_smsc911x_data); 196 196 } 197 197 198 - static void __init omap3logic_init_irq(void) 198 + static void __init omap3logic_init_early(void) 199 199 { 200 200 omap2_init_common_infrastructure(); 201 201 omap2_init_common_devices(NULL, NULL); 202 - omap_init_irq(); 203 202 } 204 203 205 204 #ifdef CONFIG_OMAP_MUX ··· 224 225 MACHINE_START(OMAP3_TORPEDO, "Logic OMAP3 Torpedo board") 225 226 .boot_params = 0x80000100, 226 227 .map_io = omap3_map_io, 227 - .init_irq = omap3logic_init_irq, 228 + .init_early = omap3logic_init_early, 229 + .init_irq = omap_init_irq, 228 230 .init_machine = omap3logic_init, 229 231 .timer = &omap_timer, 230 232 MACHINE_END ··· 233 233 MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") 234 234 .boot_params = 0x80000100, 235 235 .map_io = omap3_map_io, 236 - .init_irq = omap3logic_init_irq, 236 + .init_early = omap3logic_init_early, 237 + .init_irq = omap_init_irq, 237 238 .init_machine = omap3logic_init, 238 239 .timer = &omap_timer, 239 240 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-omap3pandora.c
··· 634 634 } 635 635 }; 636 636 637 - static void __init omap3pandora_init_irq(void) 637 + static void __init omap3pandora_init_early(void) 638 638 { 639 639 omap2_init_common_infrastructure(); 640 640 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, 641 641 mt46h32m32lf6_sdrc_params); 642 - omap_init_irq(); 643 642 } 644 643 645 644 static void __init pandora_wl1251_init(void) ··· 726 727 727 728 MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console") 728 729 .boot_params = 0x80000100, 729 - .map_io = omap3_map_io, 730 730 .reserve = omap_reserve, 731 - .init_irq = omap3pandora_init_irq, 731 + .map_io = omap3_map_io, 732 + .init_early = omap3pandora_init_early, 733 + .init_irq = omap_init_irq, 732 734 .init_machine = omap3pandora_init, 733 735 .timer = &omap_timer, 734 736 MACHINE_END
+6 -1
arch/arm/mach-omap2/board-omap3stalker.c
··· 591 591 static struct omap_board_config_kernel omap3_stalker_config[] __initdata = { 592 592 }; 593 593 594 - static void __init omap3_stalker_init_irq(void) 594 + static void __init omap3_stalker_init_early(void) 595 595 { 596 596 omap_board_config = omap3_stalker_config; 597 597 omap_board_config_size = ARRAY_SIZE(omap3_stalker_config); 598 598 omap2_init_common_infrastructure(); 599 599 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL); 600 + } 601 + 602 + static void __init omap3_stalker_init_irq(void) 603 + { 600 604 omap_init_irq(); 601 605 #ifdef CONFIG_OMAP_32K_TIMER 602 606 omap2_gp_clockevent_set_gptimer(12); ··· 670 666 /* Maintainer: Jason Lam -lzg@ema-tech.com */ 671 667 .boot_params = 0x80000100, 672 668 .map_io = omap3_map_io, 669 + .init_early = omap3_stalker_init_early, 673 670 .init_irq = omap3_stalker_init_irq, 674 671 .init_machine = omap3_stalker_init, 675 672 .timer = &omap_timer,
+7 -2
arch/arm/mach-omap2/board-omap3touchbook.c
··· 415 415 }; 416 416 #endif 417 417 418 - static void __init omap3_touchbook_init_irq(void) 418 + static void __init omap3_touchbook_init_early(void) 419 419 { 420 420 omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); 421 421 omap_board_config = omap3_touchbook_config; ··· 423 423 omap2_init_common_infrastructure(); 424 424 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, 425 425 mt46h32m32lf6_sdrc_params); 426 + } 427 + 428 + static void __init omap3_touchbook_init_irq(void) 429 + { 426 430 omap_init_irq(); 427 431 #ifdef CONFIG_OMAP_32K_TIMER 428 432 omap2_gp_clockevent_set_gptimer(12); ··· 542 538 MACHINE_START(TOUCHBOOK, "OMAP3 touchbook Board") 543 539 /* Maintainer: Gregoire Gentil - http://www.alwaysinnovating.com */ 544 540 .boot_params = 0x80000100, 545 - .map_io = omap3_map_io, 546 541 .reserve = omap_reserve, 542 + .map_io = omap3_map_io, 543 + .init_early = omap3_touchbook_init_early, 547 544 .init_irq = omap3_touchbook_init_irq, 548 545 .init_machine = omap3_touchbook_init, 549 546 .timer = &omap_timer,
+3 -3
arch/arm/mach-omap2/board-omap4panda.c
··· 76 76 &leds_gpio, 77 77 }; 78 78 79 - static void __init omap4_panda_init_irq(void) 79 + static void __init omap4_panda_init_early(void) 80 80 { 81 81 omap2_init_common_infrastructure(); 82 82 omap2_init_common_devices(NULL, NULL); 83 - gic_init_irq(); 84 83 } 85 84 86 85 static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { ··· 423 424 .boot_params = 0x80000100, 424 425 .reserve = omap_reserve, 425 426 .map_io = omap4_panda_map_io, 426 - .init_irq = omap4_panda_init_irq, 427 + .init_early = omap4_panda_init_early, 428 + .init_irq = gic_init_irq, 427 429 .init_machine = omap4_panda_init, 428 430 .timer = &omap_timer, 429 431 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-overo.c
··· 409 409 { OMAP_TAG_LCD, &overo_lcd_config }, 410 410 }; 411 411 412 - static void __init overo_init_irq(void) 412 + static void __init overo_init_early(void) 413 413 { 414 414 omap_board_config = overo_config; 415 415 omap_board_config_size = ARRAY_SIZE(overo_config); 416 416 omap2_init_common_infrastructure(); 417 417 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, 418 418 mt46h32m32lf6_sdrc_params); 419 - omap_init_irq(); 420 419 } 421 420 422 421 static struct platform_device *overo_devices[] __initdata = { ··· 500 501 501 502 MACHINE_START(OVERO, "Gumstix Overo") 502 503 .boot_params = 0x80000100, 503 - .map_io = omap3_map_io, 504 504 .reserve = omap_reserve, 505 - .init_irq = overo_init_irq, 505 + .map_io = omap3_map_io, 506 + .init_early = overo_init_early, 507 + .init_irq = omap_init_irq, 506 508 .init_machine = overo_init, 507 509 .timer = &omap_timer, 508 510 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-rm680.c
··· 138 138 omap2_hsmmc_init(mmc); 139 139 } 140 140 141 - static void __init rm680_init_irq(void) 141 + static void __init rm680_init_early(void) 142 142 { 143 143 struct omap_sdrc_params *sdrc_params; 144 144 145 145 omap2_init_common_infrastructure(); 146 146 sdrc_params = nokia_get_sdram_timings(); 147 147 omap2_init_common_devices(sdrc_params, sdrc_params); 148 - omap_init_irq(); 149 148 } 150 149 151 150 #ifdef CONFIG_OMAP_MUX ··· 175 176 176 177 MACHINE_START(NOKIA_RM680, "Nokia RM-680 board") 177 178 .boot_params = 0x80000100, 178 - .map_io = rm680_map_io, 179 179 .reserve = omap_reserve, 180 - .init_irq = rm680_init_irq, 180 + .map_io = rm680_map_io, 181 + .init_early = rm680_init_early, 182 + .init_irq = omap_init_irq, 181 183 .init_machine = rm680_init, 182 184 .timer = &omap_timer, 183 185 MACHINE_END
+4 -4
arch/arm/mach-omap2/board-rx51.c
··· 98 98 { OMAP_TAG_LCD, &rx51_lcd_config }, 99 99 }; 100 100 101 - static void __init rx51_init_irq(void) 101 + static void __init rx51_init_early(void) 102 102 { 103 103 struct omap_sdrc_params *sdrc_params; 104 104 ··· 108 108 omap2_init_common_infrastructure(); 109 109 sdrc_params = nokia_get_sdram_timings(); 110 110 omap2_init_common_devices(sdrc_params, sdrc_params); 111 - omap_init_irq(); 112 111 } 113 112 114 113 extern void __init rx51_peripherals_init(void); ··· 148 149 MACHINE_START(NOKIA_RX51, "Nokia RX-51 board") 149 150 /* Maintainer: Lauri Leukkunen <lauri.leukkunen@nokia.com> */ 150 151 .boot_params = 0x80000100, 151 - .map_io = rx51_map_io, 152 152 .reserve = omap_reserve, 153 - .init_irq = rx51_init_irq, 153 + .map_io = rx51_map_io, 154 + .init_early = rx51_init_early, 155 + .init_irq = omap_init_irq, 154 156 .init_machine = rx51_init, 155 157 .timer = &omap_timer, 156 158 MACHINE_END
+62
arch/arm/mach-omap2/board-ti8168evm.c
··· 1 + /* 2 + * Code for TI8168 EVM. 3 + * 4 + * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ 5 + * 6 + * This program is free software; you can redistribute it and/or 7 + * modify it under the terms of the GNU General Public License as 8 + * published by the Free Software Foundation version 2. 9 + * 10 + * This program is distributed "as is" WITHOUT ANY WARRANTY of any 11 + * kind, whether express or implied; without even the implied warranty 12 + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 + * GNU General Public License for more details. 14 + */ 15 + #include <linux/kernel.h> 16 + #include <linux/init.h> 17 + 18 + #include <mach/hardware.h> 19 + #include <asm/mach-types.h> 20 + #include <asm/mach/arch.h> 21 + #include <asm/mach/map.h> 22 + 23 + #include <plat/irqs.h> 24 + #include <plat/board.h> 25 + #include <plat/common.h> 26 + 27 + static struct omap_board_config_kernel ti8168_evm_config[] __initdata = { 28 + }; 29 + 30 + static void __init ti8168_init_early(void) 31 + { 32 + omap_board_config = ti8168_evm_config; 33 + omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); 34 + omap2_init_common_infrastructure(); 35 + omap2_init_common_devices(NULL, NULL); 36 + } 37 + 38 + static void __init ti8168_evm_init_irq(void) 39 + { 40 + omap_init_irq(); 41 + } 42 + 43 + static void __init ti8168_evm_init(void) 44 + { 45 + omap_serial_init(); 46 + } 47 + 48 + static void __init ti8168_evm_map_io(void) 49 + { 50 + omap2_set_globals_ti816x(); 51 + omapti816x_map_common_io(); 52 + } 53 + 54 + MACHINE_START(TI8168EVM, "ti8168evm") 55 + /* Maintainer: Texas Instruments */ 56 + .boot_params = 0x80000100, 57 + .map_io = ti8168_evm_map_io, 58 + .init_early = ti8168_init_early, 59 + .init_irq = ti8168_evm_init_irq, 60 + .timer = &omap_timer, 61 + .init_machine = ti8168_evm_init, 62 + MACHINE_END
+7 -7
arch/arm/mach-omap2/board-zoom.c
··· 33 33 34 34 #define ZOOM3_EHCI_RESET_GPIO 64 35 35 36 - static void __init omap_zoom_init_irq(void) 36 + static void __init omap_zoom_init_early(void) 37 37 { 38 38 omap2_init_common_infrastructure(); 39 39 if (machine_is_omap_zoom2()) ··· 42 42 else if (machine_is_omap_zoom3()) 43 43 omap2_init_common_devices(h8mbx00u0mer0em_sdrc_params, 44 44 h8mbx00u0mer0em_sdrc_params); 45 - 46 - omap_init_irq(); 47 45 } 48 46 49 47 #ifdef CONFIG_OMAP_MUX ··· 133 135 134 136 MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") 135 137 .boot_params = 0x80000100, 136 - .map_io = omap3_map_io, 137 138 .reserve = omap_reserve, 138 - .init_irq = omap_zoom_init_irq, 139 + .map_io = omap3_map_io, 140 + .init_early = omap_zoom_init_early, 141 + .init_irq = omap_init_irq, 139 142 .init_machine = omap_zoom_init, 140 143 .timer = &omap_timer, 141 144 MACHINE_END 142 145 143 146 MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") 144 147 .boot_params = 0x80000100, 145 - .map_io = omap3_map_io, 146 148 .reserve = omap_reserve, 147 - .init_irq = omap_zoom_init_irq, 149 + .map_io = omap3_map_io, 150 + .init_early = omap_zoom_init_early, 151 + .init_irq = omap_init_irq, 148 152 .init_machine = omap_zoom_init, 149 153 .timer = &omap_timer, 150 154 MACHINE_END
+2 -2
arch/arm/mach-omap2/clock2xxx.h
··· 20 20 u32 omap2xxx_get_sysclkdiv(void); 21 21 void omap2xxx_clk_prepare_for_reboot(void); 22 22 23 - #ifdef CONFIG_ARCH_OMAP2420 23 + #ifdef CONFIG_SOC_OMAP2420 24 24 int omap2420_clk_init(void); 25 25 #else 26 26 #define omap2420_clk_init() 0 27 27 #endif 28 28 29 - #ifdef CONFIG_ARCH_OMAP2430 29 + #ifdef CONFIG_SOC_OMAP2430 30 30 int omap2430_clk_init(void); 31 31 #else 32 32 #define omap2430_clk_init() 0
+4 -1
arch/arm/mach-omap2/clock3xxx_data.c
··· 3471 3471 } else if (cpu_is_omap3630()) { 3472 3472 cpu_mask = (RATE_IN_34XX | RATE_IN_36XX); 3473 3473 cpu_clkflg = CK_36XX; 3474 + } else if (cpu_is_ti816x()) { 3475 + cpu_mask = RATE_IN_TI816X; 3476 + cpu_clkflg = CK_TI816X; 3474 3477 } else if (cpu_is_omap34xx()) { 3475 3478 if (omap_rev() == OMAP3430_REV_ES1_0) { 3476 3479 cpu_mask = RATE_IN_3430ES1; ··· 3553 3550 /* 3554 3551 * Lock DPLL5 and put it in autoidle. 3555 3552 */ 3556 - if (omap_rev() >= OMAP3430_REV_ES2_0) 3553 + if (!cpu_is_ti816x() && (omap_rev() >= OMAP3430_REV_ES2_0)) 3557 3554 omap3_clk_lock_dpll5(); 3558 3555 3559 3556 /* Avoid sleeping during omap3_core_dpll_m2_set_rate() */
+8 -8
arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c
··· 171 171 172 172 /* 2430-specific possible wakeup dependencies */ 173 173 174 - #ifdef CONFIG_ARCH_OMAP2430 174 + #ifdef CONFIG_SOC_OMAP2430 175 175 176 176 /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */ 177 177 static struct clkdm_dep mdm_2430_wkdeps[] = { ··· 194 194 { NULL }, 195 195 }; 196 196 197 - #endif /* CONFIG_ARCH_OMAP2430 */ 197 + #endif /* CONFIG_SOC_OMAP2430 */ 198 198 199 199 200 200 /* OMAP3-specific possible dependencies */ ··· 450 450 * 2420-only clockdomains 451 451 */ 452 452 453 - #if defined(CONFIG_ARCH_OMAP2420) 453 + #if defined(CONFIG_SOC_OMAP2420) 454 454 455 455 static struct clockdomain mpu_2420_clkdm = { 456 456 .name = "mpu_clkdm", ··· 514 514 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420), 515 515 }; 516 516 517 - #endif /* CONFIG_ARCH_OMAP2420 */ 517 + #endif /* CONFIG_SOC_OMAP2420 */ 518 518 519 519 520 520 /* 521 521 * 2430-only clockdomains 522 522 */ 523 523 524 - #if defined(CONFIG_ARCH_OMAP2430) 524 + #if defined(CONFIG_SOC_OMAP2430) 525 525 526 526 static struct clockdomain mpu_2430_clkdm = { 527 527 .name = "mpu_clkdm", ··· 600 600 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), 601 601 }; 602 602 603 - #endif /* CONFIG_ARCH_OMAP2430 */ 603 + #endif /* CONFIG_SOC_OMAP2430 */ 604 604 605 605 606 606 /* ··· 811 811 &cm_clkdm, 812 812 &prm_clkdm, 813 813 814 - #ifdef CONFIG_ARCH_OMAP2420 814 + #ifdef CONFIG_SOC_OMAP2420 815 815 &mpu_2420_clkdm, 816 816 &iva1_2420_clkdm, 817 817 &dsp_2420_clkdm, ··· 821 821 &dss_2420_clkdm, 822 822 #endif 823 823 824 - #ifdef CONFIG_ARCH_OMAP2430 824 + #ifdef CONFIG_SOC_OMAP2430 825 825 &mpu_2430_clkdm, 826 826 &mdm_clkdm, 827 827 &dsp_2430_clkdm,
+23 -2
arch/arm/mach-omap2/common.c
··· 40 40 41 41 #endif 42 42 43 - #if defined(CONFIG_ARCH_OMAP2420) 43 + #if defined(CONFIG_SOC_OMAP2420) 44 44 45 45 static struct omap_globals omap242x_globals = { 46 46 .class = OMAP242X_CLASS, ··· 61 61 } 62 62 #endif 63 63 64 - #if defined(CONFIG_ARCH_OMAP2430) 64 + #if defined(CONFIG_SOC_OMAP2430) 65 65 66 66 static struct omap_globals omap243x_globals = { 67 67 .class = OMAP243X_CLASS, ··· 107 107 { 108 108 omap2_set_globals_3xxx(); 109 109 omap34xx_map_common_io(); 110 + } 111 + 112 + /* 113 + * Adjust TAP register base such that omap3_check_revision accesses the correct 114 + * TI816X register for checking device ID (it adds 0x204 to tap base while 115 + * TI816X DEVICE ID register is at offset 0x600 from control base). 116 + */ 117 + #define TI816X_TAP_BASE (TI816X_CTRL_BASE + \ 118 + TI816X_CONTROL_DEVICE_ID - 0x204) 119 + 120 + static struct omap_globals ti816x_globals = { 121 + .class = OMAP343X_CLASS, 122 + .tap = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE), 123 + .ctrl = TI816X_CTRL_BASE, 124 + .prm = TI816X_PRCM_BASE, 125 + .cm = TI816X_PRCM_BASE, 126 + }; 127 + 128 + void __init omap2_set_globals_ti816x(void) 129 + { 130 + __omap2_set_globals(&ti816x_globals); 110 131 } 111 132 #endif 112 133
+6
arch/arm/mach-omap2/control.h
··· 52 52 #define OMAP343X_CONTROL_PADCONFS_WKUP 0xa00 53 53 #define OMAP343X_CONTROL_GENERAL_WKUP 0xa60 54 54 55 + /* TI816X spefic control submodules */ 56 + #define TI816X_CONTROL_DEVCONF 0x600 57 + 55 58 /* Control register offsets - read/write with omap_ctrl_{read,write}{bwl}() */ 56 59 57 60 #define OMAP2_CONTROL_SYSCONFIG (OMAP2_CONTROL_INTERFACE + 0x10) ··· 243 240 /* 34xx D2D idle-related pins, handled by PM core */ 244 241 #define OMAP3_PADCONF_SAD2D_MSTANDBY 0x250 245 242 #define OMAP3_PADCONF_SAD2D_IDLEACK 0x254 243 + 244 + /* TI816X CONTROL_DEVCONF register offsets */ 245 + #define TI816X_CONTROL_DEVICE_ID (TI816X_CONTROL_DEVCONF + 0x000) 246 246 247 247 /* 248 248 * REVISIT: This list of registers is not comprehensive - there are more
+3 -3
arch/arm/mach-omap2/devices.c
··· 333 333 }, 334 334 }; 335 335 336 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ 336 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ 337 337 defined(CONFIG_ARCH_OMAP4) 338 338 static struct omap2_mcspi_platform_config omap2_mcspi3_config = { 339 339 .num_cs = 2, ··· 400 400 } 401 401 #endif 402 402 403 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ 403 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ 404 404 defined(CONFIG_ARCH_OMAP4) 405 405 static inline void omap2_mcspi3_init(void) 406 406 { ··· 895 895 /*-------------------------------------------------------------------------*/ 896 896 897 897 #if defined(CONFIG_HDQ_MASTER_OMAP) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE) 898 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) 898 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430) 899 899 #define OMAP_HDQ_BASE 0x480B2000 900 900 #endif 901 901 static struct resource omap_hdq_resources[] = {
+31 -2
arch/arm/mach-omap2/id.c
··· 191 191 if (!cpu_is_omap3505() && !cpu_is_omap3517()) 192 192 omap3_features |= OMAP3_HAS_IO_WAKEUP; 193 193 194 + omap3_features |= OMAP3_HAS_SDRC; 195 + 194 196 /* 195 197 * TODO: Get additional info (where applicable) 196 198 * e.g. Size of L2 cache. 197 199 */ 200 + } 201 + 202 + static void __init ti816x_check_features(void) 203 + { 204 + omap3_features = OMAP3_HAS_NEON; 198 205 } 199 206 200 207 static void __init omap3_check_revision(void) ··· 294 287 omap_chip.oc |= CHIP_IS_OMAP3630ES1_2; 295 288 } 296 289 break; 290 + case 0xb81e: 291 + omap_chip.oc = CHIP_IS_TI816X; 292 + 293 + switch (rev) { 294 + case 0: 295 + omap_revision = TI8168_REV_ES1_0; 296 + break; 297 + case 1: 298 + omap_revision = TI8168_REV_ES1_1; 299 + break; 300 + default: 301 + omap_revision = TI8168_REV_ES1_1; 302 + } 303 + break; 297 304 default: 298 305 /* Unknown default to latest silicon rev as default*/ 299 306 omap_revision = OMAP3630_REV_ES1_2; ··· 393 372 /* Already set in omap3_check_revision() */ 394 373 strcpy(cpu_name, "AM3505"); 395 374 } 375 + } else if (cpu_is_ti816x()) { 376 + strcpy(cpu_name, "TI816X"); 396 377 } else if (omap3_has_iva() && omap3_has_sgx()) { 397 378 /* OMAP3430, OMAP3525, OMAP3515, OMAP3503 devices */ 398 379 strcpy(cpu_name, "OMAP3430/3530"); ··· 409 386 strcpy(cpu_name, "OMAP3503"); 410 387 } 411 388 412 - if (cpu_is_omap3630()) { 389 + if (cpu_is_omap3630() || cpu_is_ti816x()) { 413 390 switch (rev) { 414 391 case OMAP_REVBITS_00: 415 392 strcpy(cpu_rev, "1.0"); ··· 485 462 omap24xx_check_revision(); 486 463 } else if (cpu_is_omap34xx()) { 487 464 omap3_check_revision(); 488 - omap3_check_features(); 465 + 466 + /* TI816X doesn't have feature register */ 467 + if (!cpu_is_ti816x()) 468 + omap3_check_features(); 469 + else 470 + ti816x_check_features(); 471 + 489 472 omap3_cpuinfo(); 490 473 return; 491 474 } else if (cpu_is_omap44xx()) {
+12
arch/arm/mach-omap2/include/mach/debug-macro.S
··· 69 69 beq 34f @ configure OMAP3UART4 70 70 cmp \rp, #OMAP4UART4 @ only on 44xx 71 71 beq 44f @ configure OMAP4UART4 72 + cmp \rp, #TI816XUART1 @ ti816x UART offsets different 73 + beq 81f @ configure UART1 74 + cmp \rp, #TI816XUART2 @ ti816x UART offsets different 75 + beq 82f @ configure UART2 76 + cmp \rp, #TI816XUART3 @ ti816x UART offsets different 77 + beq 83f @ configure UART3 72 78 cmp \rp, #ZOOM_UART @ only on zoom2/3 73 79 beq 95f @ configure ZOOM_UART 74 80 ··· 96 90 43: mov \rp, #UART_OFFSET(OMAP4_UART3_BASE) 97 91 b 98f 98 92 44: mov \rp, #UART_OFFSET(OMAP4_UART4_BASE) 93 + b 98f 94 + 81: mov \rp, #UART_OFFSET(TI816X_UART1_BASE) 95 + b 98f 96 + 82: mov \rp, #UART_OFFSET(TI816X_UART2_BASE) 97 + b 98f 98 + 83: mov \rp, #UART_OFFSET(TI816X_UART3_BASE) 99 99 b 98f 100 100 95: ldr \rp, =ZOOM_UART_BASE 101 101 mrc p15, 0, \rv, c1, c0
+13
arch/arm/mach-omap2/include/mach/entry-macro.S
··· 61 61 bne 9998f 62 62 ldr \irqnr, [\base, #0xd8] /* IRQ pending reg 3 */ 63 63 cmp \irqnr, #0x0 64 + bne 9998f 65 + 66 + /* 67 + * ti816x has additional IRQ pending register. Checking this 68 + * register on omap2 & omap3 has no effect (read as 0). 69 + */ 70 + ldr \irqnr, [\base, #0xf8] /* IRQ pending reg 4 */ 71 + cmp \irqnr, #0x0 64 72 9998: 65 73 ldrne \irqnr, [\base, #INTCPS_SIR_IRQ_OFFSET] 66 74 and \irqnr, \irqnr, #ACTIVEIRQ_MASK /* Clear spurious bits */ ··· 141 133 bne 9999f 142 134 ldr \irqnr, [\base, #0xd8] /* IRQ pending reg 3 */ 143 135 cmp \irqnr, #0x0 136 + #ifdef CONFIG_SOC_OMAPTI816X 137 + bne 9999f 138 + ldr \irqnr, [\base, #0xf8] /* IRQ pending reg 4 */ 139 + cmp \irqnr, #0x0 140 + #endif 144 141 9999: 145 142 ldrne \irqnr, [\base, #INTCPS_SIR_IRQ_OFFSET] 146 143 and \irqnr, \irqnr, #ACTIVEIRQ_MASK /* Clear spurious bits */
+25 -9
arch/arm/mach-omap2/io.c
··· 66 66 }, 67 67 }; 68 68 69 - #ifdef CONFIG_ARCH_OMAP2420 69 + #ifdef CONFIG_SOC_OMAP2420 70 70 static struct map_desc omap242x_io_desc[] __initdata = { 71 71 { 72 72 .virtual = DSP_MEM_2420_VIRT, ··· 90 90 91 91 #endif 92 92 93 - #ifdef CONFIG_ARCH_OMAP2430 93 + #ifdef CONFIG_SOC_OMAP2430 94 94 static struct map_desc omap243x_io_desc[] __initdata = { 95 95 { 96 96 .virtual = L4_WK_243X_VIRT, ··· 175 175 #endif 176 176 }; 177 177 #endif 178 + 179 + #ifdef CONFIG_SOC_OMAPTI816X 180 + static struct map_desc omapti816x_io_desc[] __initdata = { 181 + { 182 + .virtual = L4_34XX_VIRT, 183 + .pfn = __phys_to_pfn(L4_34XX_PHYS), 184 + .length = L4_34XX_SIZE, 185 + .type = MT_DEVICE 186 + }, 187 + }; 188 + #endif 189 + 178 190 #ifdef CONFIG_ARCH_OMAP4 179 191 static struct map_desc omap44xx_io_desc[] __initdata = { 180 192 { ··· 253 241 omap_sram_init(); 254 242 } 255 243 256 - #ifdef CONFIG_ARCH_OMAP2420 244 + #ifdef CONFIG_SOC_OMAP2420 257 245 void __init omap242x_map_common_io(void) 258 246 { 259 247 iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); ··· 262 250 } 263 251 #endif 264 252 265 - #ifdef CONFIG_ARCH_OMAP2430 253 + #ifdef CONFIG_SOC_OMAP2430 266 254 void __init omap243x_map_common_io(void) 267 255 { 268 256 iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); ··· 275 263 void __init omap34xx_map_common_io(void) 276 264 { 277 265 iotable_init(omap34xx_io_desc, ARRAY_SIZE(omap34xx_io_desc)); 266 + _omap2_map_common_io(); 267 + } 268 + #endif 269 + 270 + #ifdef CONFIG_SOC_OMAPTI816X 271 + void __init omapti816x_map_common_io(void) 272 + { 273 + iotable_init(omapti816x_io_desc, ARRAY_SIZE(omapti816x_io_desc)); 278 274 _omap2_map_common_io(); 279 275 } 280 276 #endif ··· 418 398 void __init omap2_init_common_devices(struct omap_sdrc_params *sdrc_cs0, 419 399 struct omap_sdrc_params *sdrc_cs1) 420 400 { 421 - omap_serial_early_init(); 422 - 423 - omap_hwmod_late_init(); 424 - 425 - if (cpu_is_omap24xx() || cpu_is_omap34xx()) { 401 + if (cpu_is_omap24xx() || omap3_has_sdrc()) { 426 402 omap2_sdrc_init(sdrc_cs0, sdrc_cs1); 427 403 _omap2_init_reprogram_sdrc(); 428 404 }
+6 -3
arch/arm/mach-omap2/irq.c
··· 61 61 u32 mir[INTCPS_NR_MIR_REGS]; 62 62 }; 63 63 64 - static struct omap3_intc_regs intc_context[ARRAY_SIZE(irq_banks)]; 65 - 66 64 /* INTC bank register get/set */ 67 65 68 66 static void intc_bank_write_reg(u32 val, struct omap_irq_bank *bank, u16 reg) ··· 108 110 unsigned int irq = d->irq; 109 111 int offset = irq & (~(IRQ_BITS_PER_REG - 1)); 110 112 111 - if (cpu_is_omap34xx()) { 113 + if (cpu_is_omap34xx() && !cpu_is_ti816x()) { 112 114 int spurious = 0; 113 115 114 116 /* ··· 203 205 204 206 BUG_ON(!base); 205 207 208 + if (cpu_is_ti816x()) 209 + bank->nr_irqs = 128; 210 + 206 211 /* Static mapping, never released */ 207 212 bank->base_reg = ioremap(base, SZ_4K); 208 213 if (!bank->base_reg) { ··· 230 229 } 231 230 232 231 #ifdef CONFIG_ARCH_OMAP3 232 + static struct omap3_intc_regs intc_context[ARRAY_SIZE(irq_banks)]; 233 + 233 234 void omap_intc_save_context(void) 234 235 { 235 236 int ind = 0, i = 0;
+1 -1
arch/arm/mach-omap2/mailbox.c
··· 310 310 struct omap_mbox *omap3_mboxes[] = { &mbox_dsp_info, NULL }; 311 311 #endif 312 312 313 - #if defined(CONFIG_ARCH_OMAP2420) 313 + #if defined(CONFIG_SOC_OMAP2420) 314 314 /* IVA */ 315 315 static struct omap_mbox2_priv omap2_mbox_iva_priv = { 316 316 .tx_fifo = {
+2 -2
arch/arm/mach-omap2/mcbsp.c
··· 104 104 105 105 /* Platform data */ 106 106 107 - #ifdef CONFIG_ARCH_OMAP2420 107 + #ifdef CONFIG_SOC_OMAP2420 108 108 static struct omap_mcbsp_platform_data omap2420_mcbsp_pdata[] = { 109 109 { 110 110 .phys_base = OMAP24XX_MCBSP1_BASE, ··· 129 129 #define OMAP2420_MCBSP_REG_NUM 0 130 130 #endif 131 131 132 - #ifdef CONFIG_ARCH_OMAP2430 132 + #ifdef CONFIG_SOC_OMAP2430 133 133 static struct omap_mcbsp_platform_data omap2430_mcbsp_pdata[] = { 134 134 { 135 135 .phys_base = OMAP24XX_MCBSP1_BASE,
+26 -5
arch/arm/mach-omap2/omap_hwmod.c
··· 1467 1467 return -EEXIST; 1468 1468 1469 1469 ms_id = _find_mpu_port_index(oh); 1470 - if (!IS_ERR_VALUE(ms_id)) { 1470 + if (!IS_ERR_VALUE(ms_id)) 1471 1471 oh->_mpu_port_index = ms_id; 1472 - oh->_mpu_rt_va = _find_mpu_rt_base(oh, oh->_mpu_port_index); 1473 - } else { 1472 + else 1474 1473 oh->_int_flags |= _HWMOD_NO_MPU_PORT; 1475 - } 1476 1474 1477 1475 list_add_tail(&oh->node, &omap_hwmod_list); 1478 1476 ··· 1619 1621 return 0; 1620 1622 } 1621 1623 1624 + /* 1625 + * _populate_mpu_rt_base - populate the virtual address for a hwmod 1626 + * 1627 + * Must be called only from omap_hwmod_late_init so ioremap works properly. 1628 + * Assumes the caller takes care of locking if needed. 1629 + * 1630 + */ 1631 + static int __init _populate_mpu_rt_base(struct omap_hwmod *oh, void *data) 1632 + { 1633 + if (oh->_int_flags & _HWMOD_NO_MPU_PORT) 1634 + return 0; 1635 + 1636 + oh->_mpu_rt_va = _find_mpu_rt_base(oh, oh->_mpu_port_index); 1637 + if (!oh->_mpu_rt_va) 1638 + pr_warning("omap_hwmod: %s found no _mpu_rt_va for %s\n", 1639 + __func__, oh->name); 1640 + 1641 + return 0; 1642 + } 1643 + 1622 1644 /** 1623 1645 * omap_hwmod_late_init - do some post-clock framework initialization 1624 1646 * ··· 1646 1628 * to struct clk pointers for each registered omap_hwmod. Also calls 1647 1629 * _setup() on each hwmod. Returns 0. 1648 1630 */ 1649 - int omap_hwmod_late_init(void) 1631 + static int __init omap_hwmod_late_init(void) 1650 1632 { 1651 1633 int r; 1634 + 1635 + r = omap_hwmod_for_each(_populate_mpu_rt_base, NULL); 1652 1636 1653 1637 /* XXX check return value */ 1654 1638 r = omap_hwmod_for_each(_init_clocks, NULL); ··· 1664 1644 1665 1645 return 0; 1666 1646 } 1647 + core_initcall(omap_hwmod_late_init); 1667 1648 1668 1649 /** 1669 1650 * omap_hwmod_enable - enable an omap_hwmod
+1 -1
arch/arm/mach-omap2/opp2xxx.h
··· 418 418 419 419 extern const struct prcm_config omap2420_rate_table[]; 420 420 421 - #ifdef CONFIG_ARCH_OMAP2430 421 + #ifdef CONFIG_SOC_OMAP2430 422 422 extern const struct prcm_config omap2430_rate_table[]; 423 423 #else 424 424 #define omap2430_rate_table NULL
+3 -3
arch/arm/mach-omap2/powerdomains2xxx_data.c
··· 78 78 * 2430-specific powerdomains 79 79 */ 80 80 81 - #ifdef CONFIG_ARCH_OMAP2430 81 + #ifdef CONFIG_SOC_OMAP2430 82 82 83 83 /* XXX 2430 KILLDOMAINWKUP bit? No current users apparently */ 84 84 ··· 97 97 }, 98 98 }; 99 99 100 - #endif /* CONFIG_ARCH_OMAP2430 */ 100 + #endif /* CONFIG_SOC_OMAP2430 */ 101 101 102 102 /* As powerdomains are added or removed above, this list must also be changed */ 103 103 static struct powerdomain *powerdomains_omap2xxx[] __initdata = { ··· 111 111 &core_24xx_pwrdm, 112 112 #endif 113 113 114 - #ifdef CONFIG_ARCH_OMAP2430 114 + #ifdef CONFIG_SOC_OMAP2430 115 115 &mdm_pwrdm, 116 116 #endif 117 117 NULL
+4 -1
arch/arm/mach-omap2/prcm.c
··· 24 24 #include <linux/io.h> 25 25 #include <linux/delay.h> 26 26 27 + #include <mach/system.h> 27 28 #include <plat/common.h> 28 29 #include <plat/prcm.h> 29 30 #include <plat/irqs.h> ··· 58 57 EXPORT_SYMBOL(omap_prcm_get_reset_sources); 59 58 60 59 /* Resets clock rates and reboots the system. Only called from system.h */ 61 - void omap_prcm_arch_reset(char mode, const char *cmd) 60 + static void omap_prcm_arch_reset(char mode, const char *cmd) 62 61 { 63 62 s16 prcm_offs = 0; 64 63 ··· 108 107 OMAP2_RM_RSTCTRL); 109 108 omap2_prm_read_mod_reg(prcm_offs, OMAP2_RM_RSTCTRL); /* OCP barrier */ 110 109 } 110 + 111 + void (*arch_reset)(char, const char *) = omap_prcm_arch_reset; 111 112 112 113 /** 113 114 * omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness
+9 -6
arch/arm/mach-omap2/serial.c
··· 486 486 mod_timer(&uart->timer, jiffies + uart->timeout); 487 487 omap_uart_smart_idle_enable(uart, 0); 488 488 489 - if (cpu_is_omap34xx()) { 489 + if (cpu_is_omap34xx() && !cpu_is_ti816x()) { 490 490 u32 mod = (uart->num > 1) ? OMAP3430_PER_MOD : CORE_MOD; 491 491 u32 wk_mask = 0; 492 492 u32 padconf = 0; ··· 655 655 } 656 656 #endif 657 657 658 - void __init omap_serial_early_init(void) 658 + static int __init omap_serial_early_init(void) 659 659 { 660 660 int i = 0; 661 661 ··· 672 672 673 673 uart = kzalloc(sizeof(struct omap_uart_state), GFP_KERNEL); 674 674 if (WARN_ON(!uart)) 675 - return; 675 + return -ENODEV; 676 676 677 677 uart->oh = oh; 678 678 uart->num = i++; ··· 691 691 */ 692 692 uart->oh->flags |= HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET; 693 693 } while (1); 694 + 695 + return 0; 694 696 } 697 + core_initcall(omap_serial_early_init); 695 698 696 699 /** 697 700 * omap_serial_init_port() - initialize single serial port ··· 762 759 p->private_data = uart; 763 760 764 761 /* 765 - * omap44xx: Never read empty UART fifo 762 + * omap44xx, ti816x: Never read empty UART fifo 766 763 * omap3xxx: Never read empty UART fifo on UARTs 767 764 * with IP rev >=0x52 768 765 */ 769 766 uart->regshift = p->regshift; 770 767 uart->membase = p->membase; 771 - if (cpu_is_omap44xx()) 768 + if (cpu_is_omap44xx() || cpu_is_ti816x()) 772 769 uart->errata |= UART_ERRATA_FIFO_FULL_ABORT; 773 770 else if ((serial_read_reg(uart, UART_OMAP_MVER) & 0xFF) 774 771 >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV) ··· 850 847 } 851 848 852 849 /* Enable the MDR1 errata for OMAP3 */ 853 - if (cpu_is_omap34xx()) 850 + if (cpu_is_omap34xx() && !cpu_is_ti816x()) 854 851 uart->errata |= UART_ERRATA_i202_MDR1_ACCESS; 855 852 } 856 853
+5 -6
arch/arm/plat-omap/common.c
··· 24 24 25 25 #define NO_LENGTH_CHECK 0xffffffff 26 26 27 - struct omap_board_config_kernel *omap_board_config; 27 + struct omap_board_config_kernel *omap_board_config __initdata; 28 28 int omap_board_config_size; 29 29 30 - static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out) 30 + static const void *__init get_config(u16 tag, size_t len, 31 + int skip, size_t *len_out) 31 32 { 32 33 struct omap_board_config_kernel *kinfo = NULL; 33 34 int i; ··· 50 49 return kinfo->data; 51 50 } 52 51 53 - const void *__omap_get_config(u16 tag, size_t len, int nr) 52 + const void *__init __omap_get_config(u16 tag, size_t len, int nr) 54 53 { 55 54 return get_config(tag, len, nr, NULL); 56 55 } 57 - EXPORT_SYMBOL(__omap_get_config); 58 56 59 - const void *omap_get_var_config(u16 tag, size_t *len) 57 + const void *__init omap_get_var_config(u16 tag, size_t *len) 60 58 { 61 59 return get_config(tag, NO_LENGTH_CHECK, 0, len); 62 60 } 63 - EXPORT_SYMBOL(omap_get_var_config); 64 61 65 62 void __init omap_reserve(void) 66 63 {
+2 -2
arch/arm/plat-omap/counter_32k.c
··· 54 54 #define omap16xx_32k_read NULL 55 55 #endif 56 56 57 - #ifdef CONFIG_ARCH_OMAP2420 57 + #ifdef CONFIG_SOC_OMAP2420 58 58 static cycle_t notrace omap2420_32k_read(struct clocksource *cs) 59 59 { 60 60 return omap_readl(OMAP2420_32KSYNCT_BASE + 0x10) - offset_32k; ··· 63 63 #define omap2420_32k_read NULL 64 64 #endif 65 65 66 - #ifdef CONFIG_ARCH_OMAP2430 66 + #ifdef CONFIG_SOC_OMAP2430 67 67 static cycle_t notrace omap2430_32k_read(struct clocksource *cs) 68 68 { 69 69 return omap_readl(OMAP2430_32KSYNCT_BASE + 0x10) - offset_32k;
+1 -1
arch/arm/plat-omap/dma.c
··· 134 134 135 135 #ifdef CONFIG_ARCH_OMAP15XX 136 136 /* Returns 1 if the DMA module is in OMAP1510-compatible mode, 0 otherwise */ 137 - int omap_dma_in_1510_mode(void) 137 + static int omap_dma_in_1510_mode(void) 138 138 { 139 139 return enable_1510_mode; 140 140 }
+1 -1
arch/arm/plat-omap/i2c.c
··· 112 112 } 113 113 114 114 115 + #ifdef CONFIG_ARCH_OMAP2PLUS 115 116 /* 116 117 * XXX This function is a temporary compatibility wrapper - only 117 118 * needed until the I2C driver can be converted to call ··· 131 130 }, 132 131 }; 133 132 134 - #ifdef CONFIG_ARCH_OMAP2PLUS 135 133 static inline int omap2_i2c_add_bus(int bus_id) 136 134 { 137 135 int l;
+2 -2
arch/arm/plat-omap/include/plat/board.h
··· 151 151 const void *data; 152 152 }; 153 153 154 - extern const void *__omap_get_config(u16 tag, size_t len, int nr); 154 + extern const void *__init __omap_get_config(u16 tag, size_t len, int nr); 155 155 156 156 #define omap_get_config(tag, type) \ 157 157 ((const type *) __omap_get_config((tag), sizeof(type), 0)) 158 158 #define omap_get_nr_config(tag, type, nr) \ 159 159 ((const type *) __omap_get_config((tag), sizeof(type), (nr))) 160 160 161 - extern const void *omap_get_var_config(u16 tag, size_t *len); 161 + extern const void *__init omap_get_var_config(u16 tag, size_t *len); 162 162 163 163 extern struct omap_board_config_kernel *omap_board_config; 164 164 extern int omap_board_config_size;
+1
arch/arm/plat-omap/include/plat/clkdev_omap.h
··· 38 38 #define CK_3517 (1 << 9) 39 39 #define CK_36XX (1 << 10) /* 36xx/37xx-specific clocks */ 40 40 #define CK_443X (1 << 11) 41 + #define CK_TI816X (1 << 12) 41 42 42 43 43 44 #define CK_34XX (CK_3430ES1 | CK_3430ES2PLUS)
+1
arch/arm/plat-omap/include/plat/clock.h
··· 53 53 #define RATE_IN_3430ES2PLUS (1 << 3) /* 3430 ES >= 2 rates only */ 54 54 #define RATE_IN_36XX (1 << 4) 55 55 #define RATE_IN_4430 (1 << 5) 56 + #define RATE_IN_TI816X (1 << 6) 56 57 57 58 #define RATE_IN_24XX (RATE_IN_242X | RATE_IN_243X) 58 59 #define RATE_IN_34XX (RATE_IN_3430ES1 | RATE_IN_3430ES2PLUS)
+1
arch/arm/plat-omap/include/plat/common.h
··· 66 66 void omap2_set_globals_243x(void); 67 67 void omap2_set_globals_3xxx(void); 68 68 void omap2_set_globals_443x(void); 69 + void omap2_set_globals_ti816x(void); 69 70 70 71 /* These get called from omap2_set_globals_xxxx(), do not call these */ 71 72 void omap2_set_globals_tap(struct omap_globals *);
+23 -5
arch/arm/plat-omap/include/plat/cpu.h
··· 105 105 return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \ 106 106 } 107 107 108 + #define IS_TI_SUBCLASS(subclass, id) \ 109 + static inline int is_ti ##subclass (void) \ 110 + { \ 111 + return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \ 112 + } 113 + 108 114 IS_OMAP_CLASS(7xx, 0x07) 109 115 IS_OMAP_CLASS(15xx, 0x15) 110 116 IS_OMAP_CLASS(16xx, 0x16) ··· 124 118 IS_OMAP_SUBCLASS(363x, 0x363) 125 119 IS_OMAP_SUBCLASS(443x, 0x443) 126 120 121 + IS_TI_SUBCLASS(816x, 0x816) 122 + 127 123 #define cpu_is_omap7xx() 0 128 124 #define cpu_is_omap15xx() 0 129 125 #define cpu_is_omap16xx() 0 ··· 134 126 #define cpu_is_omap243x() 0 135 127 #define cpu_is_omap34xx() 0 136 128 #define cpu_is_omap343x() 0 129 + #define cpu_is_ti816x() 0 137 130 #define cpu_is_omap44xx() 0 138 131 #define cpu_is_omap443x() 0 139 132 ··· 179 170 # undef cpu_is_omap24xx 180 171 # define cpu_is_omap24xx() is_omap24xx() 181 172 # endif 182 - # if defined (CONFIG_ARCH_OMAP2420) 173 + # if defined (CONFIG_SOC_OMAP2420) 183 174 # undef cpu_is_omap242x 184 175 # define cpu_is_omap242x() is_omap242x() 185 176 # endif 186 - # if defined (CONFIG_ARCH_OMAP2430) 177 + # if defined (CONFIG_SOC_OMAP2430) 187 178 # undef cpu_is_omap243x 188 179 # define cpu_is_omap243x() is_omap243x() 189 180 # endif ··· 198 189 # undef cpu_is_omap24xx 199 190 # define cpu_is_omap24xx() 1 200 191 # endif 201 - # if defined(CONFIG_ARCH_OMAP2420) 192 + # if defined(CONFIG_SOC_OMAP2420) 202 193 # undef cpu_is_omap242x 203 194 # define cpu_is_omap242x() 1 204 195 # endif 205 - # if defined(CONFIG_ARCH_OMAP2430) 196 + # if defined(CONFIG_SOC_OMAP2430) 206 197 # undef cpu_is_omap243x 207 198 # define cpu_is_omap243x() 1 208 199 # endif ··· 210 201 # undef cpu_is_omap34xx 211 202 # define cpu_is_omap34xx() 1 212 203 # endif 213 - # if defined(CONFIG_ARCH_OMAP3430) 204 + # if defined(CONFIG_SOC_OMAP3430) 214 205 # undef cpu_is_omap343x 215 206 # define cpu_is_omap343x() 1 216 207 # endif ··· 339 330 # undef cpu_is_omap3530 340 331 # undef cpu_is_omap3505 341 332 # undef cpu_is_omap3517 333 + # undef cpu_is_ti816x 342 334 # define cpu_is_omap3430() is_omap3430() 343 335 # define cpu_is_omap3503() (cpu_is_omap3430() && \ 344 336 (!omap3_has_iva()) && \ ··· 355 345 # define cpu_is_omap3517() is_omap3517() 356 346 # undef cpu_is_omap3630 357 347 # define cpu_is_omap3630() is_omap363x() 348 + # define cpu_is_ti816x() is_ti816x() 358 349 #endif 359 350 360 351 # if defined(CONFIG_ARCH_OMAP4) ··· 400 389 #define OMAP3505_REV(v) (OMAP35XX_CLASS | (0x3505 << 16) | (v << 8)) 401 390 #define OMAP3517_REV(v) (OMAP35XX_CLASS | (0x3517 << 16) | (v << 8)) 402 391 392 + #define TI816X_CLASS 0x81600034 393 + #define TI8168_REV_ES1_0 TI816X_CLASS 394 + #define TI8168_REV_ES1_1 (TI816X_CLASS | (OMAP_REVBITS_01 << 8)) 395 + 403 396 #define OMAP443X_CLASS 0x44300044 404 397 #define OMAP4430_REV_ES1_0 OMAP443X_CLASS 405 398 #define OMAP4430_REV_ES2_0 0x44301044 ··· 434 419 #define CHIP_IS_OMAP3630ES1_1 (1 << 9) 435 420 #define CHIP_IS_OMAP3630ES1_2 (1 << 10) 436 421 #define CHIP_IS_OMAP4430ES2 (1 << 11) 422 + #define CHIP_IS_TI816X (1 << 14) 437 423 438 424 #define CHIP_IS_OMAP24XX (CHIP_IS_OMAP2420 | CHIP_IS_OMAP2430) 439 425 ··· 471 455 #define OMAP3_HAS_ISP BIT(4) 472 456 #define OMAP3_HAS_192MHZ_CLK BIT(5) 473 457 #define OMAP3_HAS_IO_WAKEUP BIT(6) 458 + #define OMAP3_HAS_SDRC BIT(7) 474 459 475 460 #define OMAP3_HAS_FEATURE(feat,flag) \ 476 461 static inline unsigned int omap3_has_ ##feat(void) \ ··· 486 469 OMAP3_HAS_FEATURE(isp, ISP) 487 470 OMAP3_HAS_FEATURE(192mhz_clk, 192MHZ_CLK) 488 471 OMAP3_HAS_FEATURE(io_wakeup, IO_WAKEUP) 472 + OMAP3_HAS_FEATURE(sdrc, SDRC) 489 473 490 474 #endif
+43 -43
arch/arm/plat-omap/include/plat/fpga.h
··· 30 30 * --------------------------------------------------------------------------- 31 31 */ 32 32 /* maps in the FPGA registers and the ETHR registers */ 33 - #define H2P2_DBG_FPGA_BASE IOMEM(0xE8000000) /* VA */ 33 + #define H2P2_DBG_FPGA_BASE 0xE8000000 /* VA */ 34 34 #define H2P2_DBG_FPGA_SIZE SZ_4K /* SIZE */ 35 35 #define H2P2_DBG_FPGA_START 0x04000000 /* PA */ 36 36 37 37 #define H2P2_DBG_FPGA_ETHR_START (H2P2_DBG_FPGA_START + 0x300) 38 - #define H2P2_DBG_FPGA_FPGA_REV (H2P2_DBG_FPGA_BASE + 0x10) /* FPGA Revision */ 39 - #define H2P2_DBG_FPGA_BOARD_REV (H2P2_DBG_FPGA_BASE + 0x12) /* Board Revision */ 40 - #define H2P2_DBG_FPGA_GPIO (H2P2_DBG_FPGA_BASE + 0x14) /* GPIO outputs */ 41 - #define H2P2_DBG_FPGA_LEDS (H2P2_DBG_FPGA_BASE + 0x16) /* LEDs outputs */ 42 - #define H2P2_DBG_FPGA_MISC_INPUTS (H2P2_DBG_FPGA_BASE + 0x18) /* Misc inputs */ 43 - #define H2P2_DBG_FPGA_LAN_STATUS (H2P2_DBG_FPGA_BASE + 0x1A) /* LAN Status line */ 44 - #define H2P2_DBG_FPGA_LAN_RESET (H2P2_DBG_FPGA_BASE + 0x1C) /* LAN Reset line */ 38 + #define H2P2_DBG_FPGA_FPGA_REV IOMEM(H2P2_DBG_FPGA_BASE + 0x10) /* FPGA Revision */ 39 + #define H2P2_DBG_FPGA_BOARD_REV IOMEM(H2P2_DBG_FPGA_BASE + 0x12) /* Board Revision */ 40 + #define H2P2_DBG_FPGA_GPIO IOMEM(H2P2_DBG_FPGA_BASE + 0x14) /* GPIO outputs */ 41 + #define H2P2_DBG_FPGA_LEDS IOMEM(H2P2_DBG_FPGA_BASE + 0x16) /* LEDs outputs */ 42 + #define H2P2_DBG_FPGA_MISC_INPUTS IOMEM(H2P2_DBG_FPGA_BASE + 0x18) /* Misc inputs */ 43 + #define H2P2_DBG_FPGA_LAN_STATUS IOMEM(H2P2_DBG_FPGA_BASE + 0x1A) /* LAN Status line */ 44 + #define H2P2_DBG_FPGA_LAN_RESET IOMEM(H2P2_DBG_FPGA_BASE + 0x1C) /* LAN Reset line */ 45 45 46 46 /* NOTE: most boards don't have a static mapping for the FPGA ... */ 47 47 struct h2p2_dbg_fpga { ··· 81 81 * OMAP-1510 FPGA 82 82 * --------------------------------------------------------------------------- 83 83 */ 84 - #define OMAP1510_FPGA_BASE IOMEM(0xE8000000) /* VA */ 84 + #define OMAP1510_FPGA_BASE 0xE8000000 /* VA */ 85 85 #define OMAP1510_FPGA_SIZE SZ_4K 86 86 #define OMAP1510_FPGA_START 0x08000000 /* PA */ 87 87 88 88 /* Revision */ 89 - #define OMAP1510_FPGA_REV_LOW (OMAP1510_FPGA_BASE + 0x0) 90 - #define OMAP1510_FPGA_REV_HIGH (OMAP1510_FPGA_BASE + 0x1) 89 + #define OMAP1510_FPGA_REV_LOW IOMEM(OMAP1510_FPGA_BASE + 0x0) 90 + #define OMAP1510_FPGA_REV_HIGH IOMEM(OMAP1510_FPGA_BASE + 0x1) 91 91 92 - #define OMAP1510_FPGA_LCD_PANEL_CONTROL (OMAP1510_FPGA_BASE + 0x2) 93 - #define OMAP1510_FPGA_LED_DIGIT (OMAP1510_FPGA_BASE + 0x3) 94 - #define INNOVATOR_FPGA_HID_SPI (OMAP1510_FPGA_BASE + 0x4) 95 - #define OMAP1510_FPGA_POWER (OMAP1510_FPGA_BASE + 0x5) 92 + #define OMAP1510_FPGA_LCD_PANEL_CONTROL IOMEM(OMAP1510_FPGA_BASE + 0x2) 93 + #define OMAP1510_FPGA_LED_DIGIT IOMEM(OMAP1510_FPGA_BASE + 0x3) 94 + #define INNOVATOR_FPGA_HID_SPI IOMEM(OMAP1510_FPGA_BASE + 0x4) 95 + #define OMAP1510_FPGA_POWER IOMEM(OMAP1510_FPGA_BASE + 0x5) 96 96 97 97 /* Interrupt status */ 98 - #define OMAP1510_FPGA_ISR_LO (OMAP1510_FPGA_BASE + 0x6) 99 - #define OMAP1510_FPGA_ISR_HI (OMAP1510_FPGA_BASE + 0x7) 98 + #define OMAP1510_FPGA_ISR_LO IOMEM(OMAP1510_FPGA_BASE + 0x6) 99 + #define OMAP1510_FPGA_ISR_HI IOMEM(OMAP1510_FPGA_BASE + 0x7) 100 100 101 101 /* Interrupt mask */ 102 - #define OMAP1510_FPGA_IMR_LO (OMAP1510_FPGA_BASE + 0x8) 103 - #define OMAP1510_FPGA_IMR_HI (OMAP1510_FPGA_BASE + 0x9) 102 + #define OMAP1510_FPGA_IMR_LO IOMEM(OMAP1510_FPGA_BASE + 0x8) 103 + #define OMAP1510_FPGA_IMR_HI IOMEM(OMAP1510_FPGA_BASE + 0x9) 104 104 105 105 /* Reset registers */ 106 - #define OMAP1510_FPGA_HOST_RESET (OMAP1510_FPGA_BASE + 0xa) 107 - #define OMAP1510_FPGA_RST (OMAP1510_FPGA_BASE + 0xb) 106 + #define OMAP1510_FPGA_HOST_RESET IOMEM(OMAP1510_FPGA_BASE + 0xa) 107 + #define OMAP1510_FPGA_RST IOMEM(OMAP1510_FPGA_BASE + 0xb) 108 108 109 - #define OMAP1510_FPGA_AUDIO (OMAP1510_FPGA_BASE + 0xc) 110 - #define OMAP1510_FPGA_DIP (OMAP1510_FPGA_BASE + 0xe) 111 - #define OMAP1510_FPGA_FPGA_IO (OMAP1510_FPGA_BASE + 0xf) 112 - #define OMAP1510_FPGA_UART1 (OMAP1510_FPGA_BASE + 0x14) 113 - #define OMAP1510_FPGA_UART2 (OMAP1510_FPGA_BASE + 0x15) 114 - #define OMAP1510_FPGA_OMAP1510_STATUS (OMAP1510_FPGA_BASE + 0x16) 115 - #define OMAP1510_FPGA_BOARD_REV (OMAP1510_FPGA_BASE + 0x18) 116 - #define OMAP1510P1_PPT_DATA (OMAP1510_FPGA_BASE + 0x100) 117 - #define OMAP1510P1_PPT_STATUS (OMAP1510_FPGA_BASE + 0x101) 118 - #define OMAP1510P1_PPT_CONTROL (OMAP1510_FPGA_BASE + 0x102) 109 + #define OMAP1510_FPGA_AUDIO IOMEM(OMAP1510_FPGA_BASE + 0xc) 110 + #define OMAP1510_FPGA_DIP IOMEM(OMAP1510_FPGA_BASE + 0xe) 111 + #define OMAP1510_FPGA_FPGA_IO IOMEM(OMAP1510_FPGA_BASE + 0xf) 112 + #define OMAP1510_FPGA_UART1 IOMEM(OMAP1510_FPGA_BASE + 0x14) 113 + #define OMAP1510_FPGA_UART2 IOMEM(OMAP1510_FPGA_BASE + 0x15) 114 + #define OMAP1510_FPGA_OMAP1510_STATUS IOMEM(OMAP1510_FPGA_BASE + 0x16) 115 + #define OMAP1510_FPGA_BOARD_REV IOMEM(OMAP1510_FPGA_BASE + 0x18) 116 + #define OMAP1510P1_PPT_DATA IOMEM(OMAP1510_FPGA_BASE + 0x100) 117 + #define OMAP1510P1_PPT_STATUS IOMEM(OMAP1510_FPGA_BASE + 0x101) 118 + #define OMAP1510P1_PPT_CONTROL IOMEM(OMAP1510_FPGA_BASE + 0x102) 119 119 120 - #define OMAP1510_FPGA_TOUCHSCREEN (OMAP1510_FPGA_BASE + 0x204) 120 + #define OMAP1510_FPGA_TOUCHSCREEN IOMEM(OMAP1510_FPGA_BASE + 0x204) 121 121 122 - #define INNOVATOR_FPGA_INFO (OMAP1510_FPGA_BASE + 0x205) 123 - #define INNOVATOR_FPGA_LCD_BRIGHT_LO (OMAP1510_FPGA_BASE + 0x206) 124 - #define INNOVATOR_FPGA_LCD_BRIGHT_HI (OMAP1510_FPGA_BASE + 0x207) 125 - #define INNOVATOR_FPGA_LED_GRN_LO (OMAP1510_FPGA_BASE + 0x208) 126 - #define INNOVATOR_FPGA_LED_GRN_HI (OMAP1510_FPGA_BASE + 0x209) 127 - #define INNOVATOR_FPGA_LED_RED_LO (OMAP1510_FPGA_BASE + 0x20a) 128 - #define INNOVATOR_FPGA_LED_RED_HI (OMAP1510_FPGA_BASE + 0x20b) 129 - #define INNOVATOR_FPGA_CAM_USB_CONTROL (OMAP1510_FPGA_BASE + 0x20c) 130 - #define INNOVATOR_FPGA_EXP_CONTROL (OMAP1510_FPGA_BASE + 0x20d) 131 - #define INNOVATOR_FPGA_ISR2 (OMAP1510_FPGA_BASE + 0x20e) 132 - #define INNOVATOR_FPGA_IMR2 (OMAP1510_FPGA_BASE + 0x210) 122 + #define INNOVATOR_FPGA_INFO IOMEM(OMAP1510_FPGA_BASE + 0x205) 123 + #define INNOVATOR_FPGA_LCD_BRIGHT_LO IOMEM(OMAP1510_FPGA_BASE + 0x206) 124 + #define INNOVATOR_FPGA_LCD_BRIGHT_HI IOMEM(OMAP1510_FPGA_BASE + 0x207) 125 + #define INNOVATOR_FPGA_LED_GRN_LO IOMEM(OMAP1510_FPGA_BASE + 0x208) 126 + #define INNOVATOR_FPGA_LED_GRN_HI IOMEM(OMAP1510_FPGA_BASE + 0x209) 127 + #define INNOVATOR_FPGA_LED_RED_LO IOMEM(OMAP1510_FPGA_BASE + 0x20a) 128 + #define INNOVATOR_FPGA_LED_RED_HI IOMEM(OMAP1510_FPGA_BASE + 0x20b) 129 + #define INNOVATOR_FPGA_CAM_USB_CONTROL IOMEM(OMAP1510_FPGA_BASE + 0x20c) 130 + #define INNOVATOR_FPGA_EXP_CONTROL IOMEM(OMAP1510_FPGA_BASE + 0x20d) 131 + #define INNOVATOR_FPGA_ISR2 IOMEM(OMAP1510_FPGA_BASE + 0x20e) 132 + #define INNOVATOR_FPGA_IMR2 IOMEM(OMAP1510_FPGA_BASE + 0x210) 133 133 134 134 #define OMAP1510_FPGA_ETHR_START (OMAP1510_FPGA_START + 0x300) 135 135
+1
arch/arm/plat-omap/include/plat/hardware.h
··· 286 286 #include <plat/omap24xx.h> 287 287 #include <plat/omap34xx.h> 288 288 #include <plat/omap44xx.h> 289 + #include <plat/ti816x.h> 289 290 290 291 #endif /* __ASM_ARCH_OMAP_HARDWARE_H */
+10 -2
arch/arm/plat-omap/include/plat/io.h
··· 259 259 extern void omap1_map_common_io(void); 260 260 extern void omap1_init_common_hw(void); 261 261 262 - #ifdef CONFIG_ARCH_OMAP2420 262 + #ifdef CONFIG_SOC_OMAP2420 263 263 extern void omap242x_map_common_io(void); 264 264 #else 265 265 static inline void omap242x_map_common_io(void) ··· 267 267 } 268 268 #endif 269 269 270 - #ifdef CONFIG_ARCH_OMAP2430 270 + #ifdef CONFIG_SOC_OMAP2430 271 271 extern void omap243x_map_common_io(void); 272 272 #else 273 273 static inline void omap243x_map_common_io(void) ··· 279 279 extern void omap34xx_map_common_io(void); 280 280 #else 281 281 static inline void omap34xx_map_common_io(void) 282 + { 283 + } 284 + #endif 285 + 286 + #ifdef CONFIG_SOC_OMAPTI816X 287 + extern void omapti816x_map_common_io(void); 288 + #else 289 + static inline void omapti816x_map_common_io(void) 282 290 { 283 291 } 284 292 #endif
-14
arch/arm/plat-omap/include/plat/mcbsp.h
··· 106 106 #define OMAP_MCBSP_REG_XCCR 0x00 107 107 #define OMAP_MCBSP_REG_RCCR 0x00 108 108 109 - #define AUDIO_MCBSP_DATAWRITE (OMAP1510_MCBSP1_BASE + OMAP_MCBSP_REG_DXR1) 110 - #define AUDIO_MCBSP_DATAREAD (OMAP1510_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1) 111 - 112 - #define AUDIO_MCBSP OMAP_MCBSP1 113 - #define AUDIO_DMA_TX OMAP_DMA_MCBSP1_TX 114 - #define AUDIO_DMA_RX OMAP_DMA_MCBSP1_RX 115 - 116 109 #else 117 110 118 111 #define OMAP_MCBSP_REG_DRR2 0x00 ··· 160 167 #define OMAP_ST_REG_SGAINCR 0x24 161 168 #define OMAP_ST_REG_SFIRCR 0x28 162 169 #define OMAP_ST_REG_SSELCR 0x2C 163 - 164 - #define AUDIO_MCBSP_DATAWRITE (OMAP24XX_MCBSP2_BASE + OMAP_MCBSP_REG_DXR1) 165 - #define AUDIO_MCBSP_DATAREAD (OMAP24XX_MCBSP2_BASE + OMAP_MCBSP_REG_DRR1) 166 - 167 - #define AUDIO_MCBSP OMAP_MCBSP2 168 - #define AUDIO_DMA_TX OMAP24XX_DMA_MCBSP2_TX 169 - #define AUDIO_DMA_RX OMAP24XX_DMA_MCBSP2_RX 170 170 171 171 #endif 172 172
+2 -2
arch/arm/plat-omap/include/plat/multi.h
··· 66 66 # error "OMAP1 and OMAP2PLUS can't be selected at the same time" 67 67 # endif 68 68 #endif 69 - #ifdef CONFIG_ARCH_OMAP2420 69 + #ifdef CONFIG_SOC_OMAP2420 70 70 # ifdef OMAP_NAME 71 71 # undef MULTI_OMAP2 72 72 # define MULTI_OMAP2 ··· 74 74 # define OMAP_NAME omap2420 75 75 # endif 76 76 #endif 77 - #ifdef CONFIG_ARCH_OMAP2430 77 + #ifdef CONFIG_SOC_OMAP2430 78 78 # ifdef OMAP_NAME 79 79 # undef MULTI_OMAP2 80 80 # define MULTI_OMAP2
-1
arch/arm/plat-omap/include/plat/omap_hwmod.h
··· 539 539 struct omap_hwmod *omap_hwmod_lookup(const char *name); 540 540 int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh, void *data), 541 541 void *data); 542 - int omap_hwmod_late_init(void); 543 542 544 543 int omap_hwmod_enable(struct omap_hwmod *oh); 545 544 int _omap_hwmod_enable(struct omap_hwmod *oh);
-1
arch/arm/plat-omap/include/plat/prcm.h
··· 28 28 #define __ASM_ARM_ARCH_OMAP_PRCM_H 29 29 30 30 u32 omap_prcm_get_reset_sources(void); 31 - void omap_prcm_arch_reset(char mode, const char *cmd); 32 31 int omap2_cm_wait_idlest(void __iomem *reg, u32 mask, u8 idlest, 33 32 const char *name); 34 33
+8 -1
arch/arm/plat-omap/include/plat/serial.h
··· 51 51 #define OMAP4_UART3_BASE 0x48020000 52 52 #define OMAP4_UART4_BASE 0x4806e000 53 53 54 + /* TI816X serial ports */ 55 + #define TI816X_UART1_BASE 0x48020000 56 + #define TI816X_UART2_BASE 0x48022000 57 + #define TI816X_UART3_BASE 0x48024000 58 + 54 59 /* External port on Zoom2/3 */ 55 60 #define ZOOM_UART_BASE 0x10000000 56 61 #define ZOOM_UART_VIRT 0xfa400000 ··· 86 81 #define OMAP4UART2 OMAP2UART2 87 82 #define OMAP4UART3 43 88 83 #define OMAP4UART4 44 84 + #define TI816XUART1 81 85 + #define TI816XUART2 82 86 + #define TI816XUART3 83 89 87 #define ZOOM_UART 95 /* Only on zoom2/3 */ 90 88 91 89 /* This is only used by 8250.c for omap1510 */ ··· 104 96 105 97 struct omap_board_data; 106 98 107 - extern void __init omap_serial_early_init(void); 108 99 extern void omap_serial_init(void); 109 100 extern void omap_serial_init_port(struct omap_board_data *bdata); 110 101 extern int omap_uart_can_sleep(void);
+2 -36
arch/arm/plat-omap/include/plat/system.h
··· 4 4 */ 5 5 #ifndef __ASM_ARCH_SYSTEM_H 6 6 #define __ASM_ARCH_SYSTEM_H 7 - #include <linux/clk.h> 8 7 9 - #include <asm/mach-types.h> 10 - #include <mach/hardware.h> 11 - 12 - #include <plat/prcm.h> 13 - 14 - #ifndef CONFIG_MACH_VOICEBLUE 15 - #define voiceblue_reset() do {} while (0) 16 - #else 17 - extern void voiceblue_reset(void); 18 - #endif 8 + #include <asm/proc-fns.h> 19 9 20 10 static inline void arch_idle(void) 21 11 { 22 12 cpu_do_idle(); 23 13 } 24 14 25 - static inline void omap1_arch_reset(char mode, const char *cmd) 26 - { 27 - /* 28 - * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 29 - * "Global Software Reset Affects Traffic Controller Frequency". 30 - */ 31 - if (cpu_is_omap5912()) { 32 - omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), 33 - DPLL_CTL); 34 - omap_writew(0x8, ARM_RSTCT1); 35 - } 36 - 37 - if (machine_is_voiceblue()) 38 - voiceblue_reset(); 39 - else 40 - omap_writew(1, ARM_RSTCT1); 41 - } 42 - 43 - static inline void arch_reset(char mode, const char *cmd) 44 - { 45 - if (!cpu_class_is_omap2()) 46 - omap1_arch_reset(mode, cmd); 47 - else 48 - omap_prcm_arch_reset(mode, cmd); 49 - } 15 + extern void (*arch_reset)(char, const char *); 50 16 51 17 #endif
+27
arch/arm/plat-omap/include/plat/ti816x.h
··· 1 + /* 2 + * This file contains the address data for various TI816X modules. 3 + * 4 + * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ 5 + * 6 + * This program is free software; you can redistribute it and/or 7 + * modify it under the terms of the GNU General Public License as 8 + * published by the Free Software Foundation version 2. 9 + * 10 + * This program is distributed "as is" WITHOUT ANY WARRANTY of any 11 + * kind, whether express or implied; without even the implied warranty 12 + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 + * GNU General Public License for more details. 14 + */ 15 + 16 + #ifndef __ASM_ARCH_TI816X_H 17 + #define __ASM_ARCH_TI816X_H 18 + 19 + #define L4_SLOW_TI816X_BASE 0x48000000 20 + 21 + #define TI816X_SCM_BASE 0x48140000 22 + #define TI816X_CTRL_BASE TI816X_SCM_BASE 23 + #define TI816X_PRCM_BASE 0x48180000 24 + 25 + #define TI816X_ARM_INTC_BASE 0x48200000 26 + 27 + #endif /* __ASM_ARCH_TI816X_H */
+7
arch/arm/plat-omap/include/plat/uncompress.h
··· 93 93 #define DEBUG_LL_ZOOM(mach) \ 94 94 _DEBUG_LL_ENTRY(mach, ZOOM_UART_BASE, ZOOM_PORT_SHIFT, ZOOM_UART) 95 95 96 + #define DEBUG_LL_TI816X(p, mach) \ 97 + _DEBUG_LL_ENTRY(mach, TI816X_UART##p##_BASE, OMAP_PORT_SHIFT, \ 98 + TI816XUART##p) 99 + 96 100 static inline void __arch_decomp_setup(unsigned long arch_id) 97 101 { 98 102 int port = 0; ··· 169 165 /* zoom2/3 external uart */ 170 166 DEBUG_LL_ZOOM(omap_zoom2); 171 167 DEBUG_LL_ZOOM(omap_zoom3); 168 + 169 + /* TI8168 base boards using UART3 */ 170 + DEBUG_LL_TI816X(3, ti8168evm); 172 171 173 172 } while (0); 174 173 }
+4 -1
arch/arm/plat-omap/io.c
··· 85 85 } 86 86 #endif 87 87 #ifdef CONFIG_ARCH_OMAP3 88 - if (cpu_is_omap34xx()) { 88 + if (cpu_is_ti816x()) { 89 + if (BETWEEN(p, L4_34XX_PHYS, L4_34XX_SIZE)) 90 + return XLATE(p, L4_34XX_PHYS, L4_34XX_VIRT); 91 + } else if (cpu_is_omap34xx()) { 89 92 if (BETWEEN(p, L3_34XX_PHYS, L3_34XX_SIZE)) 90 93 return XLATE(p, L3_34XX_PHYS, L3_34XX_VIRT); 91 94 if (BETWEEN(p, L4_34XX_PHYS, L4_34XX_SIZE))
+2 -2
arch/arm/plat-omap/sram.c
··· 312 312 } 313 313 #endif 314 314 315 - #ifdef CONFIG_ARCH_OMAP2420 315 + #ifdef CONFIG_SOC_OMAP2420 316 316 static int __init omap242x_sram_init(void) 317 317 { 318 318 _omap2_sram_ddr_init = omap_sram_push(omap242x_sram_ddr_init, ··· 333 333 } 334 334 #endif 335 335 336 - #ifdef CONFIG_ARCH_OMAP2430 336 + #ifdef CONFIG_SOC_OMAP2430 337 337 static int __init omap243x_sram_init(void) 338 338 { 339 339 _omap2_sram_ddr_init = omap_sram_push(omap243x_sram_ddr_init,
+1 -1
drivers/mmc/host/Kconfig
··· 225 225 226 226 config MMC_OMAP_HS 227 227 tristate "TI OMAP High Speed Multimedia Card Interface support" 228 - depends on ARCH_OMAP2430 || ARCH_OMAP3 || ARCH_OMAP4 228 + depends on SOC_OMAP2430 || ARCH_OMAP3 || ARCH_OMAP4 229 229 help 230 230 This selects the TI OMAP High Speed Multimedia card Interface. 231 231 If you have an OMAP2430 or OMAP3 board or OMAP4 board with a
+2 -2
drivers/spi/omap2_mcspi.c
··· 1111 1111 OMAP24XX_DMA_SPI2_TX1, 1112 1112 }; 1113 1113 1114 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) \ 1114 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) \ 1115 1115 || defined(CONFIG_ARCH_OMAP4) 1116 1116 static u8 __initdata spi3_rxdma_id[] = { 1117 1117 OMAP24XX_DMA_SPI3_RX0, ··· 1154 1154 txdma_id = spi2_txdma_id; 1155 1155 num_chipselect = 2; 1156 1156 break; 1157 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) \ 1157 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) \ 1158 1158 || defined(CONFIG_ARCH_OMAP4) 1159 1159 case 3: 1160 1160 rxdma_id = spi3_rxdma_id;
+1 -1
drivers/usb/musb/musb_core.c
··· 1530 1530 1531 1531 /*-------------------------------------------------------------------------*/ 1532 1532 1533 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) || \ 1533 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430) || \ 1534 1534 defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_ARCH_U8500) || \ 1535 1535 defined(CONFIG_ARCH_U5500) 1536 1536
+3 -3
drivers/usb/musb/musb_core.h
··· 212 212 * directly with the "flat" model, or after setting up an index register. 213 213 */ 214 214 215 - #if defined(CONFIG_ARCH_DAVINCI) || defined(CONFIG_ARCH_OMAP2430) \ 216 - || defined(CONFIG_ARCH_OMAP3430) || defined(CONFIG_BLACKFIN) \ 215 + #if defined(CONFIG_ARCH_DAVINCI) || defined(CONFIG_SOC_OMAP2430) \ 216 + || defined(CONFIG_SOC_OMAP3430) || defined(CONFIG_BLACKFIN) \ 217 217 || defined(CONFIG_ARCH_OMAP4) 218 218 /* REVISIT indexed access seemed to 219 219 * misbehave (on DaVinci) for at least peripheral IN ... ··· 358 358 359 359 struct musb_context_registers { 360 360 361 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ 361 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ 362 362 defined(CONFIG_ARCH_OMAP4) 363 363 u32 otg_sysconfig, otg_forcestandby; 364 364 #endif
+1 -1
drivers/usb/musb/musbhsdma.h
··· 31 31 * 32 32 */ 33 33 34 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) 34 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430) 35 35 #include "omap2430.h" 36 36 #endif 37 37
+1 -1
drivers/usb/otg/isp1301_omap.c
··· 1510 1510 1511 1511 /*-------------------------------------------------------------------------*/ 1512 1512 1513 - static int __init 1513 + static int __devinit 1514 1514 isp1301_probe(struct i2c_client *i2c, const struct i2c_device_id *id) 1515 1515 { 1516 1516 int status;
+1 -1
drivers/w1/masters/Kconfig
··· 60 60 61 61 config HDQ_MASTER_OMAP 62 62 tristate "OMAP HDQ driver" 63 - depends on ARCH_OMAP2430 || ARCH_OMAP3 63 + depends on SOC_OMAP2430 || ARCH_OMAP3 64 64 help 65 65 Say Y here if you want support for the 1-wire or HDQ Interface 66 66 on an OMAP processor.
+3 -3
sound/soc/omap/omap-mcbsp.c
··· 92 92 static const int omap24xx_dma_reqs[][2] = { 93 93 { OMAP24XX_DMA_MCBSP1_TX, OMAP24XX_DMA_MCBSP1_RX }, 94 94 { OMAP24XX_DMA_MCBSP2_TX, OMAP24XX_DMA_MCBSP2_RX }, 95 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) 95 + #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) 96 96 { OMAP24XX_DMA_MCBSP3_TX, OMAP24XX_DMA_MCBSP3_RX }, 97 97 { OMAP24XX_DMA_MCBSP4_TX, OMAP24XX_DMA_MCBSP4_RX }, 98 98 { OMAP24XX_DMA_MCBSP5_TX, OMAP24XX_DMA_MCBSP5_RX }, ··· 113 113 static const int omap44xx_dma_reqs[][2] = {}; 114 114 #endif 115 115 116 - #if defined(CONFIG_ARCH_OMAP2420) 116 + #if defined(CONFIG_SOC_OMAP2420) 117 117 static const unsigned long omap2420_mcbsp_port[][2] = { 118 118 { OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR1, 119 119 OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1 }, ··· 124 124 static const unsigned long omap2420_mcbsp_port[][2] = {}; 125 125 #endif 126 126 127 - #if defined(CONFIG_ARCH_OMAP2430) 127 + #if defined(CONFIG_SOC_OMAP2430) 128 128 static const unsigned long omap2430_mcbsp_port[][2] = { 129 129 { OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR, 130 130 OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR },
+2 -2
sound/soc/omap/omap-mcbsp.h
··· 43 43 OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */ 44 44 }; 45 45 46 - #if defined(CONFIG_ARCH_OMAP2420) 46 + #if defined(CONFIG_SOC_OMAP2420) 47 47 #define NUM_LINKS 2 48 48 #endif 49 49 #if defined(CONFIG_ARCH_OMAP15XX) || defined(CONFIG_ARCH_OMAP16XX) ··· 54 54 #undef NUM_LINKS 55 55 #define NUM_LINKS 4 56 56 #endif 57 - #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) 57 + #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_OMAP2430) 58 58 #undef NUM_LINKS 59 59 #define NUM_LINKS 5 60 60 #endif