diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-06-14 11:59:31 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-06-14 11:59:31 +0000 |
commit | 8ed6f003520655bef682a07cb8f56250935233d4 (patch) | |
tree | 5a056d15be0287bc3d4cd53407ba5f587946d3b4 /target/linux/adm5120-2.6/files/include/asm-mips | |
parent | 816e40a9fe289b542416e0d33d4c0810933239a6 (diff) | |
download | master-31e0f0ae-8ed6f003520655bef682a07cb8f56250935233d4.tar.gz master-31e0f0ae-8ed6f003520655bef682a07cb8f56250935233d4.tar.bz2 master-31e0f0ae-8ed6f003520655bef682a07cb8f56250935233d4.zip |
Fix memory detection and hcd compilation, thanks Gabor ! (closes #1813)
SVN-Revision: 7631
Diffstat (limited to 'target/linux/adm5120-2.6/files/include/asm-mips')
-rw-r--r-- | target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h | 2 | ||||
-rw-r--r-- | target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_switch.h | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h index c78c46b3b7..b4730dc0f0 100644 --- a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h +++ b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h @@ -50,6 +50,8 @@ extern unsigned int adm5120_package; #define ADM5120_PACKAGE_PQFP 0 #define ADM5120_PACKAGE_BGA 1 +extern unsigned long adm5120_memsize; + extern void adm5120_info_init(void); static inline int adm5120_package_pqfp(void) diff --git a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_switch.h b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_switch.h index a0fc1e44ec..f7664587d7 100644 --- a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_switch.h +++ b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_switch.h @@ -85,6 +85,19 @@ #define CODE_PK_BGA 0 /* BGA package */ #define CODE_PK_PQFP 1 /* PQFP package */ +/* MEMCTRL register bits */ +#define MEMCTRL_SDRS_MASK BITMASK(3) /* SDRAM bank size */ +#define MEMCTRL_SDRS_4M 0x01 +#define MEMCTRL_SDRS_8M 0x02 +#define MEMCTRL_SDRS_16M 0x03 +#define MEMCTRL_SDRS_64M 0x04 +#define MEMCTRL_SDRS_128M 0x05 +#define MEMCTRL_SDR1_ENABLE ONEBIT(5) /* enable SDRAM bank 1 */ +#define MEMCTRL_SR0S_MASK BITMASK(3) /* SRAM0 size */ +#define MEMCTRL_SR0S_SHIFT 8 +#define MEMCTRL_SR1S_MASK BITMAKS(3) /* SRAM1 size */ +#define MEMCTRL_SR1S_SHIFT 16 + /* GPIO_CONF0 register bits */ #define GPIO_CONF0_MASK BITMASK(8) #define GPIO_CONF0_IM_SHIFT 0 |