diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 23:58:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 23:58:25 -0400 |
commit | 81a3c10ce8a7fd5bf9a06bfc38bd417512911831 (patch) | |
tree | 12ceac10fae8c4b2dc17b362672a5db305a8d960 /arch/arm/mach-omap1/board-fsample.c | |
parent | 6585dea1f99cc2265582ff2e4cc1727062136e92 (diff) | |
parent | df80442d1ee2902c2e39f90f18160f2e08d14c06 (diff) |
Merge branch 'next/cleanup2' of git://git.linaro.org/people/arnd/arm-soc
* 'next/cleanup2' of git://git.linaro.org/people/arnd/arm-soc: (31 commits)
ARM: OMAP: Warn if omap_ioremap is called before SoC detection
ARM: OMAP: Move set_globals initialization to happen in init_early
ARM: OMAP: Map SRAM later on with ioremap_exec()
ARM: OMAP: Remove calls to SRAM allocations for framebuffer
ARM: OMAP: Avoid cpu_is_omapxxxx usage until map_io is done
ARM: OMAP1: Use generic map_io, init_early and init_irq
arm/dts: OMAP3+: Add mpu, dsp and iva nodes
arm/dts: OMAP4: Add a main ocp entry bound to l3-noc driver
ARM: OMAP2+: l3-noc: Add support for device-tree
ARM: OMAP2+: board-generic: Add i2c static init
ARM: OMAP2+: board-generic: Add DT support to generic board
arm/dts: Add support for OMAP3 Beagle board
arm/dts: Add initial device tree support for OMAP3 SoC
arm/dts: Add support for OMAP4 SDP board
arm/dts: Add support for OMAP4 PandaBoard
arm/dts: Add initial device tree support for OMAP4 SoC
ARM: OMAP: omap_device: Add a method to build an omap_device from a DT node
ARM: OMAP: omap_device: Add omap_device_[alloc|delete] for DT integration
of: Add helpers to get one string in multiple strings property
ARM: OMAP2+: devices: Remove all omap_device_pm_latency structures
...
Fix up trivial header file conflicts in arch/arm/mach-omap2/board-generic.c
Diffstat (limited to 'arch/arm/mach-omap1/board-fsample.c')
-rw-r--r-- | arch/arm/mach-omap1/board-fsample.c | 76 |
1 files changed, 36 insertions, 40 deletions
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c index 31e089b6f03f..23178275f96b 100644 --- a/arch/arm/mach-omap1/board-fsample.c +++ b/arch/arm/mach-omap1/board-fsample.c | |||
@@ -296,6 +296,39 @@ static struct omap_board_config_kernel fsample_config[] __initdata = { | |||
296 | 296 | ||
297 | static void __init omap_fsample_init(void) | 297 | static void __init omap_fsample_init(void) |
298 | { | 298 | { |
299 | /* Early, board-dependent init */ | ||
300 | |||
301 | /* | ||
302 | * Hold GSM Reset until needed | ||
303 | */ | ||
304 | omap_writew(omap_readw(OMAP7XX_DSP_M_CTL) & ~1, OMAP7XX_DSP_M_CTL); | ||
305 | |||
306 | /* | ||
307 | * UARTs -> done automagically by 8250 driver | ||
308 | */ | ||
309 | |||
310 | /* | ||
311 | * CSx timings, GPIO Mux ... setup | ||
312 | */ | ||
313 | |||
314 | /* Flash: CS0 timings setup */ | ||
315 | omap_writel(0x0000fff3, OMAP7XX_FLASH_CFG_0); | ||
316 | omap_writel(0x00000088, OMAP7XX_FLASH_ACFG_0); | ||
317 | |||
318 | /* | ||
319 | * Ethernet support through the debug board | ||
320 | * CS1 timings setup | ||
321 | */ | ||
322 | omap_writel(0x0000fff3, OMAP7XX_FLASH_CFG_1); | ||
323 | omap_writel(0x00000000, OMAP7XX_FLASH_ACFG_1); | ||
324 | |||
325 | /* | ||
326 | * Configure MPU_EXT_NIRQ IO in IO_CONF9 register, | ||
327 | * It is used as the Ethernet controller interrupt | ||
328 | */ | ||
329 | omap_writel(omap_readl(OMAP7XX_IO_CONF_9) & 0x1FFFFFFF, | ||
330 | OMAP7XX_IO_CONF_9); | ||
331 | |||
299 | fsample_init_smc91x(); | 332 | fsample_init_smc91x(); |
300 | 333 | ||
301 | if (gpio_request(FSAMPLE_NAND_RB_GPIO_PIN, "NAND ready") < 0) | 334 | if (gpio_request(FSAMPLE_NAND_RB_GPIO_PIN, "NAND ready") < 0) |
@@ -325,12 +358,6 @@ static void __init omap_fsample_init(void) | |||
325 | omap_register_i2c_bus(1, 100, NULL, 0); | 358 | omap_register_i2c_bus(1, 100, NULL, 0); |
326 | } | 359 | } |
327 | 360 | ||
328 | static void __init omap_fsample_init_irq(void) | ||
329 | { | ||
330 | omap1_init_common_hw(); | ||
331 | omap1_init_irq(); | ||
332 | } | ||
333 | |||
334 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ | 361 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ |
335 | static struct map_desc omap_fsample_io_desc[] __initdata = { | 362 | static struct map_desc omap_fsample_io_desc[] __initdata = { |
336 | { | 363 | { |
@@ -349,49 +376,18 @@ static struct map_desc omap_fsample_io_desc[] __initdata = { | |||
349 | 376 | ||
350 | static void __init omap_fsample_map_io(void) | 377 | static void __init omap_fsample_map_io(void) |
351 | { | 378 | { |
352 | omap1_map_common_io(); | 379 | omap15xx_map_io(); |
353 | iotable_init(omap_fsample_io_desc, | 380 | iotable_init(omap_fsample_io_desc, |
354 | ARRAY_SIZE(omap_fsample_io_desc)); | 381 | ARRAY_SIZE(omap_fsample_io_desc)); |
355 | |||
356 | /* Early, board-dependent init */ | ||
357 | |||
358 | /* | ||
359 | * Hold GSM Reset until needed | ||
360 | */ | ||
361 | omap_writew(omap_readw(OMAP7XX_DSP_M_CTL) & ~1, OMAP7XX_DSP_M_CTL); | ||
362 | |||
363 | /* | ||
364 | * UARTs -> done automagically by 8250 driver | ||
365 | */ | ||
366 | |||
367 | /* | ||
368 | * CSx timings, GPIO Mux ... setup | ||
369 | */ | ||
370 | |||
371 | /* Flash: CS0 timings setup */ | ||
372 | omap_writel(0x0000fff3, OMAP7XX_FLASH_CFG_0); | ||
373 | omap_writel(0x00000088, OMAP7XX_FLASH_ACFG_0); | ||
374 | |||
375 | /* | ||
376 | * Ethernet support through the debug board | ||
377 | * CS1 timings setup | ||
378 | */ | ||
379 | omap_writel(0x0000fff3, OMAP7XX_FLASH_CFG_1); | ||
380 | omap_writel(0x00000000, OMAP7XX_FLASH_ACFG_1); | ||
381 | |||
382 | /* | ||
383 | * Configure MPU_EXT_NIRQ IO in IO_CONF9 register, | ||
384 | * It is used as the Ethernet controller interrupt | ||
385 | */ | ||
386 | omap_writel(omap_readl(OMAP7XX_IO_CONF_9) & 0x1FFFFFFF, OMAP7XX_IO_CONF_9); | ||
387 | } | 382 | } |
388 | 383 | ||
389 | MACHINE_START(OMAP_FSAMPLE, "OMAP730 F-Sample") | 384 | MACHINE_START(OMAP_FSAMPLE, "OMAP730 F-Sample") |
390 | /* Maintainer: Brian Swetland <swetland@google.com> */ | 385 | /* Maintainer: Brian Swetland <swetland@google.com> */ |
391 | .atag_offset = 0x100, | 386 | .atag_offset = 0x100, |
392 | .map_io = omap_fsample_map_io, | 387 | .map_io = omap_fsample_map_io, |
388 | .init_early = omap1_init_early, | ||
393 | .reserve = omap_reserve, | 389 | .reserve = omap_reserve, |
394 | .init_irq = omap_fsample_init_irq, | 390 | .init_irq = omap1_init_irq, |
395 | .init_machine = omap_fsample_init, | 391 | .init_machine = omap_fsample_init, |
396 | .timer = &omap1_timer, | 392 | .timer = &omap1_timer, |
397 | MACHINE_END | 393 | MACHINE_END |