-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a757e26
commit 84cfeae
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-defconfig.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
37 changes: 37 additions & 0 deletions
37
patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-dts-add-mmc2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = <®_vcc3v3>; | ||
+ bus-width = <4>; | ||
+ broken-cd; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
&ohci0 { | ||
status = "okay"; | ||
}; | ||
|
||
&otg_sram { | ||
-- | ||
Created with Armbian build tools https://github.com/armbian/build | ||
|