Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

OMAPDSS: Add enum dss_pll_id

In some cases we need global identifiers for the DSS PLLs, for example
when configuring clock muxing on DRA7. For this purpose let's add a
'enum dss_pll_id'.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

+9
+1
drivers/video/fbdev/omap2/dss/dsi.c
··· 5238 5238 } 5239 5239 5240 5240 pll->name = dsi->module_id == 0 ? "dsi0" : "dsi1"; 5241 + pll->id = dsi->module_id == 0 ? DSS_PLL_DSI1 : DSS_PLL_DSI2; 5241 5242 pll->clkin = clk; 5242 5243 pll->base = dsi->pll_base; 5243 5244
+7
drivers/video/fbdev/omap2/dss/dss.h
··· 100 100 DSS_WB_LCD3_MGR = 7, 101 101 }; 102 102 103 + enum dss_pll_id { 104 + DSS_PLL_DSI1, 105 + DSS_PLL_DSI2, 106 + DSS_PLL_HDMI, 107 + }; 108 + 103 109 struct dss_pll; 104 110 105 111 #define DSS_PLL_MAX_HSDIVS 4 ··· 156 150 157 151 struct dss_pll { 158 152 const char *name; 153 + enum dss_pll_id id; 159 154 160 155 struct clk *clkin; 161 156 struct regulator *regulator;
+1
drivers/video/fbdev/omap2/dss/hdmi_pll.c
··· 185 185 } 186 186 187 187 pll->name = "hdmi"; 188 + pll->id = DSS_PLL_HDMI; 188 189 pll->base = hpll->base; 189 190 pll->clkin = clk; 190 191