Skip to content

Commit

Permalink
add pocketchip u-boot patches
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSnowfield committed Jan 3, 2025
1 parent cca5c6b commit f681e13
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: TheSnowfield <[email protected]>
Date: Tue, 31 Dec 2024 11:25:21 +0000
Subject: Enable u-boot sunxi mmc support and ums feature for PocketChip

Signed-off-by: TheSnowfield <[email protected]>
---
configs/CHIP_defconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig
index cd9bdbfd36..49bae0d0e3 100644
--- a/configs/CHIP_defconfig
+++ b/configs/CHIP_defconfig
@@ -7,15 +7,18 @@ CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y
CONFIG_USB0_VBUS_PIN="PB10"
CONFIG_VIDEO_COMPOSITE=y
CONFIG_CHIP_DIP_SCAN=y
CONFIG_SPL_I2C=y
CONFIG_CMD_DFU=y
+CONFIG_CMD_MMC=y
+CONFIG_CMD_USB_MASS_STORAGE=y
CONFIG_DFU_RAM=y
CONFIG_SYS_I2C_MVTWSI=y
CONFIG_SYS_I2C_SLAVE=0x7f
CONFIG_SYS_I2C_SPEED=400000
-# CONFIG_MMC is not set
+CONFIG_MMC=y
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
CONFIG_AXP_ALDO3_VOLT=3300
CONFIG_AXP_ALDO4_VOLT=3300
CONFIG_CONS_INDEX=2
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
--
Created with Armbian build tools https://github.com/armbian/build

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: TheSnowfield <[email protected]>
Date: Tue, 31 Dec 2024 06:39:19 +0000
Subject: Add mmc2 controller

Signed-off-by: TheSnowfield <[email protected]>
---
arch/arm/dts/sun5i-r8-chip.dts | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm/dts/sun5i-r8-chip.dts b/arch/arm/dts/sun5i-r8-chip.dts
index 4192c23848..1b5702db0b 100644
--- a/arch/arm/dts/sun5i-r8-chip.dts
+++ b/arch/arm/dts/sun5i-r8-chip.dts
@@ -161,10 +161,19 @@
bus-width = <4>;
non-removable;
status = "okay";
};

+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_4bit_pc_pins>;
+ vmmc-supply = <&reg_vcc3v3>;
+ bus-width = <4>;
+ broken-cd;
+ status = "okay";
+};
+
&ohci0 {
status = "okay";
};

&otg_sram {
--
Created with Armbian build tools https://github.com/armbian/build

0 comments on commit f681e13

Please sign in to comment.