linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] OMAP: DSS2: Framework to handle omap version specific DSS features
@ 2010-09-15 14:09 archit
  2010-09-15 14:09 ` [PATCH v4 1/2] OMAP: DSS2: Introduce dss_features files archit
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: archit @ 2010-09-15 14:09 UTC (permalink / raw)
  To: tomi.valkeinen; +Cc: linux-omap, Archit Taneja

From: Archit Taneja <archit@ti.com>

This is a simple approach to prevent scattered cpu_is_omapxxxx checks
in DSS2 by bringing all omap version specific DSS features/values to one
single place, initialize them and expose a set of functions to DSS2 driver
files which return the value/existance of a feature.

This method provides the following:
  -A set of functions which give the value of a feature.
  -Functions which add and return the start and end bits of a register field
   which varies across omaps.
  -A function which checks if a DSS2 feature exists or not on the present
   omap (omap_dss_has_feature)

Whenever a new DSS feature is introduced, its value/existance is specified
for all omaps in omap_dss_feature_init().

This patch also fills up a minimal list of features in omap_dss_features_init().
The second patch in the series makes use of dss_features to remove some of the
existing omapxxxx checks.

Archit Taneja (2):
  OMAP: DSS2: Introduce dss_features files
  OMAP: DSS2: Use dss_features framework on DSS2 code

 arch/arm/plat-omap/include/plat/display.h |   31 -----
 drivers/video/omap2/dss/Makefile          |    2 +-
 drivers/video/omap2/dss/core.c            |    3 +
 drivers/video/omap2/dss/dispc.c           |   56 +++++----
 drivers/video/omap2/dss/dss_features.c    |  191 +++++++++++++++++++++++++++++
 drivers/video/omap2/dss/dss_features.h    |   50 ++++++++
 drivers/video/omap2/dss/manager.c         |   33 +++---
 drivers/video/omap2/dss/overlay.c         |   24 ++--
 8 files changed, 302 insertions(+), 88 deletions(-)
 create mode 100644 drivers/video/omap2/dss/dss_features.c
 create mode 100644 drivers/video/omap2/dss/dss_features.h
--
Version 4:
 - all dss_features members are made const, better naming of some
   vaiables
Version 3:
 - Naming of register fields enums is changed, dss_features struct
   has some members changed as pointers to static arrays.
Version 2:
 - Features are initialized statically as opposed to runtime before,
   function naming for dss_features files has changed.
Version 1:
https://patchwork.kernel.org/patch/134431/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-10-07  8:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15 14:09 [PATCH v4 0/2] OMAP: DSS2: Framework to handle omap version specific DSS features archit
2010-09-15 14:09 ` [PATCH v4 1/2] OMAP: DSS2: Introduce dss_features files archit
2010-10-07  7:09   ` Tomi Valkeinen
2010-10-07  7:37     ` Taneja, Archit
2010-10-07  7:42       ` Tomi Valkeinen
2010-10-07  8:16         ` Taneja, Archit
2010-09-15 14:09 ` [PATCH v4 2/2] OMAP: DSS2: Use dss_features framework on DSS2 code archit
2010-09-21  7:51   ` Taneja, Archit
2010-09-15 17:59 ` [PATCH v4 0/2] OMAP: DSS2: Framework to handle omap version specific DSS features Tony Lindgren
2010-10-07  8:32   ` Tomi Valkeinen
2010-10-07  8:27 ` Tomi Valkeinen

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).