diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-05-21 06:09:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-21 12:50:22 -0400 |
commit | c0fc525dcc407a516132fc11af82375319ebdadb (patch) | |
tree | 780ce2b81784bbb8b1aa6cd3dca6dfb23938458c /arch/blackfin/mach-bf533/boards/stamp.c | |
parent | 95e493c00ac0d2371c3f627fdb99d776d29a8166 (diff) |
Blackfin arch: move board specific setup out of common init code and into the board specific init code
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index 7d3dfcbc54aa..9a472fe15833 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -338,12 +338,25 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
338 | 338 | ||
339 | static int __init stamp_init(void) | 339 | static int __init stamp_init(void) |
340 | { | 340 | { |
341 | int ret; | ||
342 | |||
341 | printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__); | 343 | printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__); |
342 | platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); | 344 | ret = platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); |
345 | if (ret < 0) | ||
346 | return ret; | ||
347 | |||
348 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | ||
349 | # if defined(CONFIG_BFIN_SHARED_FLASH_ENET) | ||
350 | /* setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC */ | ||
351 | bfin_write_FIO_DIR(bfin_read_FIO_DIR() | (1 << CONFIG_ENET_FLASH_PIN)); | ||
352 | bfin_write_FIO_FLAG_S(1 << CONFIG_ENET_FLASH_PIN); | ||
353 | SSYNC(); | ||
354 | # endif | ||
355 | #endif | ||
356 | |||
343 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 357 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
344 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 358 | return spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |
345 | #endif | 359 | #endif |
346 | return 0; | ||
347 | } | 360 | } |
348 | 361 | ||
349 | arch_initcall(stamp_init); | 362 | arch_initcall(stamp_init); |