[U-Boot] RV: Problem with flash on a MPC5200B board

txema lopez tlopez at aotek.es
Thu Oct 9 09:50:18 CEST 2008


Hy Sylvain,
        
I have a custom Lite5200B based board with two S29GL128 expansion flash
in two banks (CS0/CSBOOT, CS1) in 8 bit mode.
This is my flash configuration in my config/<board.h> file. AFAIK the
U-Boot CFI driver detects the flash chip mode, so the configuration is
quite simple.
        
#define CFG_MAX_FLASH_SECT      512     /* max num of sects on one chip
*/
        
#define CFG_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)
*/
#define CFG_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)
*/
        
        
#define CFG_FLASH_CFI_DRIVER
#define CFG_FLASH_CFI
#define CFG_FLASH_USE_BUFFER_WRITE
        
The chip select configuration register of both banks could be important.
        
#define CFG_BOOTCS_CFG          0x00021800
#define CFG_CS1_CFG             0x00021800
        
Best regards,
Txema


More information about the U-Boot mailing list