patch for Alliance JEDEC devices
This patch adds support for Alliance AS29LV800 chips. They use the same command set as AMD, so it's just a case of recognising the ID numbers.
p.
Index: jedec_probe.c
===================================================================
RCS file: /cvs/linux/kernel26/drivers/mtd/chips/jedec_probe.c,v retrieving revision 1.12
jedec_probe.c +39 -0
@@ -26,6 +26,7 @@/* Manufacturers */ #define MANUFACTURER_AMD 0x0001 +#define MANUFACTURER_ALLIANCE 0x0052#define MANUFACTURER_ATMEL 0x001f#define MANUFACTURER_FUJITSU 0x0004#define MANUFACTURER_INTEL 0x0089
@@ -53,6 +54,10 @@#define AM29LV040B 0x004F#define AM29F032B 0x0041 +/* Alliance */ +#define AS29LV800B 0x22DA +#define AS29LV800T 0x225B +/* Atmel */ #define AT49BV512 0x0003#define AT29LV512 0x003d
@@ -244,6 +249,40 @@*/ static const struct amd_flash_info jedec_table[] = { { + .mfr_id =MANUFACTURER_ALLIANCE , + .dev_id =AS29LV800B , + .name ="Alliance AS29LV800B" , + .uaddr = { + [0 ] = MTD_UADDR_0x0AAA_0x0555,/* x8 */ + [1 ] = MTD_UADDR_0x0555_0x02AA,/* x16 */ + }, + .DevSize = SIZE_1MiB, + .CmdSet =P_ID_AMD_STD , + .NumEraseRegions=4 , + .regions = { +ERASEINFO (0x04000 ,1 ), +ERASEINFO (0x02000 ,2 ), +ERASEINFO (0x08000 ,1 ), +ERASEINFO (0x10000 ,15 ), + } + }, { + .mfr_id =MANUFACTURER_ALLIANCE , + .dev_id =AS29LV800T , + .name ="Alliance AS29LV800T" , + .uaddr = { + [0 ] = MTD_UADDR_0x0AAA_0x0555,/* x8 */ + [1 ] = MTD_UADDR_0x0555_0x02AA,/* x16 */ + }, + .DevSize = SIZE_1MiB, + .CmdSet =P_ID_AMD_STD , + .NumEraseRegions=4 , + .regions = { +ERASEINFO (0x04000 ,1 ), +ERASEINFO (0x02000 ,2 ), +ERASEINFO (0x08000 ,1 ), +ERASEINFO (0x10000 ,15 ), + } + }, { .mfr_id =MANUFACTURER_AMD , .dev_id =AM29F032B , .name ="AMD AM29F032B" ,
Quoted 2 lines · Philip Blundell
This patch adds support for Alliance AS29LV800 chips. They use the same command set as AMD, so it's just a case of recognising the ID numbers.
Go ahead; thanks.
Signature · 1 line
dwmw2