summaryrefslogtreecommitdiffstats
path: root/drivers/clk/socfpga/clk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/socfpga/clk.c')
-rw-r--r--drivers/clk/socfpga/clk.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c
index 6af0632..ade608f 100644
--- a/drivers/clk/socfpga/clk.c
+++ b/drivers/clk/socfpga/clk.c
@@ -12,6 +12,7 @@
*/
#include <common.h>
+#include <debug_ll.h>
#include <init.h>
#include <driver.h>
#include <linux/clk.h>
@@ -20,6 +21,8 @@
#include <linux/clkdev.h>
#include <linux/err.h>
+#include "clk.h"
+
/* Clock Manager offsets */
#define CLKMGR_CTRL 0x0
#define CLKMGR_BYPASS 0x4
@@ -52,7 +55,7 @@
#define div_mask(width) ((1 << (width)) - 1)
#define streq(a, b) (strcmp((a), (b)) == 0)
-static void __iomem *clk_mgr_base_addr;
+void __iomem *clk_mgr_base_addr;
struct clk_pll {
struct clk clk;
@@ -385,6 +388,12 @@ static void socfpga_register_clocks(struct device_d *dev, struct device_node *no
clk = socfpga_periph_clk(node);
else if (of_device_is_compatible(node, "altr,socfpga-gate-clk"))
clk = socfpga_gate_clk(node);
+ else if (of_device_is_compatible(node, "altr,socfpga-a10-pll-clock"))
+ clk = socfpga_a10_pll_init(node);
+ else if (of_device_is_compatible(node, "altr,socfpga-a10-perip-clk"))
+ clk = socfpga_a10_periph_init(node);
+ else if (of_device_is_compatible(node, "altr,socfpga-a10-gate-clk"))
+ clk = socfpga_a10_gate_init(node);
else
return;