lkml.org 
[lkml]   [2021]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 062/260] clk: at91: sam9x60: Dont use audio PLL
    Date
    From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>

    [ Upstream commit 5bf7f4a249387a6062b9a14c8a77e7ba2fd6a53b ]

    On sam9x60, there is not audio PLL and so I2S and classD have to use one
    of the best matching parents for their generated clock.

    Fixes: 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
    Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
    Link: https://lkml.kernel.org/r/20200131115816.12483-1-codrin.ciubotariu@microchip.com
    Signed-off-by: Stephen Boyd <sboyd@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/clk/at91/sam9x60.c | 9 +++------
    1 file changed, 3 insertions(+), 6 deletions(-)

    diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c
    index e3f4c8f20223..bee1120e7041 100644
    --- a/drivers/clk/at91/sam9x60.c
    +++ b/drivers/clk/at91/sam9x60.c
    @@ -124,7 +124,6 @@ static const struct {
    char *n;
    u8 id;
    struct clk_range r;
    - bool pll;
    } sam9x60_gck[] = {
    { .n = "flex0_gclk", .id = 5, },
    { .n = "flex1_gclk", .id = 6, },
    @@ -144,11 +143,9 @@ static const struct {
    { .n = "sdmmc1_gclk", .id = 26, .r = { .min = 0, .max = 105000000 }, },
    { .n = "flex11_gclk", .id = 32, },
    { .n = "flex12_gclk", .id = 33, },
    - { .n = "i2s_gclk", .id = 34, .r = { .min = 0, .max = 105000000 },
    - .pll = true, },
    + { .n = "i2s_gclk", .id = 34, .r = { .min = 0, .max = 105000000 }, },
    { .n = "pit64b_gclk", .id = 37, },
    - { .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 },
    - .pll = true, },
    + { .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 }, },
    { .n = "tcb1_gclk", .id = 45, },
    { .n = "dbgu_gclk", .id = 47, },
    };
    @@ -285,7 +282,7 @@ static void __init sam9x60_pmc_setup(struct device_node *np)
    sam9x60_gck[i].n,
    parent_names, 6,
    sam9x60_gck[i].id,
    - sam9x60_gck[i].pll,
    + false,
    &sam9x60_gck[i].r);
    if (IS_ERR(hw))
    goto err_free;
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-09-20 20:37    [W:4.056 / U:0.876 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site