From: tomi.valkeinen@nokia.com (Tomi Valkeinen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] OMAP: use generic panel data in board files
Date: Mon, 08 Nov 2010 14:19:23 +0200 [thread overview]
Message-ID: <1289218763.3297.47.camel@tubuntu> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC356087034BF2D67E@dbde02.ent.ti.com>
Hi,
On Fri, 2010-11-05 at 22:17 +0100, ext Taneja, Archit wrote:
> Hi,
>
> linux-omap-owner at vger.kernel.org wrote:
> > Introduce struct panel config data in panel.h, which will be
> > used to match the right panel configurations in generic DPI
> > panel driver and other future dsi panel drivers.
> >
> > Still keep sharp_ls_panel, since the sharp_ls_panel driver
> > contains blacklight control driver code which will be moved
> > out later. Then we can use generic DPI driver for sharp_ls_panel.
> >
> > Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
> > ---
> > arch/arm/mach-omap2/board-3430sdp.c | 10 +++-
> > arch/arm/mach-omap2/board-am3517evm.c | 19 +++++--
> > arch/arm/mach-omap2/board-cm-t35.c | 19 +++++--
> > arch/arm/mach-omap2/board-devkit8000.c | 22 +++++---
> > arch/arm/mach-omap2/board-igep0020.c | 10 +++-
> > arch/arm/mach-omap2/board-omap3beagle.c | 10 +++-
> > arch/arm/mach-omap2/board-omap3evm.c | 10 +++-
> > arch/arm/mach-omap2/board-omap3stalker.c | 19 +++++--
> > arch/arm/plat-omap/include/plat/nokia-dsi-panel.h | 31 -----------
> > arch/arm/plat-omap/include/plat/panel.h | 57
> > +++++++++++++++++++++ drivers/video/omap2/displays/panel-taal.c |
> > 26 ++++------ 11 files changed, 148 insertions(+), 85 deletions(-) delete
> > mode 100644 arch/arm/plat-omap/include/plat/nokia-dsi-panel.h
> > create mode 100644 arch/arm/plat-omap/include/plat/panel.h
>
> I am not totally sure about the need of removal of nokia-dsi-panel.h
> and the addition of a generic panel.h.
>
> I guess the reason why nokia-dsi-panel.h was introduced (and others that
> will be introduced in future) was to easily represent panel-specific data
> across different boards that use the same panel.
Right. Don't touch panel-taal.c or nokia-dsi-panel.h, they are not
related to this DPI panel stuff.
> For example, if there is a new panel which for some reson uses 2 pins, one
> for switching off and one for switching on the panel, then it would make sense
> to introduce a structure for this panel having members on_gpio and off_gpio, this
> struct could then be passed and accessed through dssdev->data in the panel's probe
> giving us the option to have different gpio numbers for different boards but finally
> being accessed in the same way by the driver.
>
> So, there isn't a need to generalize this struct and the corresponding header file
> for all panels and make it available for all board files.
>
> As far as the dummy panels are concerned, since the "name" is the only criteria to
> differentiate the panel, I think passing the name to the data member of omap_dss_device
> should itself be enough for the generic dpi driver to handle things.
I think it's a bit confusing to just put a string to the void *data
member, but fortunately we don't need to ponder about that: the generic
DPI panel should be told about reset_gpio, max_backlight_level,
platform_enable/disable and set/get_backlight, which need to be passed
in a struct. So a header and a struct is needed for this generic DPI
driver.
Tomi
next prev parent reply other threads:[~2010-11-08 12:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-05 19:43 [PATCH 0/3] OMAP: DSS2: introduce generic panel display driver (try #3) Bryan Wu
2010-11-05 19:43 ` [PATCH 1/3] OMAP: use generic panel data in board files Bryan Wu
2010-11-05 21:17 ` Taneja, Archit
2010-11-08 12:19 ` Tomi Valkeinen [this message]
2010-11-08 19:49 ` Bryan Wu
2010-11-08 12:26 ` Tomi Valkeinen
2010-11-08 19:43 ` Bryan Wu
2010-11-09 10:13 ` Tomi Valkeinen
2010-11-05 19:43 ` [PATCH 2/3] OMAP: DSS2: Add generic panel display driver Bryan Wu
2010-11-05 20:59 ` Taneja, Archit
2010-11-05 19:43 ` [PATCH 3/3] OMAP: DSS2: remove generic DPI panel driver duplicated panel drivers Bryan Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1289218763.3297.47.camel@tubuntu \
--to=tomi.valkeinen@nokia.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).