OSDN Git Service

OMAPDSS: generic dpi panel: handle gpios in panel driver
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 12 Feb 2013 09:29:17 +0000 (14:59 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 Apr 2013 12:19:46 +0000 (15:19 +0300)
commit0801711e1eea061cfdec2ad5bf1be687f7098c06
treecbf3f2277ce8b7084a91f24e5e1738940792569b
parentba7b2d987dea0847782e8ad9a7bcc9429896d7ac
OMAPDSS: generic dpi panel: handle gpios in panel driver

The generic dpi panel driver leaves gpio configurations to the platform_enable
and disable calls in the platform's board file. These should happen in the
panel driver itself.

Add a generic way of passing gpio information to the generic dpi panel driver
via it's platform_data. This information includes the number of gpios used by
the panel, the gpio number and logic level (active high/low) for each gpio. This
gpio data will be used by the driver to request and configure the gpios required
by the panel.

This will help in removing the need for the panel drivers to have platform
related callbacks.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/displays/panel-generic-dpi.c