Skip to content

Commit

Permalink
clk: imx93: switch to use new clk gate API
Browse files Browse the repository at this point in the history
Use i.MX93 specific clk gate API

Signed-off-by: Peng Fan <[email protected]>
Reviewed-by: Ye Li <[email protected]>
Reviewed-by: Jacky Bai <[email protected]>
Signed-off-by: Abel Vesa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
MrVan authored and abelvesa committed Sep 19, 2022
1 parent 0836c86 commit d91012f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/clk/imx/clk-imx93.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ static const struct imx93_clk_ccgr {
char *parent_name;
u32 off;
unsigned long flags;
u32 *shared_count;
} ccgr_array[] = {
{ IMX93_CLK_A55_GATE, "a55", "a55_root", 0x8000, },
/* M33 critical clk for system run */
Expand Down Expand Up @@ -299,10 +300,9 @@ static int imx93_clocks_probe(struct platform_device *pdev)

for (i = 0; i < ARRAY_SIZE(ccgr_array); i++) {
ccgr = &ccgr_array[i];
clks[ccgr->clk] = imx_clk_hw_gate4_flags(ccgr->name,
ccgr->parent_name,
base + ccgr->off, 0,
ccgr->flags);
clks[ccgr->clk] = imx93_clk_gate(NULL, ccgr->name, ccgr->parent_name,
ccgr->flags, base + ccgr->off, 0, 1, 1, 3,
ccgr->shared_count);
}

imx_check_clk_hws(clks, IMX93_CLK_END);
Expand Down

0 comments on commit d91012f

Please sign in to comment.