Skip to content
Snippets Groups Projects
Commit 50b5fff5 authored by Albin Tonnerre's avatar Albin Tonnerre Committed by Jean-Christophe PLAGNIOL-VILLARD
Browse files

at91sam9260/afeb9260: Fix SPI initialization


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

Signed-off-by: default avatarAlbin Tonnerre <albin.tonnerre@free-electrons.com>
parent f3d4f887
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment