Changeset 8063


Ignore:
Timestamp:
2007-07-19T18:19:19+02:00 (11 years ago)
Author:
florian
Message:

Suppress promc.c.orig, fix the nand detection with newer boards (#2038)

Location:
trunk/target/linux/rb532-2.6/files
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/rb532-2.6/files/drivers/mtd/nand/rbmipsnand.c

    r8058 r8063  
    3333 
    3434#define MEM32(x) *((volatile unsigned *) (x)) 
     35 
     36extern unsigned int board_type; 
    3537 
    3638struct rb500_nand_info { 
     
    124126        } 
    125127 
    126         /* FIXME : this seems to work only for newer RB500, check the version to set the right flags accordingly */ 
    127         data->flags1 = LO_FOFF | LO_CEX; 
    128         data->flags2 = LO_ULED | LO_ALE | LO_CLE | LO_WPX; 
     128        if (board_type > 500) { 
     129                data->flags1 = LO_FOFF | LO_CEX; 
     130                data->flags2 = LO_ULED | LO_ALE | LO_CLE | LO_WPX; 
     131        } 
     132        else { 
     133                data->flags1 = LO_WPX | LO_FOFF | LO_CEX; 
     134                data->flags2 = LO_ULED | LO_ALE | LO_CLE; 
     135        } 
    129136 
    130137        changeLatchU5(data->flags1, data->flags2); 
Note: See TracChangeset for help on using the changeset viewer.