]> git.sur5r.net Git - u-boot/blobdiff - board/atmel/sama5d3xek/sama5d3xek.c
board: sama5d3xek: Update to support DM/DT
[u-boot] / board / atmel / sama5d3xek / sama5d3xek.c
index 134c2fe1eb5fecea9e4daa1bc0bdd9efbb201eaf..1d96149921b95eef7d10d7f47344667483663fdb 100644 (file)
@@ -331,6 +331,7 @@ int board_mmc_init(bd_t *bis)
 #ifdef CONFIG_ATMEL_SPI
 #include <spi.h>
 
+#ifndef CONFIG_DM_SPI
 int spi_cs_is_valid(unsigned int bus, unsigned int cs)
 {
        return bus == 0 && cs < 4;
@@ -367,6 +368,7 @@ void spi_cs_deactivate(struct spi_slave *slave)
                break;
        }
 }
+#endif
 #endif /* CONFIG_ATMEL_SPI */
 
 #ifdef CONFIG_BOARD_LATE_INIT