Skip to content

OMAP: DSS2: Generalize DSS clock source names

Archit Taneja linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3OMAP2PLUS: DSS2: Make members of dss_clk_source genericdrivers/video/omap2/dss/dispc.c drivers/video/omap2/dss/dpi.c drivers/video/omap2/dss/dsi.c +2 more+27 -270 replies
2/3OMAP2PLUS: DSS2: Use dss features to get clock source names of current OMAPdrivers/video/omap2/dss/dispc.c drivers/video/omap2/dss/dsi.c drivers/video/omap2/dss/dss.c +3 more+81 -180 replies
3/3OMAP2PLUS: DSS2: DSI: Generalize DSI PLL Clock Namingarch/arm/plat-omap/include/plat/display.h drivers/video/omap2/dss/dispc.c drivers/video/omap2/dss/dpi.c +3 more+87 -810 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] OMAP: DSS2: Generalize DSS clock source names

The OMAP Display Subsystem has multiple clock sources available for its modules. One of these sources has to be selected through a global control register called DSS_CTRL.

For example, on OMAP4, the Display Controller Module's (DISPC) functional clock can be derived from:
a) output of DPLL_PER's M5 divisor
b) output of DSI1 PLL's M4 divisor
c) output of DSI2 PLL's M4 divisor
d) output of HDMI PLL

There is, hence, an enum called 'dss_clk_source' which is used throughout DSS2, to select clock sources for various DSS sub modules. These clock source names are currently specific to OMAP2/3 TRM clock names.

All enum members, variables, functions which are based on these clock source names have been made generic such that they can be used for future OMAPs as well.

Archit Taneja (3):
OMAP2PLUS: DSS2: Make members of dss_clk_source generic
OMAP2PLUS: DSS2: Use dss features to get clock source names of
current OMAP
OMAP2PLUS: DSS2: DSI: Generalize DSI PLL Clock Naming

 arch/arm/plat-omap/include/plat/display.h |    4 +-
 drivers/video/omap2/dss/dispc.c           |   11 +-
 drivers/video/omap2/dss/dpi.c             |    8 +-
 drivers/video/omap2/dss/dsi.c             |  178 ++++++++++++++++-------------
 drivers/video/omap2/dss/dss.c             |   43 +++++---
 drivers/video/omap2/dss/dss.h             |   33 ++++--
 drivers/video/omap2/dss/dss_features.c    |   23 ++++
 drivers/video/omap2/dss/dss_features.h    |    1 +
 8 files changed, 185 insertions(+), 116 deletions(-)