]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: mini-emmc: Added clock configuration in the device tree
authorVipul Kumar <vipul.kumar@xilinx.com>
Mon, 26 Feb 2018 08:52:50 +0000 (14:22 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 26 Feb 2018 11:21:52 +0000 (12:21 +0100)
This patch added clock configuration for mini emmc in the
device tree and enabled CONFIG_MMC_SDHCI_ZYNQ in defconfig.
Without CONFIG_MMC_SDHCI_ZYNQ, the device was failed to
register. Without this clk configuration, mmc device was
failed to get clk. CONFIG_DOS_PARTITION will be enabled
through Kconfig and hence removed from header file.

After adding all these changes, emmc is working fine.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-mini-emmc0.dts
arch/arm/dts/zynqmp-mini-emmc1.dts
configs/xilinx_zynqmp_mini_emmc0_defconfig
configs/xilinx_zynqmp_mini_emmc1_defconfig
include/configs/xilinx_zynqmp_mini.h

index bf160d102ee1a5775389bba70311db5276687561..9c7766dd71e7c5acc91f537ba59b71a2fc40d70b 100644 (file)
                u-boot,dm-pre-reloc;
        };
 
+       clk_xin: clk_xin {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <200000000>;
+       };
+
        amba: amba {
                compatible = "simple-bus";
                #address-cells = <2>;
@@ -48,6 +54,7 @@
                        status = "disabled";
                        reg = <0x0 0xff160000 0x0 0x1000>;
                        clock-names = "clk_xin", "clk_ahb";
+                       clocks = <&clk_xin &clk_xin>;
                        xlnx,device_id = <0>;
                };
        };
index 8d2378c96a8ada12e76e1de5184441b43b59f6e9..a2ad7158b7af729918aa8d656dafbd0fdec58532 100644 (file)
                u-boot,dm-pre-reloc;
        };
 
+       clk_xin: clk_xin {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <200000000>;
+       };
+
        amba: amba {
                compatible = "simple-bus";
                #address-cells = <2>;
@@ -48,6 +54,7 @@
                        status = "disabled";
                        reg = <0x0 0xff170000 0x0 0x1000>;
                        clock-names = "clk_xin", "clk_ahb";
+                       clocks = <&clk_xin &clk_xin>;
                        xlnx,device_id = <1>;
                };
        };
index 8bc079bc6cd26731848bbe849b40b1ca30c60b2c..d3ee7f48f80e4870d447a4b060f8b50211044cb6 100644 (file)
@@ -42,4 +42,5 @@ CONFIG_OF_EMBED=y
 # CONFIG_DM_DEVICE_REMOVE is not set
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ZYNQ=y
 # CONFIG_EFI_LOADER is not set
index c4594e051cdeb4f4a41e8bae8857df52bd5a977f..f563d7a6705d532f3fc0f244e3011a655dbdd2c4 100644 (file)
@@ -42,4 +42,5 @@ CONFIG_OF_EMBED=y
 # CONFIG_DM_DEVICE_REMOVE is not set
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ZYNQ=y
 # CONFIG_EFI_LOADER is not set
index 29235d84b8046f3515727cb2a28498d4590f3874..2624588330afbf11b2868130fa87eeadf9114b19 100644 (file)
@@ -34,7 +34,6 @@
 #undef CONFIG_GZIP
 #undef CONFIG_CMD_SPL
 #undef CONFIG_CMD_ENV
-#undef CONFIG_DOS_PARTITION
 #undef CONFIG_MP
 #undef CONFIG_SYS_INIT_SP_ADDR
 #undef CONFIG_SYS_LONGHELP
@@ -94,7 +93,6 @@
 # define CONFIG_ENV_SIZE               0x10000
 # define CONFIG_SYS_INIT_SP_ADDR       CONFIG_SYS_TEXT_BASE
 # define CONFIG_SYS_MALLOC_LEN         0x800000
-# define CONFIG_DOS_PARTITION
 # define CONFIG_PARTITIONS
 # define CONFIG_SYS_LONGHELP
 # undef CONFIG_ENV_IS_IN_FAT