Skip to contentSkip to conversation

clk: tegra124: Enable hda to hdmi clocks

PATCH Superseded Dylan Reid 3 participants 7 messages Apr 8, 2014 – Jun 2, 2014 5 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

Dylan Reid

author
#0 lore raw

PATCH 1/1 clk: tegra124: Enable hda to hdmi clocks

Add the clocks used for HDMI audio played through the HDA controller. Initialize the codec clock to 48Mhz and the HDA clock to 102MHz per the TRM.

---
 drivers/clk/tegra/clk-tegra124.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/clk/tegra/clk-tegra124.c +5 -0
index 166e02f..ab15d98 100644
@@ -1018,6 +1018,9 @@ static struct tegra_devclk devclks[] __initdata = {
 	{ .con_id = "fuse", .dt_id = TEGRA124_CLK_FUSE },
 	{ .dev_id = "rtc-tegra", .dt_id = TEGRA124_CLK_RTC },
 	{ .dev_id = "timer", .dt_id = TEGRA124_CLK_TIMER },
+	{ .con_id = "hda", .dt_id = TEGRA124_CLK_HDA },
+	{ .con_id = "hda2codec_2x", .dt_id = TEGRA124_CLK_HDA2CODEC_2X },
+	{ .con_id = "hda2hdmi", .dt_id = TEGRA124_CLK_HDA2HDMI },
 };
 
 static struct clk **clks;
@@ -1371,6 +1374,8 @@ static struct tegra_clk_init_table init_table[] __initdata = {
 	{TEGRA124_CLK_SBC4, TEGRA124_CLK_PLL_P, 12000000, 1},
 	{TEGRA124_CLK_TSEC, TEGRA124_CLK_PLL_C3, 0, 0},
 	{TEGRA124_CLK_MSENC, TEGRA124_CLK_PLL_C3, 0, 0},
+	{TEGRA124_CLK_HDA, TEGRA124_CLK_PLL_P, 102000000, 0},
+	{TEGRA124_CLK_HDA2CODEC_2X, TEGRA124_CLK_PLL_P, 48000000, 0},
 	/* This MUST be the last entry. */
 	{TEGRA124_CLK_CLK_MAX, TEGRA124_CLK_CLK_MAX, 0, 0},
 };
Signature · 1 line
1.8.1.3.605.g02339dd
#4 lore raw
In reply to a message not in the archive

At Tue, 15 Apr 2014 12:19:06 -0600,

Quoted 10 lines · Stephen Warren
Quoted 3 lines · Dylan Reid

Add the clocks used for HDMI audio played through the HDA controller. Initialize the codec clock to 48Mhz and the HDA clock to 102MHz per the TRM.

This patch seems fine to me. Peter, I assume you'll apply this and eventually sent a pull request to Mike.

I guess this is basically needed for Tegra HD-audio HDMI stuff, so I'd need to pull the change to my branch once when applying other Dylan's patches. Let me know the pull-able branch once when merged. Alternatively, I can apply the all patches in series to my tree if it's easier, too. Just let me know what you guys prefer.

(BTW, Dylan, v3 patches haven't been submitted yet, right?)

thanks,

Takashi

#6 lore raw
In reply to a message not in the archive
Quoted 11 lines · Takashi Iwai

At Tue, 15 Apr 2014 12:19:06 -0600,

Quoted 9 lines · Stephen Warren
Quoted 3 lines · Dylan Reid

Add the clocks used for HDMI audio played through the HDA controller. Initialize the codec clock to 48Mhz and the HDA clock to 102MHz per the TRM.

This patch seems fine to me. Peter, I assume you'll apply this and eventually sent a pull request to Mike.

Quoted 7 lines
Quoted 1 line

I guess this is basically needed for Tegra HD-audio HDMI stuff, so I'd need to pull the change to my branch once when applying other Dylan's patches. Let me know the pull-able branch once when merged. Alternatively, I can apply the all patches in series to my tree if it's easier, too. Just let me know what you guys prefer.

This change is only needed at run-time, not at compile-time, so there's no build-time dependency. Since this is a new feature, it's fine for it to only work once everything is merged together in linux-next, or Linus's tree, so there's to push it all through a single branch.

author
#11 lore raw
In reply to a message not in the archive
Quoted 13 lines · Takashi Iwai

At Tue, 15 Apr 2014 12:19:06 -0600,

Quoted 10 lines · Stephen Warren
Quoted 3 lines · Dylan Reid

Add the clocks used for HDMI audio played through the HDA controller. Initialize the codec clock to 48Mhz and the HDA clock to 102MHz per the TRM.

This patch seems fine to me. Peter, I assume you'll apply this and eventually sent a pull request to Mike.

Quoted 7 lines

I guess this is basically needed for Tegra HD-audio HDMI stuff, so I'd need to pull the change to my branch once when applying other Dylan's patches. Let me know the pull-able branch once when merged. Alternatively, I can apply the all patches in series to my tree if it's easier, too. Just let me know what you guys prefer.

(BTW, Dylan, v3 patches haven't been submitted yet, right?)

I'll send it out later today, found a runtime pm bug that I want to fix first.

Thanks,

Dylan

Quoted 5 lines

thanks,

Takashi

#8 lore raw
In reply to a message not in the archive

At Wed, 16 Apr 2014 09:55:01 -0600,

Quoted 21 lines · Stephen Warren
Quoted 11 lines · Takashi Iwai

At Tue, 15 Apr 2014 12:19:06 -0600,

Quoted 9 lines · Stephen Warren
Quoted 3 lines · Dylan Reid

Add the clocks used for HDMI audio played through the HDA controller. Initialize the codec clock to 48Mhz and the HDA clock to 102MHz per the TRM.

This patch seems fine to me. Peter, I assume you'll apply this and eventually sent a pull request to Mike.

Quoted 7 lines
Quoted 1 line

I guess this is basically needed for Tegra HD-audio HDMI stuff, so I'd need to pull the change to my branch once when applying other Dylan's patches. Let me know the pull-able branch once when merged. Alternatively, I can apply the all patches in series to my tree if it's easier, too. Just let me know what you guys prefer.

Quoted 4 lines

This change is only needed at run-time, not at compile-time, so there's no build-time dependency. Since this is a new feature, it's fine for it to only work once everything is merged together in linux-next, or Linus's tree, so there's to push it all through a single branch.

This fix seems still missing in linux-next. Note that the whole Tegra HDMI audio driver patches have been already included in for-next branch of sound git tree.

Takashi

author
#10 lore raw
In reply to a message not in the archive
Quoted 23 lines · Takashi Iwai

At Wed, 16 Apr 2014 09:55:01 -0600,

Quoted 21 lines · Stephen Warren
Quoted 18 lines · Takashi Iwai

At Tue, 15 Apr 2014 12:19:06 -0600,

Quoted 10 lines · Stephen Warren
Quoted 3 lines · Dylan Reid

Add the clocks used for HDMI audio played through the HDA controller. Initialize the codec clock to 48Mhz and the HDA clock to 102MHz per the TRM.

This patch seems fine to me. Peter, I assume you'll apply this and eventually sent a pull request to Mike.

I guess this is basically needed for Tegra HD-audio HDMI stuff, so I'd need to pull the change to my branch once when applying other Dylan's patches. Let me know the pull-able branch once when merged. Alternatively, I can apply the all patches in series to my tree if it's easier, too. Just let me know what you guys prefer.

Quoted 8 lines
Quoted 4 lines

This change is only needed at run-time, not at compile-time, so there's no build-time dependency. Since this is a new feature, it's fine for it to only work once everything is merged together in linux-next, or Linus's tree, so there's to push it all through a single branch.

This fix seems still missing in linux-next. Note that the whole Tegra HDMI audio driver patches have been already included in for-next branch of sound git tree.

Thanks for checking Takashi,

I thought it was going through Peter's tree. Peter have you had a chance to take a look?

Thanks,

Dylan

Quoted 7 lines

Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html