]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Fix support for multiple devices on a GPMC chip select
authorTony Lindgren <tony@atomide.com>
Tue, 4 Nov 2014 01:45:01 +0000 (17:45 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 4 Nov 2014 01:45:01 +0000 (17:45 -0800)
commit271d8688493657009f5d8d66fa96f7d0fd8cf689
treef9c6f08f6ae8400a480c4381ad5c6fb68b3ae0e6
parent4536047f62429957273bdbba92d4124d1c9a6371
ARM: OMAP2+: Fix support for multiple devices on a GPMC chip select

There are cases where we have multiple device instances
connected to a single GPMC chip select. For example, there
are four UARTs on the Zoom debug boards that all share a
single chip select and a GPIO interrupt.

We do have support for this already in theory, but it's broken
because we're bailing out if the chip select is already taken.

To be able to provide checks on the chip select usage, let's
add new struct gpmc_cs_data so we can start using already
registered device names for checks.

Later on we probably want to start using struct gpmc_cs_data
as a wrapper for all the GPMC chipselect related data.

Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c