diff options
author | Dragos Bogdan <dragos.bogdan@analog.com> | 2020-04-10 17:38:23 +0200 |
---|---|---|
committer | Ley Foon Tan <ley.foon.tan@intel.com> | 2020-04-10 19:45:28 +0200 |
commit | f26e433185cb2830b933df3a4d378558fe2fccd9 (patch) | |
tree | f7f14a1575b4400f6008909a378265e39ff88c08 /arch/nios2/platform | |
parent | Linux 5.6 (diff) | |
download | linux-f26e433185cb2830b933df3a4d378558fe2fccd9.tar.xz linux-f26e433185cb2830b933df3a4d378558fe2fccd9.zip |
arch: nios2: Enable the common clk subsystem on Nios2
This patch adds support for common clock framework on Nios2. Clock
framework is commonly used in many drivers, and this patch makes it
available for the entire architecture, not just on a per-driver basis.
Signed-off-by: Beniamin Bia <beniamin.bia@analog.com>
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/nios2/platform')
-rw-r--r-- | arch/nios2/platform/platform.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/nios2/platform/platform.c b/arch/nios2/platform/platform.c index 2a35154ca153..9737a87121fa 100644 --- a/arch/nios2/platform/platform.c +++ b/arch/nios2/platform/platform.c @@ -15,6 +15,12 @@ #include <linux/slab.h> #include <linux/sys_soc.h> #include <linux/io.h> +#include <linux/clk-provider.h> + +static const struct of_device_id clk_match[] __initconst = { + { .compatible = "fixed-clock", .data = of_fixed_clk_setup, }, + {} +}; static int __init nios2_soc_device_init(void) { @@ -38,6 +44,8 @@ static int __init nios2_soc_device_init(void) } } + of_clk_init(clk_match); + return 0; } |