summaryrefslogtreecommitdiff
path: root/board/atmel/sama5d4_xplained/sama5d4_xplained.c
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2017-04-13 10:31:16 +0800
committerSimon Glass <sjg@chromium.org>2017-04-13 14:44:52 -0600
commit6dbadb4d95ee1590eb46bdd634c0b0cc3c693a7f (patch)
treeb0e58aba9a496e1ae50c92c5af28f8fa210b36bb /board/atmel/sama5d4_xplained/sama5d4_xplained.c
parentfc977b94a4988bd83e079c54c59c0754f8301b7f (diff)
board: sama5d4_xplained: 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/atmel/sama5d4_xplained/sama5d4_xplained.c')
-rw-r--r--board/atmel/sama5d4_xplained/sama5d4_xplained.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/board/atmel/sama5d4_xplained/sama5d4_xplained.c
index 47f0bae8c1..6684276e05 100644
--- a/board/atmel/sama5d4_xplained/sama5d4_xplained.c
+++ b/board/atmel/sama5d4_xplained/sama5d4_xplained.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)
{