Commit 0976dc5e authored by Imre Deak's avatar Imre Deak Committed by Juha Yrjola

ARM: OMAP: SoSSI: fix write / read cycle to tw1 mapping

A read / write cycle is defined by tw0 + tw1. It was wrongly assumed that
the 1 cycle long CS active edge to read / write active edge is part of
each cycle, thus we ended up with too low tw1 value -> too short cycle
time.
Signed-off-by: default avatarImre Deak <imre.deak@solidboot.com>
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent f31800d8
......@@ -239,7 +239,7 @@ static int calc_rd_timings(struct extif_timings *t)
if (recyc <= reoff)
recyc = reoff + 1;
tw1 = recyc - reoff;
tw1 = recyc - tw0;
/* values less then 3 result in the SOSSI block resetting itself */
if (tw1 < 3)
tw1 = 3;
......@@ -286,7 +286,7 @@ static int calc_wr_timings(struct extif_timings *t)
if (wecyc <= weoff)
wecyc = weoff + 1;
tw1 = wecyc - weoff;
tw1 = wecyc - tw0;
/* values less then 3 result in the SOSSI block resetting itself */
if (tw1 < 3)
tw1 = 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment