Skip to content

Commit 232a313

Browse files
lkundrakbebarino
authored andcommitted
clk: mmp2: Add the audio clock
This clocks the Audio block. Signed-off-by: Lubomir Rintel <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 71d8254 commit 232a313

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/clk/mmp/clk-of-mmp2.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#define APMU_USBHSIC0 0xf8
6363
#define APMU_USBHSIC1 0xfc
6464
#define APMU_GPU 0xcc
65+
#define APMU_AUDIO 0x10c
6566

6667
#define MPMU_FCCR 0x8
6768
#define MPMU_POSR 0x10
@@ -317,6 +318,8 @@ static u32 mmp2_gpu_bus_parent_table[] = { 0x0000, 0x0020, 0x0030,
317318
static const char * const mmp3_gpu_bus_parent_names[] = {"pll1_4", "pll1_6", "pll1_2", "pll2_2"};
318319
static const char * const mmp3_gpu_gc_parent_names[] = {"pll1", "pll2", "pll1_p", "pll2_p"};
319320

321+
static DEFINE_SPINLOCK(audio_lock);
322+
320323
static struct mmp_clk_mix_config ccic0_mix_config = {
321324
.reg_info = DEFINE_MIX_REG_INFO(4, 17, 2, 6, 32),
322325
};
@@ -372,6 +375,7 @@ static struct mmp_param_gate_clk apmu_gate_clks[] = {
372375
{MMP2_CLK_CCIC1_PHY, "ccic1_phy_clk", "ccic1_mix_clk", CLK_SET_RATE_PARENT, APMU_CCIC1, 0x24, 0x24, 0x0, 0, &ccic1_lock},
373376
{MMP2_CLK_CCIC1_SPHY, "ccic1_sphy_clk", "ccic1_sphy_div", CLK_SET_RATE_PARENT, APMU_CCIC1, 0x300, 0x300, 0x0, 0, &ccic1_lock},
374377
{MMP2_CLK_GPU_BUS, "gpu_bus_clk", "gpu_bus_mux", CLK_SET_RATE_PARENT, APMU_GPU, 0xa, 0xa, 0x0, MMP_CLK_GATE_NEED_DELAY, &gpu_lock},
378+
{MMP2_CLK_AUDIO, "audio_clk", "audio_mix_clk", CLK_SET_RATE_PARENT, APMU_AUDIO, 0x12, 0x12, 0x0, 0, &audio_lock},
375379
};
376380

377381
static struct mmp_param_gate_clk mmp2_apmu_gate_clks[] = {

0 commit comments

Comments
 (0)