Thomas Gleixner | 9c92ab6 | 2019-05-29 07:17:56 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stephen Boyd | b3ee3ef | 2015-01-19 18:05:31 -0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2014, The Linux Foundation. All rights reserved. |
Stephen Boyd | b3ee3ef | 2015-01-19 18:05:31 -0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __QCOM_CLK_REGMAP_MUX_H__ |
| 7 | #define __QCOM_CLK_REGMAP_MUX_H__ |
| 8 | |
| 9 | #include <linux/clk-provider.h> |
| 10 | #include "clk-regmap.h" |
Abhishek Sahu | df96401 | 2017-12-13 19:55:33 +0530 | [diff] [blame] | 11 | #include "common.h" |
Stephen Boyd | b3ee3ef | 2015-01-19 18:05:31 -0800 | [diff] [blame] | 12 | |
| 13 | struct clk_regmap_mux { |
| 14 | u32 reg; |
| 15 | u32 shift; |
| 16 | u32 width; |
Abhishek Sahu | df96401 | 2017-12-13 19:55:33 +0530 | [diff] [blame] | 17 | const struct parent_map *parent_map; |
Stephen Boyd | b3ee3ef | 2015-01-19 18:05:31 -0800 | [diff] [blame] | 18 | struct clk_regmap clkr; |
| 19 | }; |
| 20 | |
| 21 | extern const struct clk_ops clk_regmap_mux_closest_ops; |
| 22 | |
| 23 | #endif |