diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig index 8d3016272a8e684ef5e666d89e6cbeb3fc4da947..80dc3f96baef2c617966b004ecfbdce998516d84 100644 --- a/board/sunxi/Kconfig +++ b/board/sunxi/Kconfig @@ -96,6 +96,10 @@ config TARGET_BANANAPI bool "BANANAPI" depends on MACH_SUN7I +config TARGET_BANANAPRO + bool "BANANAPRO" + depends on MACH_SUN7I + config TARGET_COLOMBUS bool "COLOMBUS" depends on MACH_SUN6I diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index c45b8616c1dc1c9f4cc309cfe3aadff8d3482597..d926d2e469e519d9d7954a6eed71008d0cb2ff05 100644 --- a/board/sunxi/MAINTAINERS +++ b/board/sunxi/MAINTAINERS @@ -23,6 +23,7 @@ F: configs/Mele_M9_defconfig F: include/configs/sun7i.h F: configs/A20-OLinuXino_MICRO_defconfig F: configs/Bananapi_defconfig +F: configs/Bananapro_defconfig F: configs/i12-tvbox_defconfig F: configs/Linksprite_pcDuino3_defconfig F: configs/Linksprite_pcDuino3_fdt_defconfig diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index 97aff10e07160e790eb1ff141b1db9fa2f1276f2..8ca01f670a296516d891ec33f479a106adf75b20 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi/Makefile @@ -22,6 +22,7 @@ obj-$(CONFIG_TARGET_A20_OLINUXINO_M) += dram_sun7i_384_1024_iow16.o obj-$(CONFIG_TARGET_AUXTEK_T004) += dram_a10s_olinuxino_m.o obj-$(CONFIG_TARGET_BA10_TV_BOX) += dram_sun4i_384_1024_iow8.o obj-$(CONFIG_TARGET_BANANAPI) += dram_bananapi.o +obj-$(CONFIG_TARGET_BANANAPRO) += dram_bananapi.o obj-$(CONFIG_TARGET_CUBIEBOARD) += dram_cubieboard.o obj-$(CONFIG_TARGET_CUBIEBOARD2) += dram_cubieboard2.o obj-$(CONFIG_TARGET_CUBIETRUCK) += dram_cubietruck.o diff --git a/board/sunxi/gmac.c b/board/sunxi/gmac.c index 571bc9e0ab0d49ba3ab6c1ef621adff2f038441e..4e4615e12f654fed06c8200ce5061e1ba76e2493 100644 --- a/board/sunxi/gmac.c +++ b/board/sunxi/gmac.c @@ -34,7 +34,7 @@ int sunxi_gmac_initialize(bd_t *bis) * need to set bits 10-12 GTXDC "GMAC Transmit Clock Delay Chain" * of the GMAC clk register to 3. */ -#ifdef CONFIG_TARGET_BANANAPI +#if defined CONFIG_TARGET_BANANAPI || defined CONFIG_TARGET_BANANAPRO setbits_le32(&ccm->gmac_clk_cfg, 0x3 << 10); #endif diff --git a/configs/Bananapro_defconfig b/configs/Bananapro_defconfig new file mode 100644 index 0000000000000000000000000000000000000000..7f9ce13e20e586f7836556af73734f5cd68d766f --- /dev/null +++ b/configs/Bananapro_defconfig @@ -0,0 +1,9 @@ +CONFIG_SPL=y +CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI" +CONFIG_FDTFILE="sun7i-a20-bananapro.dtb" +CONFIG_USB1_VBUS_PIN="PH0" +CONFIG_USB2_VBUS_PIN="PH1" ++S:CONFIG_ARM=y ++S:CONFIG_ARCH_SUNXI=y ++S:CONFIG_MACH_SUN7I=y ++S:CONFIG_TARGET_BANANAPRO=y