Skip to contentSkip to conversation

versatile/vexpress: board configs: Use buffered writes on Flash

PATCH New Jagannadha Sutradharudu Teki 2 participants 3 messages Jul 29, 2012 – Oct 18, 2012

lore
Share & tools
lore
#0 lore raw

cover versatile/vexpress: board configs: Use buffered writes on Flash

Current writes on nor flash uses normal flash write calls due to this writing to NOR is very slow,
so I was enabled buffered writes and tested on QEMU.

Regards,
Jagan.

Jagannadha Sutradharudu Teki (2):
image/FIT: Add ramdisk load, entry address and OS tag inclusion
versatile: board configs: Use buffered writes on flash

 common/image.c                 |    7 ++++---
 include/configs/ca9x4_ct_vxp.h |    2 ++
 include/configs/versatile.h    |    1 +
 3 files changed, 7 insertions(+), 3 deletions(-)
#1 lore raw

PATCH 1/1 versatile: board configs: Use buffered writes on flash

This patch provides a support to use buffered writes on flash for versatile and vexpress boards.

This will certainly increase the flash writes.

---
 include/configs/ca9x4_ct_vxp.h |    2 ++
 include/configs/versatile.h    |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
include/configs/ca9x4_ct_vxp.h +2 -0
index 14b8146..c67be37 100644
@@ -170,6 +170,8 @@
 /* Room required on the stack for the environment data */
 #define CONFIG_ENV_SIZE			FLASH_MAX_SECTOR_SIZE
 
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* use buffered writes */
+
 /*
  * Amount of flash used for environment:
  * We don't know which end has the small erase blocks so we use the penultimate
include/configs/versatile.h +1 -0
index ff23a92..32ffd56 100644
@@ -241,6 +241,7 @@
 #define CONFIG_SYS_FLASH_PROTECTION	/* The devices have real protection */
 #define CONFIG_SYS_FLASH_EMPTY_INFO	/* flinfo indicates empty blocks */
 
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* use buffered writes */
 #endif
 
 #endif	/* __CONFIG_H */
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 1/1 versatile: board configs: Use buffered writes on flash

Hi Jagannadha,

Quoted 29 lines · Jagannadha Sutradharudu Teki

This patch provides a support to use buffered writes on flash for versatile and vexpress boards.

This will certainly increase the flash writes.

---
 include/configs/ca9x4_ct_vxp.h |    2 ++
 include/configs/versatile.h    |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
include/configs/ca9x4_ct_vxp.h +2 -0
index 14b8146..c67be37 100644
@@ -170,6 +170,8 @@
 /* Room required on the stack for the environment data */
 #define CONFIG_ENV_SIZE			FLASH_MAX_SECTOR_SIZE
 
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* use buffered writes */
+
 /*
  * Amount of flash used for environment:
  * We don't know which end has the small erase blocks so we use the penultimate
include/configs/versatile.h +0 -0
index ff23a92..32ffd56 100644

include/configs/versatile.h line 247

Quoted 7 lines
include/configs/versatile.h +1 -0
@@ -241,6 +241,7 @@
 #define CONFIG_SYS_FLASH_PROTECTION	/* The devices have real protection */
 #define CONFIG_SYS_FLASH_EMPTY_INFO	/* flinfo indicates empty blocks */
 
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* use buffered writes */
 #endif
 
 #endif	/* __CONFIG_H */

Applied to u-boot-arm/master, thanks!

Amicalement,

Signature · 1 line
Albert.