summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-01-19 19:10:33 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-19 19:10:32 -0800
commitc36e7978985cd40fc39f6fc67a77c25c2bf3a335 (patch)
tree3da681f1e0960001fa6615de40355cbcc9d7cf69 /drivers
parent51fd2735699e55778ae12a42ed33acdcd1b618a5 (diff)
parentc381d19d0dc6b3173919280c6bdd390be809bb0d (diff)
Merge "clk: qcom: Move the rbcpr clock voltage vote to active only"
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/qcom/gcc-sdm660.c2
-rw-r--r--drivers/clk/qcom/vdd-level-660.h10
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/clk/qcom/gcc-sdm660.c b/drivers/clk/qcom/gcc-sdm660.c
index 076ff3565ef4..d8ae85b65a47 100644
--- a/drivers/clk/qcom/gcc-sdm660.c
+++ b/drivers/clk/qcom/gcc-sdm660.c
@@ -818,7 +818,7 @@ static struct clk_rcg2 hmss_rbcpr_clk_src = {
.parent_names = gcc_parent_names_ao_1,
.num_parents = 3,
.ops = &clk_rcg2_ops,
- VDD_DIG_FMAX_MAP2(
+ VDD_DIG_FMAX_MAP2_AO(
LOWER, 19200000,
NOMINAL, 50000000),
},
diff --git a/drivers/clk/qcom/vdd-level-660.h b/drivers/clk/qcom/vdd-level-660.h
index f98a96033ea9..53317fe6d294 100644
--- a/drivers/clk/qcom/vdd-level-660.h
+++ b/drivers/clk/qcom/vdd-level-660.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -95,6 +95,14 @@
}, \
.num_rate_max = VDD_DIG_NUM
+#define VDD_DIG_FMAX_MAP2_AO(l1, f1, l2, f2) \
+ .vdd_class = &vdd_dig_ao, \
+ .rate_max = (unsigned long[VDD_DIG_NUM]) { \
+ [VDD_DIG_##l1] = (f1), \
+ [VDD_DIG_##l2] = (f2), \
+ }, \
+ .num_rate_max = VDD_DIG_NUM
+
#define VDD_DIG_FMAX_MAP3_AO(l1, f1, l2, f2, l3, f3) \
.vdd_class = &vdd_dig_ao, \
.rate_max = (unsigned long[VDD_DIG_NUM]) { \