Skip to content

Commit 3ea5704

Browse files
Chancel Liuabelvesa
authored andcommitted
clk: imx93: Add PDM IPG clk
The IPG clk and MCLK of PDM share the same control gate. Reviewed-by: Shengjiu Wang <[email protected]> Signed-off-by: Chancel Liu <[email protected]> Signed-off-by: Jacky Bai <[email protected]> Reviewed-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abel Vesa <[email protected]>
1 parent 2fe182d commit 3ea5704

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/clk/imx/clk-imx93.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static u32 share_count_sai1;
3232
static u32 share_count_sai2;
3333
static u32 share_count_sai3;
3434
static u32 share_count_mub;
35+
static u32 share_count_pdm;
3536

3637
static const char * const a55_core_sels[] = {"a55_alt", "arm_pll"};
3738
static const char *parent_names[MAX_SEL][4] = {
@@ -236,7 +237,8 @@ static const struct imx93_clk_ccgr {
236237
{ IMX93_CLK_USB_CONTROLLER_GATE, "usb_controller", "hsio_root", 0x9a00, },
237238
{ IMX93_CLK_USB_TEST_60M_GATE, "usb_test_60m", "hsio_usb_test_60m_root", 0x9a40, },
238239
{ IMX93_CLK_HSIO_TROUT_24M_GATE, "hsio_trout_24m", "osc_24m", 0x9a80, },
239-
{ IMX93_CLK_PDM_GATE, "pdm", "pdm_root", 0x9ac0, },
240+
{ IMX93_CLK_PDM_GATE, "pdm", "pdm_root", 0x9ac0, 0, &share_count_pdm},
241+
{ IMX93_CLK_PDM_IPG, "pdm_ipg_clk", "bus_aon_root", 0x9ac0, 0, &share_count_pdm},
240242
{ IMX93_CLK_MQS1_GATE, "mqs1", "sai1_root", 0x9b00, },
241243
{ IMX93_CLK_MQS2_GATE, "mqs2", "sai3_root", 0x9b40, },
242244
{ IMX93_CLK_AUD_XCVR_GATE, "aud_xcvr", "audio_xcvr_root", 0x9b80, },

0 commit comments

Comments
 (0)