Skip to content

Commit 9c39fc1

Browse files
nsekharmturquette
authored andcommitted
clk: davinci: psc-dm365: fix few clocks
Fix parent of EMAC and voice codec PSC clocks. Documentation is clear on EMAC clock parent, but its not fully clear on parent of voice codec clock. The implementation chosen is matches arch/arm/mach-davinci/dm365.c. Add a comment explaining this for posterity. There is only one power domain on DM365. Fix the power domain of voice codec and vpss dac modules. While at it, add a comment explaining how the parent of vpss dac clock was derived. Note that this patch does not touch the parent of vpss dac clock. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: David Lechner <david@lechnology.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/20180525181150.17873-6-david@lechnology.com
1 parent 7f02f18 commit 9c39fc1

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

‎drivers/clk/davinci/psc-dm365.c‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,22 @@ static const struct davinci_lpsc_clk_info dm365_psc_info[] = {
6565
LPSC(31, 0, arm, pll2_sysclk2, NULL, LPSC_ALWAYS_ENABLED),
6666
LPSC(38, 0, spi3, pll1_sysclk4, spi3_clkdev, 0),
6767
LPSC(39, 0, spi4, pll1_auxclk, spi4_clkdev, 0),
68-
LPSC(40, 0, emac, pll2_sysclk4, emac_clkdev, 0),
69-
LPSC(44, 1, voice_codec, pll1_sysclk3, voice_codec_clkdev, 0),
70-
LPSC(46, 1, vpss_dac, pll1_sysclk3, vpss_dac_clkdev, 0),
68+
LPSC(40, 0, emac, pll1_sysclk4, emac_clkdev, 0),
69+
/*
70+
* The TRM (ARM Subsystem User's Guide) shows two clocks input into
71+
* voice codec module (PLL2 SYSCLK4 with a DIV2 and PLL1 SYSCLK4). Its
72+
* not fully clear from documentation which clock should be considered
73+
* as parent for PSC. The clock chosen here is to maintain
74+
* compatibility with existing code in arch/arm/mach-davinci/dm365.c
75+
*/
76+
LPSC(44, 0, voice_codec, pll2_sysclk4, voice_codec_clkdev, 0),
77+
/*
78+
* Its not fully clear from TRM (ARM Subsystem User's Guide) as to what
79+
* the parent of VPSS DAC LPSC should actually be. PLL1 SYSCLK3 feeds
80+
* into HDVICP and MJCP. The clock chosen here is to remain compatible
81+
* with code existing in arch/arm/mach-davinci/dm365.c
82+
*/
83+
LPSC(46, 0, vpss_dac, pll1_sysclk3, vpss_dac_clkdev, 0),
7184
LPSC(47, 0, vpss_master, pll1_sysclk5, vpss_master_clkdev, 0),
7285
LPSC(50, 0, mjcp, pll1_sysclk3, NULL, 0),
7386
{ }

0 commit comments

Comments
 (0)