diff options
author | Stafford Horne <[email protected]> | 2022-01-11 11:55:37 +0900 |
---|---|---|
committer | Stafford Horne <[email protected]> | 2022-01-12 06:13:22 +0900 |
commit | 7f435e42fd6b65fd8759963156e1ef0fb7d213f8 (patch) | |
tree | 259dd1e56a0352dcc00e0e32f2c7ea2f83bbe8c1 /arch/openrisc/kernel/time.c | |
parent | 433fe39f674d58bc7a3e8254a5d2ffc290b7e04e (diff) |
openrisc: init: Add support for common clk
When testing the new litex_mmc driver it was found to not work on
OpenRISC due to missing support for common clk. This patch does the
basic initialization to allow OpenRISC to use the common clk framework.
Signed-off-by: Stafford Horne <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'arch/openrisc/kernel/time.c')
-rw-r--r-- | arch/openrisc/kernel/time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/time.c b/arch/openrisc/kernel/time.c index a6e69386f82a..6d18989d63d0 100644 --- a/arch/openrisc/kernel/time.c +++ b/arch/openrisc/kernel/time.c @@ -20,6 +20,7 @@ #include <linux/clockchips.h> #include <linux/irq.h> #include <linux/io.h> +#include <linux/of_clk.h> #include <asm/cpuinfo.h> @@ -169,4 +170,7 @@ void __init time_init(void) openrisc_timer_init(); openrisc_clockevent_init(); + + of_clk_init(NULL); + timer_probe(); } |