aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc-onenand.c
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2013-02-20 15:53:38 -0600
committerJon Hunter <jon-hunter@ti.com>2013-04-01 14:53:40 -0500
commit9f8331562aa1fd72e80dd6037c958cb3faf4cc38 (patch)
treed1989fd4b4ec933b36f5645948094e31d51c0e13 /arch/arm/mach-omap2/gpmc-onenand.c
parentARM: OMAP2+: Simplify code configuring ONENAND devices (diff)
downloadlinux-dev-9f8331562aa1fd72e80dd6037c958cb3faf4cc38.tar.xz
linux-dev-9f8331562aa1fd72e80dd6037c958cb3faf4cc38.zip
ARM: OMAP2+: Add variable to store number of GPMC waitpins
The GPMC has wait-pin signals that can be assigned to a chip-select to monitor the ready signal of an external device. Add a variable to indicate the total number of wait-pins for a given device. This will allow us to detect if the wait-pin being selected is valid or not. When booting with device-tree read the number of wait-pins from the device-tree blob. When device-tree is not used set the number of wait-pins to 4 which is valid for OMAP2-5 devices. Newer devices that have less wait-pins (such as AM335x) only support booting with device-tree and so hard-coding the wait-pin number when not using device-tree is fine. Signed-off-by: Jon Hunter <jon-hunter@ti.com> Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-onenand.c')
0 files changed, 0 insertions, 0 deletions