[U-Boot] [PATCH v2 1/3] arm: atmel: at91sam9x5: cleanup cs configure for spi

Bo Shen voice.shen at atmel.com
Tue Dec 17 10:34:43 CET 2013


As the cs for spi is worked in gpio mode, so no need to configure
it as peripheral and then configure to gpio. Configure it to gpio
directly.

Signed-off-by: Bo Shen <voice.shen at atmel.com>
---
Change in v2:
  - only move line to configure it to peripheral
---
 board/atmel/at91sam9x5ek/at91sam9x5ek.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
index 6f67c34..17a2a40 100644
--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c
+++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
@@ -271,7 +271,6 @@ int board_init(void)
 #endif
 
 #ifdef CONFIG_ATMEL_SPI
-	at91_spi0_hw_init(1 << 0);
 	at91_spi0_hw_init(1 << 4);
 #endif
 
-- 
1.7.9.5



More information about the U-Boot mailing list