From: Albin Tonnerre Date: Tue, 1 Sep 2009 09:26:20 +0000 (+0200) Subject: at91sam9260/afeb9260: Fix SPI initialization X-Git-Tag: v2009.11-rc1~183^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=50b5fff55827946c86a60db8b21a9358be720666;p=u-boot at91sam9260/afeb9260: Fix SPI initialization Commit 7ebafb7ec1a0285af8380623c009576f92583b98 introduced a mistake in the spi init function call for those boards. This patch fixes this. Signed-off-by: Albin Tonnerre --- diff --git a/board/afeb9260/afeb9260.c b/board/afeb9260/afeb9260.c index 94a65c27a2..4652672aba 100644 --- a/board/afeb9260/afeb9260.c +++ b/board/afeb9260/afeb9260.c @@ -149,7 +149,7 @@ int board_init(void) #ifdef CONFIG_CMD_NAND afeb9260_nand_hw_init(); #endif - at91_spi0_hw_init((1 << 0) || (1 << 1)); + at91_spi0_hw_init((1 << 0) | (1 << 1)); #ifdef CONFIG_MACB afeb9260_macb_hw_init(); #endif diff --git a/board/atmel/at91sam9260ek/at91sam9260ek.c b/board/atmel/at91sam9260ek/at91sam9260ek.c index c10ad72534..ed4736027c 100644 --- a/board/atmel/at91sam9260ek/at91sam9260ek.c +++ b/board/atmel/at91sam9260ek/at91sam9260ek.c @@ -160,7 +160,7 @@ int board_init(void) at91sam9260ek_nand_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH - at91_spi0_hw_init((1 << 0) || (1 << 1)); + at91_spi0_hw_init((1 << 0) | (1 << 1)); #endif #ifdef CONFIG_MACB at91sam9260ek_macb_hw_init();