clk: imx8mp: Fix 24M and 32k clock
Subsystems (3)
PATCH 1/1 clk: imx8mp: Fix 24M and 32k clock
Fix registration of 24M and 32k clock, those got applied or rebased incorrectly, so fill in the correct code.
Fixes 7a2c3be95a5 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX clock")
Signed-off-by Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Cc Ye Li <[email protected]>
--- drivers/clk/imx/clk-imx8mp.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
drivers/clk/imx/clk-imx8mp.c +11 -1
@@ -162,7 +162,9 @@ static const char *imx8mp_dram_core_sels[] = {"dram_pll_out", "dram_alt_root", }static int imx8mp_clk_probe (struct udevice *dev) { +struct clk osc_24m_clk, osc_32k_clk;void __iomem *base; +int ret; base = (void *)ANATOP_BASE_ADDR ;
@@ -215,7 +217,15 @@ static int imx8mp_clk_probe(struct udevice *dev)clk_dm (IMX8MP_SYS_PLL2_500M ,imx_clk_fixed_factor ("sys_pll2_500m" ,"sys_pll2_out" ,1 ,2 ));clk_dm (IMX8MP_SYS_PLL2_1000M ,imx_clk_fixed_factor ("sys_pll2_1000m" ,"sys_pll2_out" ,1 ,1 )); -clk_dm (IMX8MP_CLK_24M ,imx_clk_fixed_factor ("clock-osc-24m" ,"osc_24m" ,1 ,1 )); + ret =clk_get_by_name (dev,"osc_24m" , &osc_24m_clk); +if (ret) +return ret; +clk_dm (IMX8MP_CLK_24M ,dev_get_clk_ptr (osc_24m_clk.dev)); + + ret =clk_get_by_name (dev,"osc_32k" , &osc_32k_clk); +if (ret) +return ret; +clk_dm (IMX8MP_CLK_32K ,dev_get_clk_ptr (osc_32k_clk.dev)); base =dev_read_addr_ptr (dev);if (!base)
Signature · 1 line
2.35.1
PATCH 1/1 clk: imx8mp: Fix 24M and 32k clock
Quoted 8 lines
Fix registration of 24M and 32k clock, those got applied or rebased incorrectly, so fill in the correct code.
Fixes 7a2c3be95a5 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, HSIOMIX clock")Signed-off-by Marek Vasut <[email protected]>Cc Fabio Estevam <[email protected]>Cc Peng Fan <[email protected]>Cc Stefano Babic <[email protected]>Cc Ye Li <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================