diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-08-31 18:53:26 +0000 |
commit | 5b179ca3a0e92b42e2957d322e7d9871bad8797c (patch) | |
tree | 644c8852e34e991c4362fc771ca255c08ae37312 /target/linux/ramips/files/arch/mips/include/asm/mach-ralink | |
parent | a4686c595e5b26d5c3c51ce4f2564f08684e130f (diff) | |
download | master-187ad058-5b179ca3a0e92b42e2957d322e7d9871bad8797c.tar.gz master-187ad058-5b179ca3a0e92b42e2957d322e7d9871bad8797c.tar.bz2 master-187ad058-5b179ca3a0e92b42e2957d322e7d9871bad8797c.zip |
[ramips] share memory size detection code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17454 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/include/asm/mach-ralink')
-rw-r--r-- | target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h | 4 | ||||
-rw-r--r-- | target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x/ralink_soc.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h index c379f39195..60ca647d8c 100644 --- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h @@ -11,6 +11,10 @@ #ifndef __RT288X_RALINK_SOC_H #define __RT288X_RALINK_SOC_H +#define RALINK_SOC_SDRAM_BASE 0x08000000 +#define RALINK_SOC_MEM_SIZE_MIN (2 * 1024 * 1024) +#define RALINK_SOC_MEM_SIZE_MAX (128 * 1024 * 1024) + #define RALINK_SOC_GPIO_BASE 0x300600 #define RALINK_SOC_GPIO0_COUNT 24 diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x/ralink_soc.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x/ralink_soc.h index 144cc4ea46..fd0e8b3048 100644 --- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x/ralink_soc.h +++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x/ralink_soc.h @@ -11,6 +11,10 @@ #ifndef __RT288X_RALINK_SOC_H #define __RT288X_RALINK_SOC_H +#define RALINK_SOC_SDRAM_BASE 0 +#define RALINK_SOC_MEM_SIZE_MIN (2 * 1024 * 1024) +#define RALINK_SOC_MEM_SIZE_MAX (64 * 1024 * 1024) + #define RALINK_SOC_GPIO_BASE 0x10000600 #define RALINK_SOC_GPIO0_COUNT 24 |