]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8267226fd84dc07c7b4e888a13463c539681c477
treecbf3f2277ce8b7084a91f24e5e1738940792569b
parentf6b3943774325ceb76e42f843f5becbd3997c298
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