diff --git a/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-defconfig.patch b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-defconfig.patch new file mode 100644 index 000000000000..9f71592e5571 --- /dev/null +++ b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-defconfig.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +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 <17957399+TheSnowfield@users.noreply.github.com> +--- + 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 + diff --git a/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-dts-add-mmc2.patch b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-dts-add-mmc2.patch new file mode 100644 index 000000000000..aff3f516377e --- /dev/null +++ b/patch/u-boot/u-boot-sunxi/board_pocketchip-sd/pocketchip-dts-add-mmc2.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +Date: Tue, 31 Dec 2024 06:39:19 +0000 +Subject: Add mmc2 controller + +Signed-off-by: TheSnowfield <17957399+TheSnowfield@users.noreply.github.com> +--- + 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 +