summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMattias Nilsson <mattias.i.nilsson@stericsson.com>2011-09-12 11:49:13 +0200
committerJonas ABERG <jonas.aberg@stericsson.com>2011-09-29 09:07:24 +0200
commit9e7cead4b8c0c3e182c90653565c292a73b7dea1 (patch)
tree4fe9616ba307d2a60040673190d7f15d14139500 /include
parent69aea9a09b41410c04564a23d59da09267192da3 (diff)
u8500: change clk_get_rate for prcmu clocks
This patch changes the implementation of clk_get_rate for PRCMU clocks, so that it returns a rate according to the hardware settings instead of a hardcoded value. ST Ericsson ID: 343004, 359227 ST Ericsson FOSS-OUT ID: trivial ST Ericsson Linux next: - Change-Id: I9a4ff57884017dd22774553c5bcabbb0756a604f Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32138 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/db5500-prcmu.h5
-rw-r--r--include/linux/mfd/dbx500-prcmu.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mfd/db5500-prcmu.h b/include/linux/mfd/db5500-prcmu.h
index 9890687f582..f3f3115ae03 100644
--- a/include/linux/mfd/db5500-prcmu.h
+++ b/include/linux/mfd/db5500-prcmu.h
@@ -50,6 +50,11 @@ static inline int db5500_prcmu_request_clock(u8 clock, bool enable)
return 0;
}
+static inline unsigned long db5500_prcmu_clock_rate(u8 clock)
+{
+ return 0;
+}
+
static inline int db5500_prcmu_set_display_clocks(void)
{
return 0;
diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h
index c58060fa8d4..a0be8cba9fd 100644
--- a/include/linux/mfd/dbx500-prcmu.h
+++ b/include/linux/mfd/dbx500-prcmu.h
@@ -290,6 +290,8 @@ static inline int prcmu_request_clock(u8 clock, bool enable)
return db8500_prcmu_request_clock(clock, enable);
}
+unsigned long prcmu_clock_rate(u8 clock);
+
int prcmu_set_ape_opp(u8 opp);
int prcmu_get_ape_opp(void);
int prcmu_set_ddr_opp(u8 opp);
@@ -408,6 +410,11 @@ static inline int prcmu_request_clock(u8 clock, bool enable)
return 0;
}
+static inline unsigned long prcmu_clock_rate(u8 clock)
+{
+ return 0;
+}
+
static inline int prcmu_set_ape_opp(u8 opp)
{
return 0;