Skip to contentSkip to conversation

at91sam9260/afeb9260: Fix SPI initialization

PATCH New Albin Tonnerre 2 participants 2 messages Sep 1, 2009 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 at91sam9260/afeb9260: Fix SPI initialization

Commit 7ebafb7ec1a0285af8380623c009576f92583b98 introduced a mistake in the spi init function call for those boards. This patch fixes this.

---
 board/afeb9260/afeb9260.c                 |    2 +-
 board/atmel/at91sam9260ek/at91sam9260ek.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
board/afeb9260/afeb9260.c +1 -1
index 94a65c2..4652672 100644
@@ -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
board/atmel/at91sam9260ek/at91sam9260ek.c +1 -1
index c10ad72..ed47360 100644
@@ -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();
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 1/1 at91sam9260/afeb9260: Fix SPI initialization

Quoted 8 lines · Albin Tonnerre

Commit 7ebafb7ec1a0285af8380623c009576f92583b98 introduced a mistake in the spi init function call for those boards. This patch fixes this.

---
 board/afeb9260/afeb9260.c                 |    2 +-
 board/atmel/at91sam9260ek/at91sam9260ek.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

applied to u-boot-arm

Best Regards,
J.