From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Subject: [PATCH 01/14] OMAPDSS: Add enum dss_pll_id
Date: Tue, 27 Jan 2015 10:50:29 +0000 [thread overview]
Message-ID: <1422355842-11234-2-git-send-email-tomi.valkeinen@ti.com> (raw)
In-Reply-To: <1422355842-11234-1-git-send-email-tomi.valkeinen@ti.com>
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>
---
drivers/video/fbdev/omap2/dss/dsi.c | 1 +
drivers/video/fbdev/omap2/dss/dss.h | 7 +++++++
drivers/video/fbdev/omap2/dss/hdmi_pll.c | 1 +
3 files changed, 9 insertions(+)
diff --git a/drivers/video/fbdev/omap2/dss/dsi.c b/drivers/video/fbdev/omap2/dss/dsi.c
index 3e44c580b1f8..5081f6fb1737 100644
--- a/drivers/video/fbdev/omap2/dss/dsi.c
+++ b/drivers/video/fbdev/omap2/dss/dsi.c
@@ -5238,6 +5238,7 @@ static int dsi_init_pll_data(struct platform_device *dsidev)
}
pll->name = dsi->module_id = 0 ? "dsi0" : "dsi1";
+ pll->id = dsi->module_id = 0 ? DSS_PLL_DSI1 : DSS_PLL_DSI2;
pll->clkin = clk;
pll->base = dsi->pll_base;
diff --git a/drivers/video/fbdev/omap2/dss/dss.h b/drivers/video/fbdev/omap2/dss/dss.h
index 14fb0c23f4a2..1826ee96265b 100644
--- a/drivers/video/fbdev/omap2/dss/dss.h
+++ b/drivers/video/fbdev/omap2/dss/dss.h
@@ -100,6 +100,12 @@ enum dss_writeback_channel {
DSS_WB_LCD3_MGR = 7,
};
+enum dss_pll_id {
+ DSS_PLL_DSI1,
+ DSS_PLL_DSI2,
+ DSS_PLL_HDMI,
+};
+
struct dss_pll;
#define DSS_PLL_MAX_HSDIVS 4
@@ -150,6 +156,7 @@ struct dss_pll_hw {
struct dss_pll {
const char *name;
+ enum dss_pll_id id;
struct clk *clkin;
struct regulator *regulator;
diff --git a/drivers/video/fbdev/omap2/dss/hdmi_pll.c b/drivers/video/fbdev/omap2/dss/hdmi_pll.c
index ac83ef5cfd7d..b808f7c72d83 100644
--- a/drivers/video/fbdev/omap2/dss/hdmi_pll.c
+++ b/drivers/video/fbdev/omap2/dss/hdmi_pll.c
@@ -185,6 +185,7 @@ static int dsi_init_pll_data(struct platform_device *pdev, struct hdmi_pll_data
}
pll->name = "hdmi";
+ pll->id = DSS_PLL_HDMI;
pll->base = hpll->base;
pll->clkin = clk;
--
2.2.2
next prev parent reply other threads:[~2015-01-27 10:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-27 10:50 [PATCH 00/14] OMAPDSS: Add TI DRA7xx support Tomi Valkeinen
2015-01-27 10:50 ` Tomi Valkeinen [this message]
2015-01-27 10:50 ` [PATCH 02/14] OMAPDSS: PLL: add dss_pll_wait_reset_done() Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 03/14] OMAPDSS: constify port arrays Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 04/14] OMAPDSS: OMAP5: fix digit output's allowed mgrs Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 05/14] OMAPDSS: encoder-tpd12s015: Fix race issue with LS_OE Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 06/14] OMAPDSS: add define for DRA7xx HW version Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 07/14] Doc/DT: Add DT binding doc for DRA7xx DSS Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 08/14] OMAPDSS: DSS: Add DRA7xx base support Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 09/14] OMAPDSS: Add functions for external control of PLL Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 10/14] OMAPDSS: Add Video PLLs for DRA7xx Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 11/14] OMAPDSS: DISPC: Add DRA7xx support Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 12/14] OMAPDSS: DISPC: program dispc polarities to control module Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 13/14] OMAPDSS: HDMI: Add DRA7xx support Tomi Valkeinen
2015-01-27 10:50 ` [PATCH 14/14] OMAPDSS: DPI: " Tomi Valkeinen
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=1422355842-11234-2-git-send-email-tomi.valkeinen@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-omap@vger.kernel.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