mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
sunxi: Drop qt840a_defconfig
The qt840a is one of the many tv-boxes using the "i12" A20 pcb, but it populates only one of the 2 places for a 16 bit dram ic, thus reducing the buswidth to 16 bits, and the amount of ram to 512M, which is why we had a separate config for it. This commit switches the generic i12-tvbox_defconfig over to DRAM autoconfiguration, so that it will work with the qt840a too, and drops the qt840a specific config, like we've done with other memory-amount specific configs before. Tested on a generic i12-tvbox with 32 bit bus-width / 1G RAM, and on a qt840a with 16 bit bus-width / 512M RAM. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
89c95b0811
commit
56333be9b2
6 changed files with 5 additions and 45 deletions
|
@ -143,10 +143,6 @@ config TARGET_I12_TVBOX
|
||||||
bool "I12_TVBOX"
|
bool "I12_TVBOX"
|
||||||
depends on MACH_SUN7I
|
depends on MACH_SUN7I
|
||||||
|
|
||||||
config TARGET_QT840A
|
|
||||||
bool "QT840A"
|
|
||||||
depends on MACH_SUN7I
|
|
||||||
|
|
||||||
config TARGET_R7DONGLE
|
config TARGET_R7DONGLE
|
||||||
bool "R7DONGLE"
|
bool "R7DONGLE"
|
||||||
depends on MACH_SUN5I
|
depends on MACH_SUN5I
|
||||||
|
|
|
@ -24,10 +24,9 @@ obj-$(CONFIG_TARGET_BANANAPI) += dram_bananapi.o
|
||||||
obj-$(CONFIG_TARGET_BANANAPRO) += dram_bananapi.o
|
obj-$(CONFIG_TARGET_BANANAPRO) += dram_bananapi.o
|
||||||
obj-$(CONFIG_TARGET_CUBIEBOARD2) += dram_cubieboard2.o
|
obj-$(CONFIG_TARGET_CUBIEBOARD2) += dram_cubieboard2.o
|
||||||
obj-$(CONFIG_TARGET_CUBIETRUCK) += dram_cubietruck.o
|
obj-$(CONFIG_TARGET_CUBIETRUCK) += dram_cubietruck.o
|
||||||
obj-$(CONFIG_TARGET_I12_TVBOX) += dram_sun7i_384_1024_iow16.o
|
obj-$(CONFIG_TARGET_I12_TVBOX) += dram_sun5i_auto.o
|
||||||
obj-$(CONFIG_TARGET_MELE_M3) += 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_MK802_A10S) += dram_sun5i_auto.o
|
||||||
obj-$(CONFIG_TARGET_MSI_PRIMO73) += dram_sun7i_384_1024_iow16.o
|
obj-$(CONFIG_TARGET_MSI_PRIMO73) += dram_sun7i_384_1024_iow16.o
|
||||||
obj-$(CONFIG_TARGET_PCDUINO3) += dram_linksprite_pcduino3.o
|
obj-$(CONFIG_TARGET_PCDUINO3) += dram_linksprite_pcduino3.o
|
||||||
obj-$(CONFIG_TARGET_QT840A) += dram_sun7i_384_512_busw16_iow16.o
|
|
||||||
obj-$(CONFIG_TARGET_R7DONGLE) += dram_r7dongle.o
|
obj-$(CONFIG_TARGET_R7DONGLE) += dram_r7dongle.o
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* this file is generated, don't edit it yourself */
|
/* DRAM parameters for auto dram configuration on sun5i and sun7i */
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/arch/dram.h>
|
#include <asm/arch/dram.h>
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
/* this file is generated, don't edit it yourself */
|
|
||||||
|
|
||||||
#include "common.h"
|
|
||||||
#include <asm/arch/dram.h>
|
|
||||||
|
|
||||||
static struct dram_para dram_para = {
|
|
||||||
.clock = 384,
|
|
||||||
.type = 3,
|
|
||||||
.rank_num = 1,
|
|
||||||
.density = 4096,
|
|
||||||
.io_width = 16,
|
|
||||||
.bus_width = 16,
|
|
||||||
.cas = 9,
|
|
||||||
.zq = 0x7f,
|
|
||||||
.odt_en = 0,
|
|
||||||
.size = 512,
|
|
||||||
.tpr0 = 0x42d899b7,
|
|
||||||
.tpr1 = 0xa090,
|
|
||||||
.tpr2 = 0x22a00,
|
|
||||||
.tpr3 = 0,
|
|
||||||
.tpr4 = 0,
|
|
||||||
.tpr5 = 0,
|
|
||||||
.emr1 = 0x4,
|
|
||||||
.emr2 = 0x10,
|
|
||||||
.emr3 = 0,
|
|
||||||
};
|
|
||||||
|
|
||||||
unsigned long sunxi_dram_init(void)
|
|
||||||
{
|
|
||||||
return dramc_init(&dram_para);
|
|
||||||
}
|
|
|
@ -5,3 +5,6 @@ CONFIG_FDTFILE="sun7i-a20-i12-tvbox.dtb"
|
||||||
+S:CONFIG_ARCH_SUNXI=y
|
+S:CONFIG_ARCH_SUNXI=y
|
||||||
+S:CONFIG_MACH_SUN7I=y
|
+S:CONFIG_MACH_SUN7I=y
|
||||||
+S:CONFIG_TARGET_I12_TVBOX=y
|
+S:CONFIG_TARGET_I12_TVBOX=y
|
||||||
|
+S:CONFIG_DRAM_CLK=384
|
||||||
|
+S:CONFIG_DRAM_ZQ=127
|
||||||
|
+S:CONFIG_DRAM_EMR1=4
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
CONFIG_SPL=y
|
|
||||||
CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,MACPWR=SUNXI_GPH(21),USB_EHCI"
|
|
||||||
CONFIG_FDTFILE="sun7i-a20-i12-tvbox.dtb"
|
|
||||||
+S:CONFIG_ARM=y
|
|
||||||
+S:CONFIG_ARCH_SUNXI=y
|
|
||||||
+S:CONFIG_MACH_SUN7I=y
|
|
||||||
+S:CONFIG_TARGET_QT840A=y
|
|
Loading…
Reference in a new issue