source: trunk/target/linux/ifxmips/patches-2.6.30/300-cfi0001-swap.patch @ 20246

Last change on this file since 20246 was 20246, checked in by blogic, 7 years ago

ifxmips - adds cf0001 swizzel patch, by/signed off Veli-Matti Valtonen (maligor)

File size: 640 bytes
  • drivers/mtd/chips/cfi_cmdset_0001.c

    old new  
    4141/* #define CMDSET0001_DISABLE_WRITE_SUSPEND */ 
    4242 
    4343// debugging, turns off buffer write mode if set to 1 
    44 #define FORCE_WORD_WRITE 0 
     44#ifdef CONFIG_IFXMIPS 
     45#  define FORCE_WORD_WRITE 1 
     46#else 
     47#  define FORCE_WORD_WRITE 0 
     48#endif 
    4549 
    4650#define MANUFACTURER_INTEL      0x0089 
    4751#define I82802AB        0x00ad 
     
    14621466        int ret=0; 
    14631467 
    14641468        adr += chip->start; 
     1469#ifdef CONFIG_IFXMIPS 
     1470        adr ^= 2; 
     1471#endif 
    14651472 
    14661473        switch (mode) { 
    14671474        case FL_WRITING: 
Note: See TracBrowser for help on using the repository browser.