diff options
Diffstat (limited to 'target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.h')
-rw-r--r-- | target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.h b/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.h index e543e040fd..ac0a93b977 100644 --- a/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.h +++ b/target/linux/atheros-2.6/files/drivers/mtd/devices/spiflash.h @@ -17,7 +17,8 @@ #define FLASH_2MB 2 #define FLASH_4MB 3 #define FLASH_8MB 4 -#define MAX_FLASH 5 +#define FLASH_16MB 5 +#define MAX_FLASH 6 #define STM_PAGE_SIZE 256 @@ -57,6 +58,11 @@ #define STM_M25P64_SECTOR_COUNT 128 #define STM_M25P64_SECTOR_SIZE 0x10000 +#define STM_128MBIT_SIGNATURE 0x17 +#define STM_M25P128_BYTE_COUNT 16777216 +#define STM_M25P128_SECTOR_COUNT 256 +#define STM_M25P128_SECTOR_SIZE 0x10000 + #define STM_1MB_BYTE_COUNT STM_M25P80_BYTE_COUNT #define STM_1MB_SECTOR_COUNT STM_M25P80_SECTOR_COUNT #define STM_1MB_SECTOR_SIZE STM_M25P80_SECTOR_SIZE @@ -69,6 +75,9 @@ #define STM_8MB_BYTE_COUNT STM_M25P64_BYTE_COUNT #define STM_8MB_SECTOR_COUNT STM_M25P64_SECTOR_COUNT #define STM_8MB_SECTOR_SIZE STM_M25P64_SECTOR_SIZE +#define STM_16MB_BYTE_COUNT STM_M25P128_BYTE_COUNT +#define STM_16MB_SECTOR_COUNT STM_M25P128_SECTOR_COUNT +#define STM_16MB_SECTOR_SIZE STM_M25P128_SECTOR_SIZE /* * ST Microelectronics Opcodes for Serial Flash |