diff options
author | Robert Tivy <rtivy@ti.com> | 2013-01-10 19:23:22 -0500 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2013-01-24 00:24:08 -0500 |
commit | 09810a853b9a7920ba8c250d18815ef236effc47 (patch) | |
tree | b541f5155812ca4cf199d386d125c0a3b49c5b34 /arch/arm/mach-davinci/da850.c | |
parent | af47e6bb8866ad57cfcfeceecf799edc3a658660 (diff) |
ARM: davinci: da850: add dsp clock definition
Added dsp clock definition, keyed to "davinci-rproc.0".
DSP clocks is derived from pll0 sysclk1. Add a clock tree
node for that too.
Signed-off-by: Robert Tivy <rtivy@ti.com>
[nsekhar@ti.com: merge addition of pll0 sysclk1 and dsp clock
into one commit. Add PSC_FORCE to dsp clock node to handle the
case where DSP does not go into IDLE and its clock needs to
be disabled.]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 6b9154e9f908..0c4a26ddebba 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -76,6 +76,13 @@ static struct clk pll0_aux_clk = { | |||
76 | .flags = CLK_PLL | PRE_PLL, | 76 | .flags = CLK_PLL | PRE_PLL, |
77 | }; | 77 | }; |
78 | 78 | ||
79 | static struct clk pll0_sysclk1 = { | ||
80 | .name = "pll0_sysclk1", | ||
81 | .parent = &pll0_clk, | ||
82 | .flags = CLK_PLL, | ||
83 | .div_reg = PLLDIV1, | ||
84 | }; | ||
85 | |||
79 | static struct clk pll0_sysclk2 = { | 86 | static struct clk pll0_sysclk2 = { |
80 | .name = "pll0_sysclk2", | 87 | .name = "pll0_sysclk2", |
81 | .parent = &pll0_clk, | 88 | .parent = &pll0_clk, |
@@ -368,10 +375,19 @@ static struct clk sata_clk = { | |||
368 | .flags = PSC_FORCE, | 375 | .flags = PSC_FORCE, |
369 | }; | 376 | }; |
370 | 377 | ||
378 | static struct clk dsp_clk = { | ||
379 | .name = "dsp", | ||
380 | .parent = &pll0_sysclk1, | ||
381 | .domain = DAVINCI_GPSC_DSPDOMAIN, | ||
382 | .lpsc = DA8XX_LPSC0_GEM, | ||
383 | .flags = PSC_LRST | PSC_FORCE, | ||
384 | }; | ||
385 | |||
371 | static struct clk_lookup da850_clks[] = { | 386 | static struct clk_lookup da850_clks[] = { |
372 | CLK(NULL, "ref", &ref_clk), | 387 | CLK(NULL, "ref", &ref_clk), |
373 | CLK(NULL, "pll0", &pll0_clk), | 388 | CLK(NULL, "pll0", &pll0_clk), |
374 | CLK(NULL, "pll0_aux", &pll0_aux_clk), | 389 | CLK(NULL, "pll0_aux", &pll0_aux_clk), |
390 | CLK(NULL, "pll0_sysclk1", &pll0_sysclk1), | ||
375 | CLK(NULL, "pll0_sysclk2", &pll0_sysclk2), | 391 | CLK(NULL, "pll0_sysclk2", &pll0_sysclk2), |
376 | CLK(NULL, "pll0_sysclk3", &pll0_sysclk3), | 392 | CLK(NULL, "pll0_sysclk3", &pll0_sysclk3), |
377 | CLK(NULL, "pll0_sysclk4", &pll0_sysclk4), | 393 | CLK(NULL, "pll0_sysclk4", &pll0_sysclk4), |
@@ -413,6 +429,7 @@ static struct clk_lookup da850_clks[] = { | |||
413 | CLK("spi_davinci.1", NULL, &spi1_clk), | 429 | CLK("spi_davinci.1", NULL, &spi1_clk), |
414 | CLK("vpif", NULL, &vpif_clk), | 430 | CLK("vpif", NULL, &vpif_clk), |
415 | CLK("ahci", NULL, &sata_clk), | 431 | CLK("ahci", NULL, &sata_clk), |
432 | CLK("davinci-rproc.0", NULL, &dsp_clk), | ||
416 | CLK(NULL, NULL, NULL), | 433 | CLK(NULL, NULL, NULL), |
417 | }; | 434 | }; |
418 | 435 | ||