ARM: OMAP2+: Add additional GPMC timing parameters
authorJon Hunter <jon-hunter@ti.com>
Fri, 22 Feb 2013 00:51:27 +0000 (18:51 -0600)
committerJon Hunter <jon-hunter@ti.com>
Thu, 4 Apr 2013 01:12:18 +0000 (20:12 -0500)
commitd36b4cd46d23dd3c283c2e11de540e4cb875255d
tree0592949fab0eee58a2285dffb8735ca6bb606284
parent8c8a77712756edcef9298444868537af42334fc0
ARM: OMAP2+: Add additional GPMC timing parameters

Some of the GPMC timings parameters are currently missing from the GPMC
device-tree binding. Add these parameters to the binding documentation
as well as code to read them. Also add either "-ps" or "-ns" suffix to
the GPMC timing properties to indicate whether the timing is in
picoseconds or nanoseconds.

The existing code in gpmc_read_timings_dt() is checking the value of
of_property_read_u32() and only is successful storing the value read
in the gpmc_timings structure. Checking the return value in this case
is not necessary and we can simply read the value, if present, and
store directly in the gpmc_timings structure. Therefore, simplify the
code by removing these checks.

The comment in the gpmc_read_timings_dt() function, "only for OMAP3430"
is also incorrect as it is applicable to all OMAP3+ devices. So correct
this too.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Documentation/devicetree/bindings/bus/ti-gpmc.txt
arch/arm/mach-omap2/gpmc.c