Readd OPi Zero+2-H3 u-boot defconfig

This commit is contained in:
zador-blood-stained 2017-05-09 15:50:37 +03:00
parent 8950127007
commit 40061e1ff7

View File

@ -1,41 +1,18 @@
diff --git a/configs/orangepi-zeroplus_defconfig b/configs/orangepi-zeroplus_defconfig
new file mode 100644
index 0000000..61fe8c6
--- /dev/null
+++ b/configs/orangepi-zeroplus_defconfig
@@ -0,0 +1,17 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=408
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-orangepi-zeroplus"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_CONSOLE_MUX=y
+CONFIG_SPL=y
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+CONFIG_SUN8I_EMAC=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_CLK_FREQ=480000000
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index eb68c20..ee14b41 100644
index f3f53f3e29..7a666ef045 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -293,6 +293,7 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \
@@ -303,6 +303,7 @@ dtb-$(CONFIG_MACH_SUN8I_H3) += \
sun8i-h3-orangepi-pc-plus.dtb \
sun8i-h3-orangepi-plus.dtb \
sun8i-h3-orangepi-plus2e.dtb \
+ sun8i-h3-orangepi-zeroplus.dtb \
sun8i-h3-nanopi-neo.dtb
dtb-$(CONFIG_MACH_SUN50I) += \
sun50i-a64-pine64-plus.dtb \
sun8i-h3-nanopi-neo.dtb \
sun8i-h3-nanopi-neo-air.dtb
dtb-$(CONFIG_MACH_SUN8I_R40) += \
diff --git a/arch/arm/dts/sun8i-h3-orangepi-zeroplus.dts b/arch/arm/dts/sun8i-h3-orangepi-zeroplus.dts
new file mode 100644
index 0000000..61fe8c6
index 0000000000..9cc48c2536
--- /dev/null
+++ b/arch/arm/dts/sun8i-h3-orangepi-zeroplus.dts
@@ -0,0 +1,149 @@
@ -188,3 +165,26 @@ index 0000000..61fe8c6
+ status = "okay";
+};
+
diff --git a/configs/orangepi-zeroplus_defconfig b/configs/orangepi-zeroplus_defconfig
new file mode 100644
index 0000000000..3bfcf619b1
--- /dev/null
+++ b/configs/orangepi-zeroplus_defconfig
@@ -0,0 +1,17 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SPL_SPI_FLASH_SUPPORT=y
+CONFIG_MACH_SUN8I_H3=y
+CONFIG_DRAM_CLK=408
+CONFIG_DRAM_ZQ=3881979
+CONFIG_DRAM_ODT_EN=y
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-orangepi-zeroplus"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_CONSOLE_MUX=y
+CONFIG_SPL=y
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+CONFIG_SPL_SPI_SUNXI=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_SYS_CLK_FREQ=480000000