diff --git a/patch/u-boot/u-boot-sunxi/add_emmc_orangepiwin.patch b/patch/u-boot/u-boot-sunxi/add_emmc_orangepiwin.patch new file mode 100644 index 0000000000..407ba28bc7 --- /dev/null +++ b/patch/u-boot/u-boot-sunxi/add_emmc_orangepiwin.patch @@ -0,0 +1,87 @@ +diff --git a/arch/arm/dts/sun50i-a64-orangepi-win.dts b/arch/arm/dts/sun50i-a64-orangepi-win.dts +old mode 100644 +new mode 100755 +index 2c39d10..819fd97 +--- a/arch/arm/dts/sun50i-a64-orangepi-win.dts ++++ b/arch/arm/dts/sun50i-a64-orangepi-win.dts +@@ -52,6 +52,7 @@ + + aliases { + serial0 = &uart0; ++ serial1 = &uart1; + }; + + chosen { +@@ -83,12 +84,44 @@ + status = "okay"; + }; + ++&i2c1 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2c1_pins>; ++ status = "okay"; ++}; ++ ++ ++&i2c1_pins { ++ bias-pull-up; ++}; ++ + &mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_vcc3v3>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; ++ disable-wp; ++ bus-width = <4>; ++ status = "okay"; ++}; ++ ++&mmc1 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc1_pins>; ++ vmmc-supply = <®_vcc3v3>; ++ bus-width = <4>; ++ non-removable; ++ status = "okay"; ++}; ++ ++&mmc2 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc2_pins>; ++ vmmc-supply = <®_vcc3v3>; ++ bus-width = <8>; ++ non-removable; ++ cap-mmc-hw-reset; + status = "okay"; + }; + +@@ -109,6 +142,12 @@ + status = "okay"; + }; + ++&uart1 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; ++ status = "okay"; ++}; ++ + &usbphy { + usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; +diff --git a/configs/orangepi_win_defconfig b/configs/orangepi_win_defconfig +old mode 100644 +new mode 100755 +index 7039d68..29006a8 +--- a/configs/orangepi_win_defconfig ++++ b/configs/orangepi_win_defconfig +@@ -3,6 +3,8 @@ CONFIG_ARCH_SUNXI=y + CONFIG_MACH_SUN50I=y + CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER=y + CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-orangepi-win" ++CONFIG_MMC0_CD_PIN="PH13" ++CONFIG_MMC_SUNXI_SLOT_EXTRA=2 + # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set + CONFIG_SPL=y + # CONFIG_CMD_FLASH is not set