mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
add 16MB flash support for ar2315 (who knows...?)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6334 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user