summaryrefslogtreecommitdiff
path: root/board/l+g
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2018-03-14 18:46:37 +0530
committerTom Rini <trini@konsulko.com>2018-04-06 16:11:09 -0400
commitc60bfe9b0cb5f01368eca3ee35ebacee771628aa (patch)
tree1b3f51bb8156d8e1be50a61644bba1c53e36dae9 /board/l+g
parent1e85626788fff96016a76ebab145f3cb95ab3ecf (diff)
downloadu-boot-c60bfe9b0cb5f01368eca3ee35ebacee771628aa.tar.gz
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: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'board/l+g')
-rw-r--r--board/l+g/vinco/vinco.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/l+g/vinco/vinco.c b/board/l+g/vinco/vinco.c
index a938a2c2e1..f427abf6c1 100644
--- a/board/l+g/vinco/vinco.c
+++ b/board/l+g/vinco/vinco.c
@@ -33,7 +33,8 @@
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)
{
return bus == 0 && cs == 0;
@@ -166,7 +167,7 @@ int board_init(void)
/* adress of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
-#ifdef CONFIG_ATMEL_SPI
+#ifndef CONFIG_DM_SPI
vinco_spi0_hw_init();
#endif