]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
at91: vinco: Enable DM_SPI
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 14 Mar 2018 13:16:37 +0000 (18:46 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 6 Apr 2018 20:11:09 +0000 (16:11 -0400)
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>
arch/arm/mach-at91/Kconfig
board/l+g/vinco/vinco.c

index b9e6946f72b25114363f8f6844de8425412b4564..17d60d0dbecab76f2c7378046d0949726d8a7500 100644 (file)
@@ -238,6 +238,7 @@ config TARGET_VINCO
        select SAMA5D4
        select SUPPORT_SPL
        select DM
+       select DM_SPI
 
 config TARGET_WB45N
        bool "Support Laird WB45N"
index a938a2c2e1d468023388a0c177d95c97b868c690..f427abf6c1f1c48210dae4159cff249dd77dd3cd 100644 (file)
@@ -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