Skip to content
Snippets Groups Projects
Commit c60bfe9b authored by Jagan Teki's avatar Jagan Teki Committed by Tom Rini
Browse files

at91: vinco: Enable DM_SPI


AT91 Vinco board uses atmel spi driver, enable DM_SPI to
use dm functionality.

Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 1e856267
No related branches found
No related tags found
No related merge requests found
...@@ -238,6 +238,7 @@ config TARGET_VINCO ...@@ -238,6 +238,7 @@ config TARGET_VINCO
select SAMA5D4 select SAMA5D4
select SUPPORT_SPL select SUPPORT_SPL
select DM select DM
select DM_SPI
config TARGET_WB45N config TARGET_WB45N
bool "Support Laird WB45N" bool "Support Laird WB45N"
......
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_ATMEL_SPI /* FIXME gpio code here need to handle through DM_GPIO */
#ifndef CONFIG_DM_SPI
int spi_cs_is_valid(unsigned int bus, unsigned int cs) int spi_cs_is_valid(unsigned int bus, unsigned int cs)
{ {
return bus == 0 && cs == 0; return bus == 0 && cs == 0;
...@@ -166,7 +167,7 @@ int board_init(void) ...@@ -166,7 +167,7 @@ int board_init(void)
/* adress of boot parameters */ /* adress of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
#ifdef CONFIG_ATMEL_SPI #ifndef CONFIG_DM_SPI
vinco_spi0_hw_init(); vinco_spi0_hw_init();
#endif #endif
......
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