Patchwork [U-Boot,3/4] km/common: moved eeprom config to pbec specific part

login
register
mail settings
Submitter Holger Brunck
Date July 5, 2011, 8:24 a.m.
Message ID <1309854242-11354-4-git-send-email-holger.brunck@keymile.com>
Download mbox | patch
Permalink /patch/103217/
State Accepted
Commit 4daea6fff34b071e010cbd1af93445634703981b
Headers show

Comments

Holger Brunck - July 5, 2011, 8:24 a.m.
From: Stefan Bigler <stefan.bigler@keymile.com>

Moved eeprom config to specific part, to allow bigger eeprom write pages
for km_kirkwood designs. Write page only used for env eeprom in std use
cases. 24C128 has page size of 64bytes -> 8 time faster.

Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
---
 include/configs/km/keymile-common.h |    6 ------
 include/configs/km/km-powerpc.h     |    6 ++++++
 include/configs/km/km_arm.h         |    6 ++++++
 3 files changed, 12 insertions(+), 6 deletions(-)
Wolfgang Denk - July 28, 2011, 1:40 p.m.
Dear Holger Brunck,

In message <1309854242-11354-4-git-send-email-holger.brunck@keymile.com> you wrote:
> From: Stefan Bigler <stefan.bigler@keymile.com>
> 
> Moved eeprom config to specific part, to allow bigger eeprom write pages
> for km_kirkwood designs. Write page only used for env eeprom in std use
> cases. 24C128 has page size of 64bytes -> 8 time faster.
> 
> Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com>
> cc: Valentin Longchamp <valentin.longchamp@keymile.com>
> cc: Heiko Schocher <hs@denx.de>
> cc: Wolfgang Denk <wd@denx.de>
> ---
>  include/configs/km/keymile-common.h |    6 ------
>  include/configs/km/km-powerpc.h     |    6 ++++++
>  include/configs/km/km_arm.h         |    6 ++++++
>  3 files changed, 12 insertions(+), 6 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h
index d749b2b..bc1edaf 100644
--- a/include/configs/km/keymile-common.h
+++ b/include/configs/km/keymile-common.h
@@ -88,12 +88,6 @@ 
 #define CONFIG_SYS_I2C_INIT_BOARD
 #define CONFIG_I2C_MUX
 
-/* EEprom support */
-#define CONFIG_SYS_I2C_MULTI_EEPROMS
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	3
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	10
-
 /* Support the IVM EEprom */
 #define	CONFIG_SYS_IVM_EEPROM_ADR	0x50
 #define CONFIG_SYS_IVM_EEPROM_MAX_LEN	0x400
diff --git a/include/configs/km/km-powerpc.h b/include/configs/km/km-powerpc.h
index 7610358..506755b 100644
--- a/include/configs/km/km-powerpc.h
+++ b/include/configs/km/km-powerpc.h
@@ -29,6 +29,12 @@ 
 #define CONFIG_CMD_DTT
 #define CONFIG_JFFS2_CMDLINE
 
+/* EEprom support 24C08, 24C16, 24C64 */
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	3  /* 8 Byte write page */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	10
+
 #define CONFIG_ENV_SIZE		0x04000		/* Size of Environment */
 #define CONFIG_FLASH_CFI_MTD
 
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index d41fcb7..2e3b182 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -195,6 +195,12 @@  int get_scl(void);
 
 #endif
 
+/* EEprom support 24C128, 24C256 valid for environment eeprom */
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	6 /* 64 Byte write page */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	10
+
 #define CONFIG_SYS_I2C_EEPROM_ADDR	0x50
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	2