Skip to content

OMAP: DSS2: Framework to handle omap version specific DSS features

[email protected] linux-omap 4 versions – Applied

Status from this message: Thanks, applied to DSS2 tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 8 repliesApplied
  2. v32 patches 6 repliesSuperseded
  3. v22 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches8 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2OMAP: DSS2: Introduce dss_features filesdrivers/video/omap2/dss/Makefile drivers/video/omap2/dss/dss_features.c drivers/video/omap2/dss/dss_features.h+242 -14 replies
2/2OMAP: DSS2: Use dss_features framework on DSS2 codearch/arm/plat-omap/include/plat/display.h drivers/video/omap2/dss/core.c drivers/video/omap2/dss/dispc.c +2 more+60 -871 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/2] OMAP: DSS2: Framework to handle omap version specific DSS features

From: Archit Taneja <[email protected]>

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/