diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-04-28 10:23:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-05-02 11:25:36 +0200 |
commit | ab5d15ff9e0dacfdf64532cf0921dc7db75e3be0 (patch) | |
tree | bc4bef697e244b5d71182dbe8ba304f6c9ff7550 /arch/arm/mach-versatile | |
parent | 469b8000bec7fe4310b683d4ce039cb759209667 (diff) | |
download | barebox-ab5d15ff9e0dacfdf64532cf0921dc7db75e3be0.tar.gz barebox-ab5d15ff9e0dacfdf64532cf0921dc7db75e3be0.tar.xz |
ARM: versatile: Use common clk framework
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-versatile')
-rw-r--r-- | arch/arm/mach-versatile/core.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 1e1ee92c2d..69ff82e9a5 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c @@ -41,39 +41,6 @@ #include <mach/versatile/platform.h> #include <mach/versatile/init.h> -struct clk { - unsigned long rate; -}; - -static struct clk ref_clk_dummy; - -static struct clk ref_clk_24 = { - .rate = 24000000, -}; - -unsigned long clk_get_rate(struct clk *clk) -{ - return clk->rate; -} -EXPORT_SYMBOL(clk_get_rate); - -/* enable and disable do nothing */ -int clk_set_rate(struct clk *clk, unsigned long rate) -{ - return 0; -} -EXPORT_SYMBOL(clk_set_rate); - -int clk_enable(struct clk *clk) -{ - return 0; -} -EXPORT_SYMBOL(clk_enable); - -void clk_disable(struct clk *clk) -{ -} -EXPORT_SYMBOL(clk_disable); /* 1Mhz / 256 */ #define TIMER_FREQ (1000000/256) @@ -134,22 +101,6 @@ static int vpb_clocksource_init(void) core_initcall(vpb_clocksource_init); -static struct clk_lookup clocks_lookups[] = { - CLKDEV_CON_ID("apb_pclk", &ref_clk_dummy), - CLKDEV_DEV_ID("uart-pl0110", &ref_clk_24), - CLKDEV_DEV_ID("uart-pl0111", &ref_clk_24), - CLKDEV_DEV_ID("uart-pl0112", &ref_clk_24), - CLKDEV_DEV_ID("uart-pl0113", &ref_clk_24), -}; - -static int versatile_clkdev_init(void) -{ - clkdev_add_table(clocks_lookups, ARRAY_SIZE(clocks_lookups)); - - return 0; -} -postcore_initcall(versatile_clkdev_init); - void versatile_register_uart(unsigned id) { resource_size_t start; |