ARM: OMAP2+: gpmc: get number of useable GPMC chip-selects via DT
authorGupta Pekon <pekon@ti.com>
Fri, 31 May 2013 12:01:30 +0000 (17:31 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 12 Jun 2013 16:54:28 +0000 (09:54 -0700)
commitf34f37160c2960a763ed05d1e13b2ea75a48d0fb
tree62afbbc1a3b12c9d7ec4fb346d98da6732fb41b2
parentf40739faba8e804cf46505869ab98ad7c4a88833
ARM: OMAP2+: gpmc: get number of useable GPMC chip-selects via DT

This patch enables usage of DT property 'gpmc,num-cs' as already documented in
Documentation/devicetree/bindings/bus/ti-gpmc.txt

Though GPMC hardware supports upto 8 chip-selects, but all chip-selects may
not be available for use because:
- chip-select pin may not be bonded out at SoC device boundary.
- chip-select pin-mux may conflict with other pins usage.
- board level constrains.

gpmc,num-cs allows user to configure maximum number of GPMC chip-selects
available for use on any given platform. This ensures:
- GPMC child nodes having chip-selects within allowed range are only probed.
- And un-used GPMC chip-selects remain blocked.(may be for security reasons).

Signed-off-by: Gupta, Pekon <pekon@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c
This page took 0.02903 seconds and 5 git commands to generate.