diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-04-21 12:30:45 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-04-21 12:30:45 +0000 |
commit | fb69e28eaf2499fad9c67aa0f41ebf587dc5d602 (patch) | |
tree | 2294256674c0ecae3fd58c9806cca492f827085d /target/linux/ramips/files | |
parent | 818aeba960e509b2959b7ea3e1d9ebe5165659f4 (diff) | |
download | mtk-20170518-fb69e28eaf2499fad9c67aa0f41ebf587dc5d602.zip mtk-20170518-fb69e28eaf2499fad9c67aa0f41ebf587dc5d602.tar.gz mtk-20170518-fb69e28eaf2499fad9c67aa0f41ebf587dc5d602.tar.bz2 |
ramips: rt305x: use different memory size setup for RT3352
SVN-Revision: 31400
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r-- | target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h | 3 | ||||
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c | 12 |
2 files changed, 13 insertions, 2 deletions
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h index 2c62a16..0afbb2f 100644 --- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h @@ -54,6 +54,9 @@ static inline int soc_is_rt3352(void) #define RT305X_MEM_SIZE_MIN (2 * 1024 * 1024) #define RT305X_MEM_SIZE_MAX (64 * 1024 * 1024) +#define RT3352_MEM_SIZE_MIN (2 * 1024 * 1024) +#define RT3352_MEM_SIZE_MAX (256 * 1024 * 1024) + #define RT305X_CPU_IRQ_BASE 0 #define RT305X_INTC_IRQ_BASE 8 #define RT305X_INTC_IRQ_COUNT 32 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 831db84..179f9b7 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c @@ -67,8 +67,16 @@ void __init ramips_soc_prom_init(void) (id & CHIP_ID_REV_MASK)); ramips_mem_base = RT305X_SDRAM_BASE; - ramips_mem_size_min = RT305X_MEM_SIZE_MIN; - ramips_mem_size_max = RT305X_MEM_SIZE_MAX; + + if (soc_is_rt305x() || soc_is_rt3350()) { + ramips_mem_size_min = RT305X_MEM_SIZE_MIN; + ramips_mem_size_max = RT305X_MEM_SIZE_MAX; + } else if (soc_is_rt3352()) { + ramips_mem_size_min = RT3352_MEM_SIZE_MIN; + ramips_mem_size_max = RT3352_MEM_SIZE_MAX; + } else { + BUG(); + } } static struct ramips_gpio_chip rt305x_gpio_chips[] = { |