diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2009-02-04 03:49:45 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-02-04 03:49:45 -0500 |
commit | b52dae3139066765a7d96563e9cd33d9e60efe33 (patch) | |
tree | da26ba9d26fc0c89bd19261815cf7dfa09499152 /arch/blackfin/kernel/bfin_gpio.c | |
parent | 5b93e13ffa8b06ff80eaa8e0ae92e44ebf61cde9 (diff) |
Blackfin arch: Fix bug - Run "reboot" hangs bf518-ezbrd
[Mike Frysinger <vapier.adi@gmail.com>:
- setup P_DEFAULT_BOOT_SPI_CS for every arch based on
the default bootrom behavior and convert all our boards
to it
- revert previous anomaly change ... bf51x is not affected
by anomaly 05000353]
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/kernel/bfin_gpio.c')
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index 7f69f43be987..44b6c9da6c35 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c | |||
@@ -1172,10 +1172,9 @@ EXPORT_SYMBOL(bfin_gpio_get_value); | |||
1172 | * lives here as we need to force all the GPIO states w/out going through | 1172 | * lives here as we need to force all the GPIO states w/out going through |
1173 | * BUG() checks and such. | 1173 | * BUG() checks and such. |
1174 | */ | 1174 | */ |
1175 | void bfin_gpio_reset_spi0_ssel1(void) | 1175 | void bfin_reset_boot_spi_cs(unsigned short pin) |
1176 | { | 1176 | { |
1177 | u16 gpio = P_IDENT(P_SPI0_SSEL1); | 1177 | unsigned short gpio = P_IDENT(pin); |
1178 | |||
1179 | port_setup(gpio, GPIO_USAGE); | 1178 | port_setup(gpio, GPIO_USAGE); |
1180 | gpio_array[gpio_bank(gpio)]->data_set = gpio_bit(gpio); | 1179 | gpio_array[gpio_bank(gpio)]->data_set = gpio_bit(gpio); |
1181 | AWA_DUMMY_READ(data_set); | 1180 | AWA_DUMMY_READ(data_set); |