[U-Boot] [PATCH] arm64: zynqmp: Fix mmc node names to be in sync with kernel
Michal Simek
michal.simek at xilinx.com
Thu Jan 3 12:35:48 UTC 2019
From: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>
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 at xilinx.com>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
arch/arm/dts/zynqmp.dtsi | 4 ++--
board/xilinx/zynqmp/zynqmp.c | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/zynqmp.dtsi b/arch/arm/dts/zynqmp.dtsi
index 80ac9a6ac7b0..831d6e1ecc4d 100644
--- a/arch/arm/dts/zynqmp.dtsi
+++ b/arch/arm/dts/zynqmp.dtsi
@@ -700,7 +700,7 @@
/* dma-coherent; */
};
- sdhci0: sdhci at ff160000 {
+ sdhci0: mmc at ff160000 {
u-boot,dm-pre-reloc;
compatible = "xlnx,zynqmp-8.9a", "arasan,sdhci-8.9a";
status = "disabled";
@@ -715,7 +715,7 @@
nvmem-cell-names = "soc_revision";
};
- sdhci1: sdhci at ff170000 {
+ sdhci1: mmc at ff170000 {
u-boot,dm-pre-reloc;
compatible = "xlnx,zynqmp-8.9a", "arasan,sdhci-8.9a";
status = "disabled";
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 1dcb26db95e1..41e88b03f9d1 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 at ff160000", &dev) &&
+ uclass_get_device_by_name(UCLASS_MMC,
"sdhci at 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 at ff170000", &dev) &&
+ uclass_get_device_by_name(UCLASS_MMC,
"sdhci at ff170000", &dev)) {
puts("Boot from SD1 but without SD1 enabled!\n");
return -1;
--
1.9.1
More information about the U-Boot
mailing list