diff options
author | Dinh Nguyen <dinguyen@kernel.org> | 2018-03-21 09:20:12 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-04-06 10:12:35 -0700 |
commit | 07afb8db7340f9b6051a26c5c28f2ce74148f6b5 (patch) | |
tree | 0832c3b259b1427d079c8c574a99f266dd63b8b0 /drivers/clk/socfpga/clk.h | |
parent | 89727949ea1e5f8ec481cba4d5c71c32d8bff3bc (diff) | |
download | lwn-07afb8db7340f9b6051a26c5c28f2ce74148f6b5.tar.gz lwn-07afb8db7340f9b6051a26c5c28f2ce74148f6b5.zip |
clk: socfpga: stratix10: add clock driver for Stratix10 platform
Add a clock driver for the Stratix10 SoC. The driver is similar to the
Cyclone5/Arria10 platforms, with the exception that this driver only uses
one single clock binding.
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/socfpga/clk.h')
-rw-r--r-- | drivers/clk/socfpga/clk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/socfpga/clk.h b/drivers/clk/socfpga/clk.h index 9cf1230115b1..26c3a265cf78 100644 --- a/drivers/clk/socfpga/clk.h +++ b/drivers/clk/socfpga/clk.h @@ -54,9 +54,11 @@ struct socfpga_gate_clk { char *parent_name; u32 fixed_div; void __iomem *div_reg; + void __iomem *bypass_reg; struct regmap *sys_mgr_base_addr; u32 width; /* only valid if div_reg != 0 */ u32 shift; /* only valid if div_reg != 0 */ + u32 bypass_shift; /* only valid if bypass_reg != 0 */ u32 clk_phase[2]; }; @@ -65,8 +67,10 @@ struct socfpga_periph_clk { char *parent_name; u32 fixed_div; void __iomem *div_reg; + void __iomem *bypass_reg; u32 width; /* only valid if div_reg != 0 */ u32 shift; /* only valid if div_reg != 0 */ + u32 bypass_shift; /* only valid if bypass_reg != 0 */ }; #endif /* SOCFPGA_CLK_H */ |