diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2019-01-03 15:44:24 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-01-24 10:03:42 +0100 |
commit | e7c9de6617e6a51e6502920c5b3e5a41a0bf6973 (patch) | |
tree | 05aadac5848febaf37985415b01f5380f42164fb /board/xilinx/zynqmp | |
parent | 10598580612cbaee2298bddd77e9a51df5a2943d (diff) | |
download | u-boot-e7c9de6617e6a51e6502920c5b3e5a41a0bf6973.tar.gz u-boot-e7c9de6617e6a51e6502920c5b3e5a41a0bf6973.tar.bz2 u-boot-e7c9de6617e6a51e6502920c5b3e5a41a0bf6973.zip |
arm64: zynqmp: Fix mmc node names to be in sync with kernel
This patches renames sd nodes in dts to be in line with
kernel. This patch also modifies the references for the same
in code.
It checks mmc first to have no time penalty for new DT node names based
on left-to-right expression evaluation.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/zynqmp')
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 1dcb26db95..41e88b03f9 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -588,6 +588,8 @@ int board_late_init(void) case SD_MODE: puts("SD_MODE\n"); if (uclass_get_device_by_name(UCLASS_MMC, + "mmc@ff160000", &dev) && + uclass_get_device_by_name(UCLASS_MMC, "sdhci@ff160000", &dev)) { puts("Boot from SD0 but without SD0 enabled!\n"); return -1; @@ -604,6 +606,8 @@ int board_late_init(void) case SD_MODE1: puts("SD_MODE1\n"); if (uclass_get_device_by_name(UCLASS_MMC, + "mmc@ff170000", &dev) && + uclass_get_device_by_name(UCLASS_MMC, "sdhci@ff170000", &dev)) { puts("Boot from SD1 but without SD1 enabled!\n"); return -1; |