summaryrefslogtreecommitdiff
path: root/drivers/clk/x86/clk-cgu.h
diff options
context:
space:
mode:
authorRahul Tanwar <rtanwar@maxlinear.com>2022-10-13 09:48:32 +0300
committerStephen Boyd <sboyd@kernel.org>2022-10-18 01:27:36 +0300
commita5d49bd369b8588c0ee9d4d0a2c0160558a3ab69 (patch)
treea7d419b70eecf889090c66760dc4b29616435f89 /drivers/clk/x86/clk-cgu.h
parenteaabee88a88a26b108be8d120fc072dfaf462cef (diff)
downloadlinux-a5d49bd369b8588c0ee9d4d0a2c0160558a3ab69.tar.xz
clk: mxl: Add option to override gate clks
In MxL's LGM SoC, gate clocks can be controlled either from CGU clk driver i.e. this driver or directly from power management driver/daemon. It is dependent on the power policy/profile requirements of the end product. To support such use cases, provide option to override gate clks enable/disable by adding a flag GATE_CLK_HW which controls if these gate clks are controlled by HW i.e. this driver or overridden in order to allow it to be controlled by power profiles instead. Reviewed-by: Yi xin Zhu <yzhu@maxlinear.com> Signed-off-by: Rahul Tanwar <rtanwar@maxlinear.com> Link: https://lore.kernel.org/r/bdc9c89317b5d338a6c4f1d49386b696e947a672.1665642720.git.rtanwar@maxlinear.com [sboyd@kernel.org: Add braces on many line if-else] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/x86/clk-cgu.h')
-rw-r--r--drivers/clk/x86/clk-cgu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/x86/clk-cgu.h b/drivers/clk/x86/clk-cgu.h
index 0aa0f35d63a0..73ce84345f81 100644
--- a/drivers/clk/x86/clk-cgu.h
+++ b/drivers/clk/x86/clk-cgu.h
@@ -197,6 +197,7 @@ struct lgm_clk_branch {
/* clock flags definition */
#define CLOCK_FLAG_VAL_INIT BIT(16)
#define MUX_CLK_SW BIT(17)
+#define GATE_CLK_HW BIT(18)
#define LGM_MUX(_id, _name, _pdata, _f, _reg, \
_shift, _width, _cf, _v) \