diff options
author | Mattias Nilsson <mattias.i.nilsson@stericsson.com> | 2011-09-12 11:49:13 +0200 |
---|---|---|
committer | Robert Marklund <robert.marklund@stericsson.com> | 2011-10-05 13:01:18 +0200 |
commit | e9a5bc2c85fb33f2ecdd9392e3bc13d2624eaa1b (patch) | |
tree | dcef5371304934db25db0ef8a01d415884d4d6d5 /include/linux | |
parent | 1d4e311d63be8308451b89d7e7174a2c4722de2f (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/linux')
-rw-r--r-- | include/linux/mfd/db5500-prcmu.h | 5 | ||||
-rw-r--r-- | include/linux/mfd/dbx500-prcmu.h | 7 |
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; |