Skip to contentSkip to conversation

include: configs: Add gunzip size for HiKey board

PATCH Superseded Manivannan Sadhasivam 3 participants 8 messages Dec 20, 2018 – Dec 27, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 1376d6155d..572a52fad5 100644
@@ -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
#1 lore raw

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
index 8dc5a2823e..cced2b4802 100644
@@ -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
#3 lore raw

PATCH 3/3 arm: dts: Add MMC nodes for HiKey board

In reply to 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.

---
 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
index 24f09257af..9c8f2467dc 100644
@@ -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
index a610ccb634..501c8906fd 100644
@@ -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
#4 lore raw

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.

---
 arch/arm/dts/hi6220-hikey.dts | 13 +++++++++++++
 arch/arm/dts/hi6220.dtsi      | 18 ++++++++++++++++++
 2 files changed, 31 insertions(+)
#5 lore raw

PATCH 3/3 arm: dts: Add MMC nodes for HiKey board

In reply to Manivannan Sadhasivam
Quoted 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.

---
 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
index 24f09257af..9c8f2467dc 100644

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>
#6 lore raw

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.

---
 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
index 24f09257af..9c8f2467dc 100644
@@ -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.dtsi file 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