While working on adding more boards I noticed that we lack a config for the 512M cubieboard, and that some of the new boards which I want to add also have 512M and 1G variants, rather then adding 2 defconfig's for all of these, lets switch the exising boards which have both a 512M and 1024M variant over to the sun4i dram autoconfig code. This also drops the foo_RAMSIZE_defconfig variants of boards where we currently have 2 separate configs already. Note: 1) The newly introduced CONFIG_DRAM_EMR1 kconfig value is not used with a value other then its default for now, but we need this to be configurable to support some new boards with auto dram config. 2) We always set all CONFIG_DRAM_foo values in defconfigs, even if they match the defaults, this is done to make it more clear what values are used for a certain board. This has been tested on a Mele A1000, Mini-X and a Cubieboard, all 1G variants, the dram autoconfig code has also been tested on a 512M mk802 (a defconfig for the mk802 is added in a later patch). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>master
parent
e18233493e
commit
8ffc487c75
@ -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 = 480, |
||||
.type = 3, |
||||
.rank_num = 1, |
||||
.density = 4096, |
||||
.io_width = 16, |
||||
.bus_width = 32, |
||||
.cas = 6, |
||||
.zq = 123, |
||||
.odt_en = 0, |
||||
.size = 1024, |
||||
.tpr0 = 0x30926692, |
||||
.tpr1 = 0x1090, |
||||
.tpr2 = 0x1a0c8, |
||||
.tpr3 = 0, |
||||
.tpr4 = 0, |
||||
.tpr5 = 0, |
||||
.emr1 = 0, |
||||
.emr2 = 0, |
||||
.emr3 = 0, |
||||
}; |
||||
|
||||
unsigned long sunxi_dram_init(void) |
||||
{ |
||||
return dramc_init(&dram_para); |
||||
} |
@ -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 = 360, |
||||
.type = 3, |
||||
.rank_num = 1, |
||||
.density = 4096, |
||||
.io_width = 16, |
||||
.bus_width = 32, |
||||
.cas = 6, |
||||
.zq = 123, |
||||
.odt_en = 0, |
||||
.size = 1024, |
||||
.tpr0 = 0x30926692, |
||||
.tpr1 = 0x1090, |
||||
.tpr2 = 0x1a0c8, |
||||
.tpr3 = 0, |
||||
.tpr4 = 0, |
||||
.tpr5 = 0, |
||||
.emr1 = 0, |
||||
.emr2 = 0, |
||||
.emr3 = 0, |
||||
}; |
||||
|
||||
unsigned long sunxi_dram_init(void) |
||||
{ |
||||
return dramc_init(&dram_para); |
||||
} |
@ -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 = 360, |
||||
.type = 3, |
||||
.rank_num = 1, |
||||
.density = 2048, |
||||
.io_width = 16, |
||||
.bus_width = 32, |
||||
.cas = 6, |
||||
.zq = 123, |
||||
.odt_en = 0, |
||||
.size = 512, |
||||
.tpr0 = 0x30926692, |
||||
.tpr1 = 0x1090, |
||||
.tpr2 = 0x1a0c8, |
||||
.tpr3 = 0, |
||||
.tpr4 = 0, |
||||
.tpr5 = 0, |
||||
.emr1 = 0, |
||||
.emr2 = 0, |
||||
.emr3 = 0, |
||||
}; |
||||
|
||||
unsigned long sunxi_dram_init(void) |
||||
{ |
||||
return dramc_init(&dram_para); |
||||
} |
@ -1,26 +1,24 @@ |
||||
/* this file is generated, don't edit it yourself */ |
||||
|
||||
#include <common.h> |
||||
#include <asm/arch/dram.h> |
||||
|
||||
static struct dram_para dram_para = { |
||||
.clock = 360, |
||||
.clock = CONFIG_DRAM_CLK, |
||||
.type = 3, |
||||
.rank_num = 1, |
||||
.density = 2048, |
||||
.io_width = 8, |
||||
.bus_width = 32, |
||||
.density = 0, |
||||
.io_width = 0, |
||||
.bus_width = 0, |
||||
.cas = 6, |
||||
.zq = 123, |
||||
.zq = CONFIG_DRAM_ZQ, |
||||
.odt_en = 0, |
||||
.size = 1024, |
||||
.size = 0, |
||||
.tpr0 = 0x30926692, |
||||
.tpr1 = 0x1090, |
||||
.tpr2 = 0x1a0c8, |
||||
.tpr3 = 0, |
||||
.tpr4 = 0, |
||||
.tpr5 = 0, |
||||
.emr1 = 0, |
||||
.emr1 = CONFIG_DRAM_EMR1, |
||||
.emr2 = 0, |
||||
.emr3 = 0, |
||||
}; |
@ -1,8 +0,0 @@ |
||||
CONFIG_SPL=y |
||||
CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_EMAC,MACPWR=SUNXI_GPH(15),AHCI,USB_EHCI" |
||||
CONFIG_FDTFILE="sun4i-a10-a1000.dtb" |
||||
CONFIG_VIDEO_VGA=y |
||||
+S:CONFIG_ARM=y |
||||
+S:CONFIG_ARCH_SUNXI=y |
||||
+S:CONFIG_MACH_SUN4I=y |
||||
+S:CONFIG_TARGET_MELE_A1000G=y |
@ -1,7 +0,0 @@ |
||||
CONFIG_SPL=y |
||||
CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,USB_EHCI" |
||||
CONFIG_FDTFILE="sun4i-a10-mini-xplus.dtb" |
||||
+S:CONFIG_ARM=y |
||||
+S:CONFIG_ARCH_SUNXI=y |
||||
+S:CONFIG_MACH_SUN4I=y |
||||
+S:CONFIG_TARGET_MINI_X_1GB=y |
Loading…
Reference in new issue