Skip to contentSkip to conversation

armv8: ls1046aqds: update IFC NOR timings

PATCH New Wenbin song 2 participants 2 messages Nov 30, 2017 – Dec 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: ls1046aqds: update IFC NOR timings

Update IFC NOR timings to fix that the NOR flash can not be erased with V4 FPGA image on ls1046aqds.

---
 include/configs/ls1046aqds.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/ls1046aqds.h +3 -3
index df70bd398f..b619dc7939 100644
@@ -194,10 +194,10 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_NOR_FTIM1		(FTIM1_NOR_TACO(0x35) | \
 					FTIM1_NOR_TRAD_NOR(0x1a) | \
 					FTIM1_NOR_TSEQRAD_NOR(0x13))
-#define CONFIG_SYS_NOR_FTIM2		(FTIM2_NOR_TCS(0x4) | \
-					FTIM2_NOR_TCH(0x4) | \
+#define CONFIG_SYS_NOR_FTIM2		(FTIM2_NOR_TCS(0x8) | \
+					FTIM2_NOR_TCH(0x8) | \
 					FTIM2_NOR_TWPH(0xe) | \
-					FTIM2_NOR_TWP(0x1c))
+					FTIM2_NOR_TWP(0x38))
 #define CONFIG_SYS_NOR_FTIM3		0
 
 #define CONFIG_SYS_MAX_FLASH_BANKS	2	/* number of banks */
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 armv8: ls1046aqds: update IFC NOR timings

Quoted 13 lines · Wenbin Song

Update IFC NOR timings to fix that the NOR flash can not be erased with V4 FPGA image on ls1046aqds.

---
 include/configs/ls1046aqds.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/ls1046aqds.h +0 -0
index df70bd398f..b619dc7939 100644

include/configs/ls1046aqds.h unsigned long get_board_ddr_clk(void); · line 200

Quoted 10 lines
include/configs/ls1046aqds.h +3 -3
@@ -194,10 +194,10 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_NOR_FTIM1		(FTIM1_NOR_TACO(0x35) | \
 					FTIM1_NOR_TRAD_NOR(0x1a) | \
 					FTIM1_NOR_TSEQRAD_NOR(0x13))
-#define CONFIG_SYS_NOR_FTIM2		(FTIM2_NOR_TCS(0x4) | \
-					FTIM2_NOR_TCH(0x4) | \
+#define CONFIG_SYS_NOR_FTIM2		(FTIM2_NOR_TCS(0x8) | \
+					FTIM2_NOR_TCH(0x8) | \
 					FTIM2_NOR_TWPH(0xe) | \
-					FTIM2_NOR_TWP(0x1c))
+					FTIM2_NOR_TWP(0x38))

Wenbin,

You slow it down a lot. Did you actually calculate the timing? Can you post the numbers? This will impact on NOR flash performance.

York