]> git.karo-electronics.de Git - linux-beck.git/commit
ARM OMAP2+ GPMC: calculate GPMCFCLKDIVIDER based on WAITMONITORINGTIME
authorRobert ABEL <rabel@cit-ec.uni-bielefeld.de>
Fri, 27 Feb 2015 15:56:53 +0000 (16:56 +0100)
committerRoger Quadros <rogerq@ti.com>
Fri, 6 Mar 2015 10:39:48 +0000 (12:39 +0200)
commit2e67690137f3a7bac660edd548f8846709c55381
tree33262ac06753bd02df92a27fe520f24761dd1847
parentf585070b91950a0269eb20f497cceeee0aeefe0e
ARM OMAP2+ GPMC: calculate GPMCFCLKDIVIDER based on WAITMONITORINGTIME

The WAITMONITORINGTIME is expressed as a number of GPMC_CLK clock cycles,
even though the access is defined as asynchronous, and no GPMC_CLK clock
is provided to the external device. Still, GPMCFCLKDIVIDER is used as a divider
for the GPMC clock, so it must be programmed to define the
correct WAITMONITORINGTIME delay.

Calculate GPMCFCLKDIVIDER independent of gpmc,sync-clk-ps in DT for
pure asynchronous accesses, i.e. both read and write asynchronous.

Signed-off-by: Robert ABEL <rabel@cit-ec.uni-bielefeld.de>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
arch/arm/mach-omap2/gpmc-nand.c
arch/arm/mach-omap2/gpmc-onenand.c
arch/arm/mach-omap2/usb-tusb6010.c
drivers/memory/omap-gpmc.c
include/linux/omap-gpmc.h