[U-Boot] [PATCH 1/3] xpedite5200, 5370: Use buffered NOR flash writes

From: Peter Tyser ptyser@xes-inc.com
Buffered writes are possible on the XPedite5200 and XPedite5370 and greatly improve NOR flash write speeds
Signed-off-by: Peter Tyser ptyser@xes-inc.com --- I miscalculated the merge window close time... I hope to slip these last 3 trivial changes in the upcoming release if possible.
Thanks, Peter
include/configs/XPEDITE5200.h | 1 + include/configs/XPEDITE5370.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/configs/XPEDITE5200.h b/include/configs/XPEDITE5200.h index 89ab692..617f514 100644 --- a/include/configs/XPEDITE5200.h +++ b/include/configs/XPEDITE5200.h @@ -129,6 +129,7 @@ #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ #define CONFIG_FLASH_CFI_DRIVER #define CONFIG_SYS_FLASH_CFI +#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE #define CONFIG_SYS_FLASH_AUTOPROTECT_LIST { {0xfff40000, 0xc0000}, \ {0xfbf40000, 0xc0000} } #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */ diff --git a/include/configs/XPEDITE5370.h b/include/configs/XPEDITE5370.h index 536e063..d00448b 100644 --- a/include/configs/XPEDITE5370.h +++ b/include/configs/XPEDITE5370.h @@ -137,6 +137,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy); #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ #define CONFIG_FLASH_CFI_DRIVER #define CONFIG_SYS_FLASH_CFI +#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE #define CONFIG_SYS_FLASH_AUTOPROTECT_LIST { {0xfff40000, 0xc0000}, \ {0xf7f40000, 0xc0000} } #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */

From: Peter Tyser ptyser@xes-inc.com
Signed-off-by: Peter Tyser ptyser@xes-inc.com --- board/xes/xpedite5370/xpedite5370.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/xes/xpedite5370/xpedite5370.c b/board/xes/xpedite5370/xpedite5370.c index 22cf294..d54c699 100644 --- a/board/xes/xpedite5370/xpedite5370.c +++ b/board/xes/xpedite5370/xpedite5370.c @@ -84,8 +84,8 @@ int board_early_init_r(void) /* Initialize PCA9557 devices */ pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR0, 0xff, 0); pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR1, 0xff, 0); - pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR0, 0xff, 0); - pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR0, 0xff, 0); + pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR2, 0xff, 0); + pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR3, 0xff, 0);
/* * Remap NOR flash region to caching-inhibited

From: Peter Tyser ptyser@xes-inc.com
Signed-off-by: Peter Tyser ptyser@xes-inc.com --- include/configs/P2020DS.h | 1 - include/configs/XPEDITE5170.h | 1 - include/configs/aria.h | 1 - include/configs/mecp5123.h | 1 - 4 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h index 676f013..70ab96f 100644 --- a/include/configs/P2020DS.h +++ b/include/configs/P2020DS.h @@ -412,7 +412,6 @@ extern unsigned long calculate_board_ddr_clk(unsigned long dummy); #define CONFIG_HARD_I2C /* I2C with hardware support */ #undef CONFIG_SOFT_I2C /* I2C bit-banged */ #define CONFIG_I2C_MULTI_BUS -#define CONFIG_I2C_CMD_TREE #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 #define CONFIG_SYS_I2C_SLAVE 0x7F diff --git a/include/configs/XPEDITE5170.h b/include/configs/XPEDITE5170.h index 2553293..985b589 100644 --- a/include/configs/XPEDITE5170.h +++ b/include/configs/XPEDITE5170.h @@ -254,7 +254,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy); #define CONFIG_SYS_I2C_OFFSET 0x3000 #define CONFIG_SYS_I2C2_OFFSET 0x3100 #define CONFIG_I2C_MULTI_BUS -#define CONFIG_I2C_CMD_TREE
/* PEX8518 slave I2C interface */ #define CONFIG_SYS_I2C_PEX8518_ADDR 0x70 diff --git a/include/configs/aria.h b/include/configs/aria.h index e7e238d..4211113 100644 --- a/include/configs/aria.h +++ b/include/configs/aria.h @@ -376,7 +376,6 @@ #define CONFIG_HARD_I2C /* I2C with hardware support */ #undef CONFIG_SOFT_I2C /* so disable bit-banged I2C */ #define CONFIG_I2C_MULTI_BUS -#define CONFIG_I2C_CMD_TREE
/* I2C speed and slave address */ #define CONFIG_SYS_I2C_SPEED 100000 diff --git a/include/configs/mecp5123.h b/include/configs/mecp5123.h index e00859a..1ecae00 100644 --- a/include/configs/mecp5123.h +++ b/include/configs/mecp5123.h @@ -249,7 +249,6 @@ #define CONFIG_HARD_I2C /* I2C with hardware support */ #undef CONFIG_SOFT_I2C /* so disable bit-banged I2C */ #define CONFIG_I2C_MULTI_BUS -#define CONFIG_I2C_CMD_TREE #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed */ #define CONFIG_SYS_I2C_SLAVE 0x7F /* slave address */

Hello Peter,
ptyser@xes-inc.com wrote:
From: Peter Tyser ptyser@xes-inc.com
Signed-off-by: Peter Tyser ptyser@xes-inc.com
include/configs/P2020DS.h | 1 - include/configs/XPEDITE5170.h | 1 - include/configs/aria.h | 1 - include/configs/mecp5123.h | 1 - 4 files changed, 0 insertions(+), 4 deletions(-)
added to u-boot-i2c.git Thanks!
bye Heiko

Hello Peter,
ptyser@xes-inc.com wrote:
From: Peter Tyser ptyser@xes-inc.com
Signed-off-by: Peter Tyser ptyser@xes-inc.com
board/xes/xpedite5370/xpedite5370.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/xes/xpedite5370/xpedite5370.c b/board/xes/xpedite5370/xpedite5370.c index 22cf294..d54c699 100644 --- a/board/xes/xpedite5370/xpedite5370.c +++ b/board/xes/xpedite5370/xpedite5370.c @@ -84,8 +84,8 @@ int board_early_init_r(void) /* Initialize PCA9557 devices */ pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR0, 0xff, 0); pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR1, 0xff, 0);
- pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR0, 0xff, 0);
- pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR0, 0xff, 0);
pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR2, 0xff, 0);
pca953x_set_pol(CONFIG_SYS_I2C_PCA953X_ADDR3, 0xff, 0);
/*
- Remap NOR flash region to caching-inhibited
This go through the mpc85xx maintainer, so you get my
Acked-by: Heiko Schocherhs@denx.de
bye Heiko

On Jul 19, 2009, at 7:17 PM, ptyser@xes-inc.com wrote:
From: Peter Tyser ptyser@xes-inc.com
Signed-off-by: Peter Tyser ptyser@xes-inc.com
board/xes/xpedite5370/xpedite5370.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
applied
- k

On Jul 19, 2009, at 7:17 PM, ptyser@xes-inc.com wrote:
From: Peter Tyser ptyser@xes-inc.com
Buffered writes are possible on the XPedite5200 and XPedite5370 and greatly improve NOR flash write speeds
Signed-off-by: Peter Tyser ptyser@xes-inc.com
I miscalculated the merge window close time... I hope to slip these last 3 trivial changes in the upcoming release if possible.
Thanks, Peter
applied
- k
participants (4)
-
Heiko Schocher
-
Heiko Schocher
-
Kumar Gala
-
ptyser@xes-inc.com