aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros-2.6/files/arch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-02-20 22:44:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-02-20 22:44:59 +0000
commitb37101053aad1afc08f689d32907aafaa3b48b8c (patch)
treebc264482e1ad592bcd5eed1d05b163838e7eac0d /target/linux/atheros-2.6/files/arch
parent5f019983aadf60a270e6289295cca8e263d741ea (diff)
downloadupstream-b37101053aad1afc08f689d32907aafaa3b48b8c.tar.gz
upstream-b37101053aad1afc08f689d32907aafaa3b48b8c.tar.bz2
upstream-b37101053aad1afc08f689d32907aafaa3b48b8c.zip
add 16MB flash support for ar2315 (who knows...?)
SVN-Revision: 6334
Diffstat (limited to 'target/linux/atheros-2.6/files/arch')
-rw-r--r--target/linux/atheros-2.6/files/arch/mips/atheros/ar5315.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/atheros-2.6/files/arch/mips/atheros/ar5315.c b/target/linux/atheros-2.6/files/arch/mips/atheros/ar5315.c
index 4e09fe01f0..0255ae3246 100644
--- a/target/linux/atheros-2.6/files/arch/mips/atheros/ar5315.c
+++ b/target/linux/atheros-2.6/files/arch/mips/atheros/ar5315.c
@@ -143,6 +143,7 @@ static __u8 spiflash_probe(void)
#define STM_16MBIT_SIGNATURE 0x14
#define STM_32MBIT_SIGNATURE 0x15
#define STM_64MBIT_SIGNATURE 0x16
+#define STM_128MBIT_SIGNATURE 0x17
static char __init *ar5315_flash_limit(void)
@@ -168,6 +169,9 @@ static char __init *ar5315_flash_limit(void)
case STM_64MBIT_SIGNATURE:
flash_size = 0x00800000;
break;
+ case STM_128MBIT_SIGNATURE:
+ flash_size = 0x01000000;
+ break;
}
ar5315_spiflash_res[0].end = ar5315_spiflash_res[0].start + flash_size;