diff --git a/patch/u-boot/u-boot-sunxi/add-orangepi-zero.patch b/patch/u-boot/u-boot-sunxi/add-orangepi-zero.patch index d06f6dc731..488009f65c 100644 --- a/patch/u-boot/u-boot-sunxi/add-orangepi-zero.patch +++ b/patch/u-boot/u-boot-sunxi/add-orangepi-zero.patch @@ -1,6 +1,26 @@ +diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile +index 836a8c4d..9d2da6e0 100644 +--- a/arch/arm/dts/Makefile ++++ b/arch/arm/dts/Makefile +@@ -260,6 +260,7 @@ dtb-$(CONFIG_MACH_SUN8I_A83T) += \ + sun8i-a83t-cubietruck-plus.dtb \ + sun8i-a83t-sinovoip-bpi-m3.dtb + dtb-$(CONFIG_MACH_SUN8I_H3) += \ ++ sun8i-h2plus-orangepi-zero.dtb \ + sun8i-h3-bananapi-m2-plus.dtb \ + sun8i-h3-orangepi-2.dtb \ + sun8i-h3-orangepi-lite.dtb \ +diff --git a/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts b/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts +new file mode 100644 +index 00000000..9e468904 +--- /dev/null ++++ b/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts +@@ -0,0 +1,2 @@ ++ ++#include "sun8i-h3-orangepi-one.dts" diff --git a/configs/orangepi_zero_defconfig b/configs/orangepi_zero_defconfig new file mode 100644 -index 00000000..667804b4 +index 00000000..bdaffa88 --- /dev/null +++ b/configs/orangepi_zero_defconfig @@ -0,0 +1,18 @@ @@ -10,7 +30,7 @@ index 00000000..667804b4 +CONFIG_DRAM_CLK=408 +CONFIG_DRAM_ZQ=3881979 +CONFIG_DRAM_ODT_EN=y -+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-orangepi-one" ++CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2plus-orangepi-zero" +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set +CONFIG_SPL=y +# CONFIG_SPL_SPI_SUPPORT=y