include: configs: Add gunzip size for HiKey board
Subsystems (2)
PATCH 1/3 include: configs: Add gunzip size for HiKey board
Default 8MB gunzip size is not enough to load the release kernel, hence fix 64MB size for uncompressing the kernel.
--- include/configs/hikey.h | 2 ++ 1 file changed, 2 insertions(+)
include/configs/hikey.h +2 -0
@@ -18,6 +18,8 @@#define CONFIG_REMAKE_ELF +#define CONFIG_SYS_BOOTM_LEN SZ_64M +/* Physical Memory Map */ /* CONFIG_SYS_TEXT_BASE needs to align with where ATF loads bl33.bin */
Signature · 1 line
2.17.1
PATCH 2/3 mmc: Convert HI6220 MMC driver to driver model
Convert HiSilicon HI6220 MMC driver based on DWMMC IP to driver model.
--- configs/hikey_defconfig | 1 + drivers/mmc/hi6220_dw_mmc.c | 100 +++++++++++++++++++++++++----------- 2 files changed, 70 insertions(+), 31 deletions(-)
configs/hikey_defconfig +1 -0
@@ -18,6 +18,7 @@ CONFIG_DEFAULT_DEVICE_TREE="hi6220-hikey" CONFIG_ENV_IS_IN_FAT=y CONFIG_ENV_FAT_INTERFACE="mmc" CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" +CONFIG_DM_MMC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_K3=y CONFIG_CONS_INDEX=4
drivers/mmc/hi6220_dw_mmc.c +69 -31
120 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 2/3 mmc: Convert HI6220 MMC driver to driver model
Quoted 9 lines · Manivannan Sadhasivam
Convert HiSilicon HI6220 MMC driver based on DWMMC IP to driver model.
Signed-off-by Manivannan Sadhasivam <[email protected]>--- configs/hikey_defconfig | 1 + drivers/mmc/hi6220_dw_mmc.c | 100 +++++++++++++++++++++++++----------- 2 files changed, 70 insertions(+), 31 deletions(-)
PATCH 3/3 arm: dts: Add MMC nodes for HiKey board
In reply to Manivannan SadhasivamAdd MMC nodes for HiKey board based on HI6220 SoC. There are two MMC controllers in this SoC, first one used for eMMC and second one used for SD card.
--- arch/arm/dts/hi6220-hikey.dts | 13 +++++++++++++ arch/arm/dts/hi6220.dtsi | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+)
arch/arm/dts/hi6220-hikey.dts +13 -0
@@ -40,6 +40,19 @@ }; }; +&mmc0 { + u-boot,dm-pre-reloc; + status = "okay"; + non-removable; + bus-width = <8>; +}; + +&mmc1 { + u-boot,dm-pre-reloc; + status = "okay"; + bus-width = <4>; +}; + &uart2 { label = "LS-UART0"; };
arch/arm/dts/hi6220.dtsi +18 -0
@@ -162,6 +162,24 @@ #clock-cells = <1>; }; + mmc0: dwmmc at f723d000 { + compatible = "hisilicon,hi6220-dw-mshc"; + reg = <0x0 0xf723d000 0x0 0x1000>; + interrupts = <0x0 0x48 0x4>; + clocks = <&sys_ctrl 2>, <&sys_ctrl 1>; + clock-names = "ciu", "biu"; + status = "disabled"; + }; + + mmc1: dwmmc at f723e000 { + compatible = "hisilicon,hi6220-dw-mshc"; + reg = <0x0 0xf723e000 0x0 0x1000>; + interrupts = <0x0 0x49 0x4>; + clocks = <&sys_ctrl 4>, <&sys_ctrl 3>; + clock-names = "ciu", "biu"; + status = "disabled"; + }; + uart0: uart at f8015000 { /* console */ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xf8015000 0x0 0x1000>;
Signature · 1 line
2.17.1
PATCH 3/3 arm: dts: Add MMC nodes for HiKey board
Quoted 11 lines · Manivannan Sadhasivam
Add MMC nodes for HiKey board based on HI6220 SoC. There are two MMC controllers in this SoC, first one used for eMMC and second one used for SD card.
Signed-off-by Manivannan Sadhasivam <[email protected]>--- arch/arm/dts/hi6220-hikey.dts | 13 +++++++++++++ arch/arm/dts/hi6220.dtsi | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+)
PATCH 3/3 arm: dts: Add MMC nodes for HiKey board
In reply to Manivannan SadhasivamQuoted 15 lines · Manivannan Sadhasivam
Add MMC nodes for HiKey board based on HI6220 SoC. There are two MMC controllers in this SoC, first one used for eMMC and second one used for SD card.
Signed-off-by Manivannan Sadhasivam <[email protected]>--- arch/arm/dts/hi6220-hikey.dts | 13 +++++++++++++ arch/arm/dts/hi6220.dtsi | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+)arch/arm/dts/hi6220-hikey.dts +0
-0
arch/arm/dts/hi6220-hikey.dts line 44
Quoted 5 lines
arch/arm/dts/hi6220-hikey.dts +2
-0@@ -40,6 +40,19 @@ }; }; +&mmc0 { + u-boot,dm-pre-reloc;
Looks like hikey needs to be updated to have a -u-boot.dtsi file for these kind of changes so that the core of the dts files can be synced from Linux unchanged, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181226/cca3036f/attachment.sig>
PATCH 3/3 arm: dts: Add MMC nodes for HiKey board
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 18 lines · Manivannan Sadhasivam
Add MMC nodes for HiKey board based on HI6220 SoC. There are two MMC controllers in this SoC, first one used for eMMC and second one used for SD card.
Signed-off-by Manivannan Sadhasivam <[email protected]>--- arch/arm/dts/hi6220-hikey.dts | 13 +++++++++++++ arch/arm/dts/hi6220.dtsi | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+)arch/arm/dts/hi6220-hikey.dts +0
-0@@ -40,6 +40,19 @@ }; };
Quoted 7 lines
arch/arm/dts/hi6220-hikey.dts line 44
Quoted 2 lines
arch/arm/dts/hi6220-hikey.dts +2
-0+&mmc0 { + u-boot,dm-pre-reloc;Looks like hikey needs to be updated to have a
-u-boot.dtsifile for these kind of changes so that the core of the dts files can be synced from Linux unchanged, thanks!
Agree! Will add this in next revision.
Thanks,
Mani
Quoted 2 lines
Signature · 1 line
Tom
PATCH 1/3 include: configs: Add gunzip size for HiKey board
In reply to Manivannan SadhasivamQuoted 8 lines · Manivannan Sadhasivam
Default 8MB gunzip size is not enough to load the release kernel, hence fix 64MB size for uncompressing the kernel.
Signed-off-by Manivannan Sadhasivam <[email protected]>--- include/configs/hikey.h | 2 ++ 1 file changed, 2 insertions(+)