summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2017-04-13 02:31:19 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-13 20:44:52 (GMT)
commitef33aa3dca7364d409518f8394bd51af60fc437f (patch)
tree43d69f4a345dadb6cbcdf25f99d1135f4904e345 /board
parent334794f58400e1a4fccd61dd8066c4f94f4605e7 (diff)
downloadu-boot-ef33aa3dca7364d409518f8394bd51af60fc437f.tar.xz
board: sama5d4ek: 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> Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
Diffstat (limited to 'board')
-rw-r--r--board/atmel/sama5d4ek/sama5d4ek.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c
index d1b5ff5..a0e4bb7 100644
--- a/board/atmel/sama5d4ek/sama5d4ek.c
+++ b/board/atmel/sama5d4ek/sama5d4ek.c
@@ -28,10 +28,12 @@
DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_ATMEL_SPI
+#ifndef CONFIG_DM_SPI
int spi_cs_is_valid(unsigned int bus, unsigned int cs)
{
return bus == 0 && cs == 0;
}
+#endif
void spi_cs_activate(struct spi_slave *slave)
{