Commit b927c76c authored by Keguang Zhang's avatar Keguang Zhang Committed by Stephen Boyd

MIPS: loongson32: Update the clock initialization

The Loongson-1 clock driver is under re-implementation
to add DT support. As a result, ls1x_clk_init() will be dropped soon.
Therefore, call of_clk_init() for clock initialization instead.
Signed-off-by: default avatarKeguang Zhang <keguang.zhang@gmail.com>
Acked-by: default avatarStephen Boyd <sboyd@kernel.org>
Acked-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
Link: https://lore.kernel.org/r/20230321111817.71756-5-keguang.zhang@gmail.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent fbdb1873
...@@ -20,7 +20,6 @@ extern struct platform_device ls1x_gpio1_pdev; ...@@ -20,7 +20,6 @@ extern struct platform_device ls1x_gpio1_pdev;
extern struct platform_device ls1x_rtc_pdev; extern struct platform_device ls1x_rtc_pdev;
extern struct platform_device ls1x_wdt_pdev; extern struct platform_device ls1x_wdt_pdev;
void __init ls1x_clk_init(void);
void __init ls1x_rtc_set_extclk(struct platform_device *pdev); void __init ls1x_rtc_set_extclk(struct platform_device *pdev);
void __init ls1x_serial_set_uartclk(struct platform_device *pdev); void __init ls1x_serial_set_uartclk(struct platform_device *pdev);
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/of_clk.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/sizes.h> #include <linux/sizes.h>
#include <asm/time.h> #include <asm/time.h>
...@@ -211,7 +212,7 @@ void __init plat_time_init(void) ...@@ -211,7 +212,7 @@ void __init plat_time_init(void)
struct clk *clk = NULL; struct clk *clk = NULL;
/* initialize LS1X clocks */ /* initialize LS1X clocks */
ls1x_clk_init(); of_clk_init(NULL);
#ifdef CONFIG_CEVT_CSRC_LS1X #ifdef CONFIG_CEVT_CSRC_LS1X
/* setup LS1X PWM timer */ /* setup LS1X PWM timer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment