Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Kukjin Kim <kgene.kim@samsung.com>
To: Arun Kumar K <arun.kk@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
	thomas.abraham@linaro.org, tomasz.figa@gmail.com,
	dianders@chromium.org, arunkk.samsung@gmail.com,
	Mike Turquette <mturquette@linaro.org>
Subject: Re: [PATCH v2] clk: Exynos5250: Add clocks for G3D
Date: Wed, 19 Jun 2013 22:36:47 +0900	[thread overview]
Message-ID: <51C1B3EF.3060702@samsung.com> (raw)
In-Reply-To: <1369639213-23515-1-git-send-email-arun.kk@samsung.com>

On 05/27/13 16:20, Arun Kumar K wrote:
> This patch adds the required clocks for ARM Mali IP
> in Exynos5250.
>
> Signed-off-by: Arun Kumar K<arun.kk@samsung.com>

(+ Mike)

Looks good to me.

Mike, I'd like take this into samsung tree for v3.11, if you have any 
concerns, please let me know.

Thanks,
- Kukjin

> ---
> Changes from v1
> - Removed exporting of parent DIV clock for g3d
>    as per Tomsz Figa's comment.
> ---
>   .../devicetree/bindings/clock/exynos5250-clock.txt         |    1 +
>   drivers/clk/samsung/clk-exynos5250.c                       |   12 +++++++++++-
>   2 files changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/clock/exynos5250-clock.txt b/Documentation/devicetree/bindings/clock/exynos5250-clock.txt
> index 1a05761..b3700cf 100644
> --- a/Documentation/devicetree/bindings/clock/exynos5250-clock.txt
> +++ b/Documentation/devicetree/bindings/clock/exynos5250-clock.txt
> @@ -155,6 +155,7 @@ clock which they consume.
>     dp			342
>     mixer			343
>     hdmi			344
> +  g3d			345
>
>   Example 1: An example of a clock controller node is listed below.
>
> diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c
> index 5c97e75..0d52c19 100644
> --- a/drivers/clk/samsung/clk-exynos5250.c
> +++ b/drivers/clk/samsung/clk-exynos5250.c
> @@ -23,6 +23,7 @@
>   #define DIV_CPU0		0x500
>   #define SRC_CORE1		0x4204
>   #define SRC_TOP0		0x10210
> +#define SRC_TOP1		0x10214
>   #define SRC_TOP2		0x10218
>   #define SRC_GSCL		0x10220
>   #define SRC_DISP1_0		0x1022c
> @@ -55,6 +56,7 @@
>   #define DIV_PERIC5		0x1056c
>   #define GATE_IP_GSCL		0x10920
>   #define GATE_IP_MFC		0x1092c
> +#define GATE_IP_G3D		0x10930
>   #define GATE_IP_GEN		0x10934
>   #define GATE_IP_FSYS		0x10944
>   #define GATE_IP_PERIC		0x10950
> @@ -98,7 +100,7 @@ enum exynos5250_clks {
>   	spi2, i2s1, i2s2, pcm1, pcm2, pwm, spdif, ac97, hsi2c0, hsi2c1, hsi2c2,
>   	hsi2c3, chipid, sysreg, pmu, cmu_top, cmu_core, cmu_mem, tzpc0, tzpc1,
>   	tzpc2, tzpc3, tzpc4, tzpc5, tzpc6, tzpc7, tzpc8, tzpc9, hdmi_cec, mct,
> -	wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi,
> +	wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, g3d,
>
>   	nr_clks,
>   };
> @@ -112,6 +114,7 @@ static __initdata unsigned long exynos5250_clk_regs[] = {
>   	DIV_CPU0,
>   	SRC_CORE1,
>   	SRC_TOP0,
> +	SRC_TOP1,
>   	SRC_TOP2,
>   	SRC_GSCL,
>   	SRC_DISP1_0,
> @@ -164,10 +167,12 @@ PNAME(mout_vpllsrc_p)	= { "fin_pll", "sclk_hdmi27m" };
>   PNAME(mout_vpll_p)	= { "mout_vpllsrc", "fout_vpll" };
>   PNAME(mout_cpll_p)	= { "fin_pll", "fout_cpll" };
>   PNAME(mout_epll_p)	= { "fin_pll", "fout_epll" };
> +PNAME(mout_gpll_p)	= { "fin_pll", "fout_gpll" };
>   PNAME(mout_mpll_user_p)	= { "fin_pll", "sclk_mpll" };
>   PNAME(mout_bpll_user_p)	= { "fin_pll", "sclk_bpll" };
>   PNAME(mout_aclk166_p)	= { "sclk_cpll", "sclk_mpll_user" };
>   PNAME(mout_aclk200_p)	= { "sclk_mpll_user", "sclk_bpll_user" };
> +PNAME(mout_aclk400_p)	= { "aclk_400_g3d_mid", "sclk_gpll" };
>   PNAME(mout_hdmi_p)	= { "div_hdmi_pixel", "sclk_hdmiphy" };
>   PNAME(mout_usb3_p)	= { "sclk_mpll_user", "sclk_cpll" };
>   PNAME(mout_group1_p)	= { "fin_pll", "fin_pll", "sclk_hdmi27m",
> @@ -223,6 +228,9 @@ struct samsung_mux_clock exynos5250_mux_clks[] __initdata = {
>   	MUX(none, "mout_aclk166", mout_aclk166_p, SRC_TOP0, 8, 1),
>   	MUX(none, "mout_aclk333", mout_aclk166_p, SRC_TOP0, 16, 1),
>   	MUX(none, "mout_aclk200", mout_aclk200_p, SRC_TOP0, 12, 1),
> +	MUX(none, "aclk_400_g3d_mid", mout_aclk200_p, SRC_TOP0, 20, 1),
> +	MUX(none, "sclk_gpll", mout_gpll_p, SRC_TOP2, 28, 1),
> +	MUX(none, "mout_aclk400", mout_aclk400_p, SRC_TOP1, 28, 1),
>   	MUX(none, "mout_cam_bayer", mout_group1_p, SRC_GSCL, 12, 4),
>   	MUX(none, "mout_cam0", mout_group1_p, SRC_GSCL, 16, 4),
>   	MUX(none, "mout_cam1", mout_group1_p, SRC_GSCL, 20, 4),
> @@ -262,6 +270,7 @@ struct samsung_div_clock exynos5250_div_clks[] __initdata = {
>   	DIV(none, "aclk166", "mout_aclk166", DIV_TOP0, 8, 3),
>   	DIV(none, "aclk333", "mout_aclk333", DIV_TOP0, 20, 3),
>   	DIV(none, "aclk200", "mout_aclk200", DIV_TOP0, 12, 3),
> +	DIV(none, "aclk_400_g3d", "mout_aclk400", DIV_TOP0, 24, 3),
>   	DIV(none, "div_cam_bayer", "mout_cam_bayer", DIV_GSCL, 12, 4),
>   	DIV(none, "div_cam0", "mout_cam0", DIV_GSCL, 16, 4),
>   	DIV(none, "div_cam1", "mout_cam1", DIV_GSCL, 20, 4),
> @@ -462,6 +471,7 @@ struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {
>   	GATE(dp, "dp", "aclk200", GATE_IP_DISP1, 4, 0, 0),
>   	GATE(mixer, "mixer", "aclk200", GATE_IP_DISP1, 5, 0, 0),
>   	GATE(hdmi, "hdmi", "aclk200", GATE_IP_DISP1, 6, 0, 0),
> +	GATE(g3d, "g3d", "aclk_400_g3d", GATE_IP_G3D, 0, 0, 0),
>   };
>
>   static __initdata struct of_device_id ext_clk_match[] = {

  reply	other threads:[~2013-06-19 13:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-27  7:20 [PATCH v2] clk: Exynos5250: Add clocks for G3D Arun Kumar K
2013-06-19 13:36 ` Kukjin Kim [this message]
2013-06-22 18:09   ` Mike Turquette
2013-08-14 10:23     ` Kukjin Kim
2013-08-14 10:38       ` Arun Kumar K

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=51C1B3EF.3060702@samsung.com \
    --to=kgene.kim@samsung.com \
    --cc=arun.kk@samsung.com \
    --cc=arunkk.samsung@gmail.com \
    --cc=dianders@chromium.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=mturquette@linaro.org \
    --cc=thomas.abraham@linaro.org \
    --cc=tomasz.figa@gmail.com \
    /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