]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: Add mk802_a10s board / defconfig
authorHans de Goede <hdegoede@redhat.com>
Sat, 17 Jan 2015 21:31:30 +0000 (22:31 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 22 Jan 2015 11:34:56 +0000 (12:34 +0100)
The mk802_a10s re-uses is the "classic" mk802 case and functionality, but has
an A10s SoC inside rather then the A10, it features 512M or 1G RAM, 4G nand,
a mini-hdmi female connector, USB-A receptacle, mini-usb receptacle (OTG)
and a sdio realtek wifi chip. Unlike the original mk802 it does have a pmic,
the axp152.

For more details see: http://linux-sunxi.org/Semitime_g2

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/Kconfig
board/sunxi/MAINTAINERS
board/sunxi/Makefile
board/sunxi/dram_sun5i_auto.c [new file with mode: 0644]
configs/mk802_a10s_defconfig [new file with mode: 0644]

index 74b3b2174b48bd88b52125cdb79de1900feacb40..1e9cee7e07223e09844fdd5180eb404e26e989ad 100644 (file)
@@ -122,6 +122,10 @@ config TARGET_MELE_M3
        bool "MELE_M3"
        depends on MACH_SUN7I
 
+config TARGET_MK802_A10S
+       bool "MK802_A10S"
+       depends on MACH_SUN5I
+
 config TARGET_MSI_PRIMO73
        bool "MSI Primo73 (7\" tablet)"
        depends on MACH_SUN7I
index c896b30d3639aae8dc85bd006376881affab364f..9a83537afd50549474fc41f47658fe4bf1f695d6 100644 (file)
@@ -16,6 +16,7 @@ F:    configs/A10s-OLinuXino-M_defconfig
 F:     configs/A13-OLinuXino_defconfig
 F:     configs/A13-OLinuXinoM_defconfig
 F:     configs/Auxtek-T004_defconfig
+F:     configs/mk802_a10s_defconfig
 F:     configs/r7-tv-dongle_defconfig
 F:     include/configs/sun6i.h
 F:     configs/CSQ_CS908_defconfig
index f838e7beaff669eeaf2f01764b6f43170011835b..feb439acd3ea3dc4cfca181ebfab66bad1831190 100644 (file)
@@ -26,6 +26,7 @@ obj-$(CONFIG_TARGET_CUBIEBOARD2)      += dram_cubieboard2.o
 obj-$(CONFIG_TARGET_CUBIETRUCK)                += dram_cubietruck.o
 obj-$(CONFIG_TARGET_I12_TVBOX)         += dram_sun7i_384_1024_iow16.o
 obj-$(CONFIG_TARGET_MELE_M3)           += dram_sun7i_384_1024_iow16.o
+obj-$(CONFIG_TARGET_MK802_A10S)                += dram_sun5i_auto.o
 obj-$(CONFIG_TARGET_MSI_PRIMO73)       += dram_sun7i_384_1024_iow16.o
 obj-$(CONFIG_TARGET_PCDUINO3)          += dram_linksprite_pcduino3.o
 obj-$(CONFIG_TARGET_QT840A)            += dram_sun7i_384_512_busw16_iow16.o
diff --git a/board/sunxi/dram_sun5i_auto.c b/board/sunxi/dram_sun5i_auto.c
new file mode 100644 (file)
index 0000000..a5965db
--- /dev/null
@@ -0,0 +1,31 @@
+/* this file is generated, don't edit it yourself */
+
+#include <common.h>
+#include <asm/arch/dram.h>
+
+static struct dram_para dram_para = {
+       .clock = CONFIG_DRAM_CLK,
+       .type = 3,
+       .rank_num = 1,
+       .density = 0,
+       .io_width = 0,
+       .bus_width = 0,
+       .cas = 9,
+       .zq = CONFIG_DRAM_ZQ,
+       .odt_en = 0,
+       .size = 0,
+       .tpr0 = 0x42d899b7,
+       .tpr1 = 0xa090,
+       .tpr2 = 0x22a00,
+       .tpr3 = 0,
+       .tpr4 = 0,
+       .tpr5 = 0,
+       .emr1 = CONFIG_DRAM_EMR1,
+       .emr2 = 0x10,
+       .emr3 = 0,
+};
+
+unsigned long sunxi_dram_init(void)
+{
+       return dramc_init(&dram_para);
+}
diff --git a/configs/mk802_a10s_defconfig b/configs/mk802_a10s_defconfig
new file mode 100644 (file)
index 0000000..086e1e4
--- /dev/null
@@ -0,0 +1,11 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="AXP152_POWER,USB_EHCI"
+CONFIG_FDTFILE="sun5i-a10s-mk802.dtb"
+CONFIG_USB1_VBUS_PIN="PB10"
++S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
++S:CONFIG_MACH_SUN5I=y
++S:CONFIG_TARGET_MK802_A10S=y
++S:CONFIG_DRAM_CLK=432
++S:CONFIG_DRAM_ZQ=123
++S:CONFIG_DRAM_EMR1=0