summaryrefslogtreecommitdiff
path: root/packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-09-17 13:15:56 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-09-17 13:15:56 +0000
commit1be23a85a9044ac34ebd07d561b8029d0764f916 (patch)
treee0d511043a58985c14a16b96a48d08b741ea5648 /packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch
parentd4e452b6d6fafe058a84e7623893537536dc2695 (diff)
u-boot: add SPI, EEPROM and DTT support for mpc8313e-rdb
Diffstat (limited to 'packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch')
-rw-r--r--packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch b/packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch
new file mode 100644
index 0000000000..bdc69d9562
--- /dev/null
+++ b/packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch
@@ -0,0 +1,21 @@
+Index: u-boot-1.3.2/include/configs/MPC8313ERDB.h
+===================================================================
+--- u-boot-1.3.2.orig/include/configs/MPC8313ERDB.h 2008-09-12 18:52:50.000000000 +0200
++++ u-boot-1.3.2/include/configs/MPC8313ERDB.h 2008-09-12 18:52:58.000000000 +0200
+@@ -263,6 +263,16 @@
+ #define CFG_I2C_OFFSET 0x3000
+ #define CFG_I2C2_OFFSET 0x3100
+
++/*
++ * EEPROM configuration
++ */
++#define CONFIG_CMD_EEPROM
++#define CFG_I2C_EEPROM_ADDR_LEN 2 /* 16-bit EEPROM address */
++#define CFG_I2C_EEPROM_ADDR 0x50 /* Atmel: AT24C256*/
++#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10 /* 10ms of delay */
++#define CFG_EEPROM_PAGE_WRITE_BITS 6 /* 64-Byte Page Write Mode */
++#define CFG_EEPROM_PAGE_WRITE_ENABLE
++
+ /* TSEC */
+ #define CFG_TSEC1_OFFSET 0x24000
+ #define CFG_TSEC1 (CFG_IMMR+CFG_TSEC1_OFFSET)