From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv4 02/10] CLK: TI: always enable DESHDCP clock
Date: Mon, 1 Jun 2015 14:49:09 -0700 [thread overview]
Message-ID: <20150601214908.GG30984@atomide.com> (raw)
In-Reply-To: <1433139798-23450-3-git-send-email-tomi.valkeinen@ti.com>
Hi Mike, Stephen & Tero,
* Tomi Valkeinen <tomi.valkeinen@ti.com> [150531 23:25]:
> DESHDCP clock is needed on DRA7 based SoCs to enable the DSS IP. That
> clock is an odd one, as it is not supposed to be any kind of core clock
> for DSS, and we don't even support HDCP, but the clock is still needed
> even for the HWMOD framework to be able to reset the DSS IP.
>
> As there's no support for multiple core clocks in the HWMOD framework,
> we don't have any obvious place to enable this clock when DSS IP is
> being enabled.
>
> Furthermore, the HDMI on OMAP5 DSS is the same as on DRA7, and OMAP5
> does not have any such clock configuration bit. This suggests that on
> OMAP5 the DESHDCP clock is always enabled, and for DRA7 we have the
> possibility to gate it.
>
> So, as we don't have any clean way to enable and disable the clock
> based on the need, this patch enables the clock at boot time, making it
> work similarly to OMAP5.
>
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This series seems like I should take it as a whole series..
Care to ack/nack on this one?
Regards,
Tony
> ---
> drivers/clk/ti/clk-7xx.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c
> index 2dd956b9affa..63b8323df918 100644
> --- a/drivers/clk/ti/clk-7xx.c
> +++ b/drivers/clk/ti/clk-7xx.c
> @@ -312,7 +312,7 @@ static struct ti_dt_clk dra7xx_clks[] = {
> int __init dra7xx_dt_clk_init(void)
> {
> int rc;
> - struct clk *abe_dpll_mux, *sys_clkin2, *dpll_ck;
> + struct clk *abe_dpll_mux, *sys_clkin2, *dpll_ck, *hdcp_ck;
>
> ti_dt_clocks_register(dra7xx_clks);
>
> @@ -348,5 +348,10 @@ int __init dra7xx_dt_clk_init(void)
> if (rc)
> pr_err("%s: failed to set USB_DPLL M2 OUT\n", __func__);
>
> + hdcp_ck = clk_get_sys(NULL, "dss_deshdcp_clk");
> + rc = clk_prepare_enable(hdcp_ck);
> + if (rc)
> + pr_err("%s: failed to set dss_deshdcp_clk\n", __func__);
> +
> return rc;
> }
> --
> 2.1.4
>
next prev parent reply other threads:[~2015-06-01 21:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-01 6:23 [PATCHv4 00/10] ARM: DRA7: add display support Tomi Valkeinen
2015-06-01 6:23 ` [PATCHv4 01/10] arm: dra7: add DESHDCP clock Tomi Valkeinen
2015-06-02 6:56 ` Tero Kristo
2015-06-01 6:23 ` [PATCHv4 02/10] CLK: TI: always enable " Tomi Valkeinen
2015-06-01 21:49 ` Tony Lindgren [this message]
2015-06-02 6:57 ` Tero Kristo
2015-06-01 6:23 ` [PATCHv4 03/10] arm/dts: dra7xx: add 'ti, set-rate-parent' for dss_dss_clk Tomi Valkeinen
2015-06-02 6:57 ` [PATCHv4 03/10] arm/dts: dra7xx: add 'ti,set-rate-parent' " Tero Kristo
2015-06-01 6:23 ` [PATCHv4 04/10] ARM: DRA7: hwmod: add DMM hwmod description Tomi Valkeinen
2015-06-01 22:24 ` Paul Walmsley
2015-06-01 6:23 ` [PATCHv4 05/10] ARM: DRA7: hwmod: set DSS submodule parent hwmods Tomi Valkeinen
2015-06-01 22:26 ` Paul Walmsley
2015-06-01 6:23 ` [PATCHv4 06/10] ARM: OMAP: display: change compat names to array Tomi Valkeinen
2015-06-03 15:42 ` Tony Lindgren
2015-06-01 6:23 ` [PATCHv4 07/10] ARM: OMAP2+: display: detect DRA7 DSS Tomi Valkeinen
2015-06-03 15:42 ` Tony Lindgren
2015-06-01 6:23 ` [PATCHv4 08/10] arm/dts: dra7.dtsi: add DSS support Tomi Valkeinen
2015-06-03 15:43 ` Tony Lindgren
2015-06-01 6:23 ` [PATCHv4 09/10] arm/dts: dra72-evm.dts: add HDMI Tomi Valkeinen
2015-06-03 15:43 ` Tony Lindgren
2015-06-01 6:23 ` [PATCHv4 10/10] arm/dts: am57xx-beagle-x15.dts: " Tomi Valkeinen
2015-06-01 21:51 ` Tony Lindgren
2015-06-02 6:28 ` Tomi Valkeinen
2015-06-03 11:26 ` Tomi Valkeinen
2015-06-03 15:44 ` Tony Lindgren
2015-06-03 16:01 ` Tomi Valkeinen
2015-06-03 16:10 ` Tony Lindgren
2015-06-03 17:16 ` Tony Lindgren
2015-06-04 6:13 ` 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=20150601214908.GG30984@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).