Skip to content

Commit d91012f

Browse files
MrVanabelvesa
authored andcommitted
clk: imx93: switch to use new clk gate API
Use i.MX93 specific clk gate API Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20220830033137.4149542-7-peng.fan@oss.nxp.com
1 parent 0836c86 commit d91012f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/clk/imx/clk-imx93.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ static const struct imx93_clk_ccgr {
146146
char *parent_name;
147147
u32 off;
148148
unsigned long flags;
149+
u32 *shared_count;
149150
} ccgr_array[] = {
150151
{ IMX93_CLK_A55_GATE, "a55", "a55_root", 0x8000, },
151152
/* M33 critical clk for system run */
@@ -299,10 +300,9 @@ static int imx93_clocks_probe(struct platform_device *pdev)
299300

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

308308
imx_check_clk_hws(clks, IMX93_CLK_END);

0 commit comments

Comments
 (0)