diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-10-26 21:30:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-10 07:18:07 -0500 |
commit | 30e9b95a8233c11f53e0763e339621271865a4ec (patch) | |
tree | 4f4b4db6aec99dd0c9ad2e81d3fa0d9d05029b09 /arch/blackfin/mach-bf533/boards/blackstamp.c | |
parent | 4de2bf8786ec8ec9a45b556e1ddf5c80c807a361 (diff) |
Blackfin: bf533: convert boards to gpio framework
We don't want people banging on MMRs directly. As for the ip0x board,
it shouldn't need to muck with the CS pin directly as the Blackfin SPI
bus master driver takes care of driving this.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/blackstamp.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/blackstamp.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/blackfin/mach-bf533/boards/blackstamp.c b/arch/blackfin/mach-bf533/boards/blackstamp.c index 20c102285bef..992f551f06a1 100644 --- a/arch/blackfin/mach-bf533/boards/blackstamp.c +++ b/arch/blackfin/mach-bf533/boards/blackstamp.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <asm/bfin5xx_spi.h> | 25 | #include <asm/bfin5xx_spi.h> |
26 | #include <asm/portmux.h> | 26 | #include <asm/portmux.h> |
27 | #include <asm/dpmc.h> | 27 | #include <asm/dpmc.h> |
28 | #include <mach/fio_flag.h> | ||
29 | 28 | ||
30 | /* | 29 | /* |
31 | * Name the Board for the /proc/cpuinfo | 30 | * Name the Board for the /proc/cpuinfo |
@@ -476,10 +475,16 @@ static int __init blackstamp_init(void) | |||
476 | return ret; | 475 | return ret; |
477 | 476 | ||
478 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | 477 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) |
479 | /* setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC */ | 478 | /* |
480 | bfin_write_FIO_DIR(bfin_read_FIO_DIR() | PF0); | 479 | * setup BF533_STAMP CPLD to route AMS3 to Ethernet MAC. |
481 | bfin_write_FIO_FLAG_S(PF0); | 480 | * the bfin-async-map driver takes care of flipping between |
482 | SSYNC(); | 481 | * flash and ethernet when necessary. |
482 | */ | ||
483 | ret = gpio_request(GPIO_PF0, "enet_cpld"); | ||
484 | if (!ret) { | ||
485 | gpio_direction_output(GPIO_PF0, 1); | ||
486 | gpio_free(GPIO_PF0); | ||
487 | } | ||
483 | #endif | 488 | #endif |
484 | 489 | ||
485 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 490 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |