u-boot: add SPI, EEPROM and DTT support for mpc8313e-rdb
[openembedded.git] / packages / u-boot / u-boot-1.3.2 / mpc8313e-rdb-eeprom.patch
1 Index: u-boot-1.3.2/include/configs/MPC8313ERDB.h
2 ===================================================================
3 --- u-boot-1.3.2.orig/include/configs/MPC8313ERDB.h     2008-09-12 18:52:50.000000000 +0200
4 +++ u-boot-1.3.2/include/configs/MPC8313ERDB.h  2008-09-12 18:52:58.000000000 +0200
5 @@ -263,6 +263,16 @@
6  #define CFG_I2C_OFFSET         0x3000
7  #define CFG_I2C2_OFFSET                0x3100
8  
9 +/*
10 + * EEPROM configuration
11 + */
12 +#define CONFIG_CMD_EEPROM
13 +#define CFG_I2C_EEPROM_ADDR_LEN                2       /* 16-bit EEPROM address */
14 +#define CFG_I2C_EEPROM_ADDR            0x50    /* Atmel: AT24C256*/
15 +#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* 10ms of delay */
16 +#define CFG_EEPROM_PAGE_WRITE_BITS     6       /* 64-Byte Page Write Mode */
17 +#define CFG_EEPROM_PAGE_WRITE_ENABLE
18 +
19  /* TSEC */
20  #define CFG_TSEC1_OFFSET       0x24000
21  #define CFG_TSEC1              (CFG_IMMR+CFG_TSEC1_OFFSET)