Skip to content

Commit 8f50b8e

Browse files
sebastienocquidant-eatonRoger Quadros
authored andcommitted
memory: omap-gpmc: Fix omap gpmc EXTRADELAY timing
In the omap gpmc driver it can be noticed that GPMC_CONFIG4_OEEXTRADELAY is overwritten by the WEEXTRADELAY value from the device tree and GPMC_CONFIG4_WEEXTRADELAY is not updated by the value from the device tree. As a consequence, the memory accesses cannot be configured properly when the extra delay are needed for OE and WE. Fix the update of GPMC_CONFIG4_WEEXTRADELAY with the value from the device tree file and prevents GPMC_CONFIG4_OEXTRADELAY being overwritten by the WEXTRADELAY value from the device tree. Cc: [email protected] Signed-off-by: Ocquidant, Sebastien <[email protected]> Signed-off-by: Roger Quadros <[email protected]>
1 parent 5edb564 commit 8f50b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/omap-gpmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static void gpmc_cs_bool_timings(int cs, const struct gpmc_bool_timings *p)
398398
gpmc_cs_modify_reg(cs, GPMC_CS_CONFIG4,
399399
GPMC_CONFIG4_OEEXTRADELAY, p->oe_extra_delay);
400400
gpmc_cs_modify_reg(cs, GPMC_CS_CONFIG4,
401-
GPMC_CONFIG4_OEEXTRADELAY, p->we_extra_delay);
401+
GPMC_CONFIG4_WEEXTRADELAY, p->we_extra_delay);
402402
gpmc_cs_modify_reg(cs, GPMC_CS_CONFIG6,
403403
GPMC_CONFIG6_CYCLE2CYCLESAMECSEN,
404404
p->cycle2cyclesamecsen);

0 commit comments

Comments
 (0)