hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/drivers/clk/socfpga/stratix10-clk.h
....@@ -14,7 +14,7 @@
1414 struct stratix10_pll_clock {
1515 unsigned int id;
1616 const char *name;
17
- const char *const *parent_names;
17
+ const struct clk_parent_data *parent_data;
1818 u8 num_parents;
1919 unsigned long flags;
2020 unsigned long offset;
....@@ -24,7 +24,7 @@
2424 unsigned int id;
2525 const char *name;
2626 const char *parent_name;
27
- const char *const *parent_names;
27
+ const struct clk_parent_data *parent_data;
2828 u8 num_parents;
2929 unsigned long flags;
3030 unsigned long offset;
....@@ -34,7 +34,7 @@
3434 unsigned int id;
3535 const char *name;
3636 const char *parent_name;
37
- const char *const *parent_names;
37
+ const struct clk_parent_data *parent_data;
3838 u8 num_parents;
3939 unsigned long flags;
4040 unsigned long offset;
....@@ -47,7 +47,7 @@
4747 unsigned int id;
4848 const char *name;
4949 const char *parent_name;
50
- const char *const *parent_names;
50
+ const struct clk_parent_data *parent_data;
5151 u8 num_parents;
5252 unsigned long flags;
5353 unsigned long gate_reg;
....@@ -60,21 +60,14 @@
6060 u8 fixed_div;
6161 };
6262
63
-struct clk *s10_register_pll(const char *, const char *const *, u8,
64
- unsigned long, void __iomem *, unsigned long);
65
-
66
-struct clk *s10_register_periph(const char *, const char *,
67
- const char * const *, u8, unsigned long,
68
- void __iomem *, unsigned long);
69
-struct clk *s10_register_cnt_periph(const char *, const char *,
70
- const char * const *, u8,
71
- unsigned long, void __iomem *,
72
- unsigned long, u8, unsigned long,
73
- unsigned long);
74
-struct clk *s10_register_gate(const char *, const char *,
75
- const char * const *, u8,
76
- unsigned long, void __iomem *,
77
- unsigned long, unsigned long,
78
- unsigned long, unsigned long, u8,
79
- unsigned long, u8, u8);
63
+struct clk *s10_register_pll(const struct stratix10_pll_clock *,
64
+ void __iomem *);
65
+struct clk *agilex_register_pll(const struct stratix10_pll_clock *,
66
+ void __iomem *);
67
+struct clk *s10_register_periph(const struct stratix10_perip_c_clock *,
68
+ void __iomem *);
69
+struct clk *s10_register_cnt_periph(const struct stratix10_perip_cnt_clock *,
70
+ void __iomem *);
71
+struct clk *s10_register_gate(const struct stratix10_gate_clock *,
72
+ void __iomem *);
8073 #endif /* __STRATIX10_CLK_H */