summaryrefslogtreecommitdiff
path: root/board/atmel/sama5d3xek/sama5d3xek.c
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2017-04-14 08:51:42 +0800
committerSimon Glass <sjg@chromium.org>2017-04-14 20:09:28 -0600
commita97cb06154d7854e677f2fac815f2600e593ba11 (patch)
tree9bb0e95e48a6a0c9b08d5de5f792fbd93e82481a /board/atmel/sama5d3xek/sama5d3xek.c
parentffe2052d6e8add8ea66a7d1647255aa28715f067 (diff)
board: sama5d3xek: Update to support DM/DT
Update the configuration files to support the device tree and driver model, so do SPL. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Add back CONFIG_PHY_MICREL to prevent a build error: Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/atmel/sama5d3xek/sama5d3xek.c')
-rw-r--r--board/atmel/sama5d3xek/sama5d3xek.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c
index 134c2fe1eb..1d96149921 100644
--- a/board/atmel/sama5d3xek/sama5d3xek.c
+++ b/board/atmel/sama5d3xek/sama5d3xek.c
@@ -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