Skip to content

Commit 6a78535

Browse files
TE-N-ShengjiuWangabelvesa
authored andcommitted
clk: imx93: Add IMX93_CLK_SPDIF_IPG clock
Split IMX93_CLK_SPDIF_IPG from IMX93_CLK_SPDIF_GATE because the IMX93_CLK_SPDIF_GATE controls the gate of IPG clock and root clock. Without this change, disabling IMX93_CLK_SPDIF_GATE would also disable the IPG clock, causing register access failures. Fixes: 1c4a4f7 ("arm64: dts: imx93: Add audio device nodes") Signed-off-by: Shengjiu Wang <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abel Vesa <[email protected]>
1 parent 32e9dea commit 6a78535

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/clk/imx/clk-imx93.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "clk.h"
1717

18-
#define IMX93_CLK_END 207
18+
#define IMX93_CLK_END 208
1919

2020
#define PLAT_IMX93 BIT(0)
2121
#define PLAT_IMX91 BIT(1)
@@ -38,6 +38,7 @@ static u32 share_count_sai2;
3838
static u32 share_count_sai3;
3939
static u32 share_count_mub;
4040
static u32 share_count_pdm;
41+
static u32 share_count_spdif;
4142

4243
static const char * const a55_core_sels[] = {"a55_alt", "arm_pll"};
4344
static const char *parent_names[MAX_SEL][4] = {
@@ -252,7 +253,8 @@ static const struct imx93_clk_ccgr {
252253
{ IMX93_CLK_MQS1_GATE, "mqs1", "sai1_root", 0x9b00, },
253254
{ IMX93_CLK_MQS2_GATE, "mqs2", "sai3_root", 0x9b40, },
254255
{ IMX93_CLK_AUD_XCVR_GATE, "aud_xcvr", "audio_xcvr_root", 0x9b80, },
255-
{ IMX93_CLK_SPDIF_GATE, "spdif", "spdif_root", 0x9c00, },
256+
{ IMX93_CLK_SPDIF_IPG, "spdif_ipg_clk", "bus_wakeup_root", 0x9c00, 0, &share_count_spdif},
257+
{ IMX93_CLK_SPDIF_GATE, "spdif", "spdif_root", 0x9c00, 0, &share_count_spdif},
256258
{ IMX93_CLK_HSIO_32K_GATE, "hsio_32k", "osc_32k", 0x9dc0, },
257259
{ IMX93_CLK_ENET1_GATE, "enet1", "wakeup_axi_root", 0x9e00, 0, NULL, PLAT_IMX93, },
258260
{ IMX93_CLK_ENET_QOS_GATE, "enet_qos", "wakeup_axi_root", 0x9e40, 0, NULL, PLAT_IMX93, },

0 commit comments

Comments
 (0)