Skip to contentSkip to conversation

TQM8260: use CFI flash driver instead of custom driver.

PATCH New Wolfgang Denk 1 participant 2 messages Oct 31, 2008 – Nov 2, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TQM8260: use CFI flash driver instead of custom driver.

---
 board/tqc/tqm8260/Makefile |    2 +-
 board/tqc/tqm8260/flash.c  |  497 --------------------------------------------
 include/configs/TQM8260.h  |    7 +
 3 files changed, 8 insertions(+), 498 deletions(-)
 delete mode 100644 board/tqc/tqm8260/flash.c
board/tqc/tqm8260/Makefile +1 -1
index 61221fd..94ba1e9 100644
@@ -28,7 +28,7 @@ endif
 
 LIB	= $(obj)lib$(BOARD).a
 
-COBJS	= $(BOARD).o flash.o ../tqm8xx/load_sernum_ethaddr.o
+COBJS	= $(BOARD).o ../tqm8xx/load_sernum_ethaddr.o
 
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS))
board/tqc/tqm8260/flash.c deleted +0 -497

497 lines not on this page · raw message

include/configs/TQM8260.h +7 -0
index 533c7ad..ac9c94e 100644
@@ -300,6 +300,13 @@
 #define CONFIG_SYS_FLASH_ERASE_TOUT	240000	/* Flash Erase Timeout (in ms)  */
 #define CONFIG_SYS_FLASH_WRITE_TOUT	500	/* Flash Write Timeout (in ms)  */
 
+/* use CFI flash driver */
+#define CONFIG_SYS_FLASH_CFI		1	/* Flash is CFI conformant */
+#define CONFIG_FLASH_CFI_DRIVER		1	/* Use the common driver */
+#define CONFIG_SYS_FLASH_BANKS_LIST	{ CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO	1
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
+
 #define CONFIG_ENV_IS_IN_FLASH	1
 #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x40000)
 #define CONFIG_ENV_SIZE		0x08000
Signature · 1 line
1.5.4.rc1.23.g3a969
author Applied
#1 lore raw

PATCH 1/1 TQM8260: use CFI flash driver instead of custom driver.

Dear Wolfgang Denk,

Quoted 7 lines · In message <[email protected]> you wrote:
---
 board/tqc/tqm8260/Makefile |    2 +-
 board/tqc/tqm8260/flash.c  |  497 --------------------------------------------
 include/configs/TQM8260.h  |    7 +
 3 files changed, 8 insertions(+), 498 deletions(-)
 delete mode 100644 board/tqc/tqm8260/flash.c

Applied, thanks :-)

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Horses just naturally have mohawk haircuts.