summaryrefslogtreecommitdiff
path: root/packages/u-boot/u-boot-1.3.2/mpc8313e-rdb-eeprom.patch
blob: 51ff0f8ca07507af7c2a14b8ee98e156c47dc2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: u-boot-1.3.2/include/configs/MPC8313ERDB.h
===================================================================
--- u-boot-1.3.2.orig/include/configs/MPC8313ERDB.h	2008-11-21 14:55:25.000000000 +0100
+++ u-boot-1.3.2/include/configs/MPC8313ERDB.h	2008-11-21 14:55:36.000000000 +0100
@@ -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)