diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-09-12 19:03:12 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-09-12 19:03:12 +0000 |
commit | 88571c64d74163aabda3a6a9cbf1a8555536e65e (patch) | |
tree | eb44f761ca9bbb580c94b1cb48bea748c1e3523a /target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c | |
parent | 05f9a7de8063fb97d5229f267299df17950f7291 (diff) | |
download | master-187ad058-88571c64d74163aabda3a6a9cbf1a8555536e65e.tar.gz master-187ad058-88571c64d74163aabda3a6a9cbf1a8555536e65e.tar.bz2 master-187ad058-88571c64d74163aabda3a6a9cbf1a8555536e65e.zip |
ramips/rt305x: add initial support for Rt5350 SoC
Somehow detecting the RAM size in common/setup.c doesn't
work here, it always detects 64M and then crashes on devices
with less RAM.
Probably using MEMC_REG_SDRAM_CFG1 to know the RAM size is how
it could be, for now I use the mem=32M kernel parameter to get
stuff working.
Signed-off-by: Daniel Golle <dgolle@allnet.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33381 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c index 179f9b7bc4..856d869ebe 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c @@ -54,6 +54,9 @@ void __init ramips_soc_prom_init(void) } else if (n0 == RT3352_CHIP_NAME0 && n1 == RT3352_CHIP_NAME1) { rt305x_soc = RT305X_SOC_RT3352; name = "RT3352"; + } else if (n0 == RT5350_CHIP_NAME0 && n1 == RT5350_CHIP_NAME1) { + rt305x_soc = RT305X_SOC_RT5350; + name = "RT5350"; } else { panic("rt305x: unknown SoC, n0:%08x n1:%08x\n", n0, n1); } @@ -68,7 +71,7 @@ void __init ramips_soc_prom_init(void) ramips_mem_base = RT305X_SDRAM_BASE; - if (soc_is_rt305x() || soc_is_rt3350()) { + if (soc_is_rt305x() || soc_is_rt3350() || soc_is_rt5350()) { ramips_mem_size_min = RT305X_MEM_SIZE_MIN; ramips_mem_size_max = RT305X_MEM_SIZE_MAX; } else if (soc_is_rt3352()) { |