summaryrefslogtreecommitdiff
path: root/board/atmel
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2017-04-14 00:51:45 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-15 02:10:35 (GMT)
commit1878804a2bd213695d393ed3e01607a591b98862 (patch)
tree5db6923c825da862de1fa47edd0f9ca1ecca34ce /board/atmel
parent098d15bc773b5d86b04bd66a820583543c750aea (diff)
downloadu-boot-1878804a2bd213695d393ed3e01607a591b98862.tar.xz
board: sama5d3_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> Fix build error with sama5d3_xplained_mmc: Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/atmel')
-rw-r--r--board/atmel/sama5d3_xplained/sama5d3_xplained.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/atmel/sama5d3_xplained/sama5d3_xplained.c b/board/atmel/sama5d3_xplained/sama5d3_xplained.c
index 2b9da91..4c339a0 100644
--- a/board/atmel/sama5d3_xplained/sama5d3_xplained.c
+++ b/board/atmel/sama5d3_xplained/sama5d3_xplained.c
@@ -136,7 +136,9 @@ int board_mmc_init(bd_t *bis)
void spl_board_init(void)
{
#ifdef CONFIG_SYS_USE_MMC
+#ifdef CONFIG_GENERIC_ATMEL_MCI
sama5d3_xplained_mci0_hw_init();
+#endif
#elif CONFIG_SYS_USE_NANDFLASH
sama5d3_xplained_nand_hw_init();
#endif