diff options
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 |