aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2016-09-14 06:51:42 -0400
committerLee Jones <lee.jones@linaro.org>2016-10-04 10:48:05 -0400
commit45ff2b685a6e8588ed637ba711b9a42ad1963066 (patch)
tree2a6ddfe70c699d024682a2a21e51764fbdd5cac9
parentc45eab2cb06092aa61e67fc6801cf0d6fac29482 (diff)
mfd: db8500-prcmu: Remove unused *prcmu_set_ddr_opp() calls
There are no call sites for these functions. Strip them out. Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/db8500-prcmu.c19
-rw-r--r--include/linux/mfd/db8500-prcmu.h6
-rw-r--r--include/linux/mfd/dbx500-prcmu.h9
3 files changed, 0 insertions, 34 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index 388e268b9bcf..ca38a6a14110 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -938,25 +938,6 @@ int db8500_prcmu_get_ddr_opp(void)
938 return readb(PRCM_DDR_SUBSYS_APE_MINBW); 938 return readb(PRCM_DDR_SUBSYS_APE_MINBW);
939} 939}
940 940
941/**
942 * db8500_set_ddr_opp - set the appropriate DDR OPP
943 * @opp: The new DDR operating point to which transition is to be made
944 * Returns: 0 on success, non-zero on failure
945 *
946 * This function sets the operating point of the DDR.
947 */
948static bool enable_set_ddr_opp;
949int db8500_prcmu_set_ddr_opp(u8 opp)
950{
951 if (opp < DDR_100_OPP || opp > DDR_25_OPP)
952 return -EINVAL;
953 /* Changing the DDR OPP can hang the hardware pre-v21 */
954 if (enable_set_ddr_opp)
955 writeb(opp, PRCM_DDR_SUBSYS_APE_MINBW);
956
957 return 0;
958}
959
960/* Divide the frequency of certain clocks by 2 for APE_50_PARTLY_25_OPP. */ 941/* Divide the frequency of certain clocks by 2 for APE_50_PARTLY_25_OPP. */
961static void request_even_slower_clocks(bool enable) 942static void request_even_slower_clocks(bool enable)
962{ 943{
diff --git a/include/linux/mfd/db8500-prcmu.h b/include/linux/mfd/db8500-prcmu.h
index 0bd69446bb05..7ba67b55b312 100644
--- a/include/linux/mfd/db8500-prcmu.h
+++ b/include/linux/mfd/db8500-prcmu.h
@@ -538,7 +538,6 @@ int db8500_prcmu_get_arm_opp(void);
538int db8500_prcmu_set_ape_opp(u8 opp); 538int db8500_prcmu_set_ape_opp(u8 opp);
539int db8500_prcmu_get_ape_opp(void); 539int db8500_prcmu_get_ape_opp(void);
540int db8500_prcmu_request_ape_opp_100_voltage(bool enable); 540int db8500_prcmu_request_ape_opp_100_voltage(bool enable);
541int db8500_prcmu_set_ddr_opp(u8 opp);
542int db8500_prcmu_get_ddr_opp(void); 541int db8500_prcmu_get_ddr_opp(void);
543 542
544u32 db8500_prcmu_read(unsigned int reg); 543u32 db8500_prcmu_read(unsigned int reg);
@@ -594,11 +593,6 @@ static inline int prcmu_release_usb_wakeup_state(void)
594 return 0; 593 return 0;
595} 594}
596 595
597static inline int db8500_prcmu_set_ddr_opp(u8 opp)
598{
599 return 0;
600}
601
602static inline int db8500_prcmu_get_ddr_opp(void) 596static inline int db8500_prcmu_get_ddr_opp(void)
603{ 597{
604 return DDR_100_OPP; 598 return DDR_100_OPP;
diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h
index 5d374601404c..2e2c6a63a065 100644
--- a/include/linux/mfd/dbx500-prcmu.h
+++ b/include/linux/mfd/dbx500-prcmu.h
@@ -269,10 +269,6 @@ unsigned long prcmu_clock_rate(u8 clock);
269long prcmu_round_clock_rate(u8 clock, unsigned long rate); 269long prcmu_round_clock_rate(u8 clock, unsigned long rate);
270int prcmu_set_clock_rate(u8 clock, unsigned long rate); 270int prcmu_set_clock_rate(u8 clock, unsigned long rate);
271 271
272static inline int prcmu_set_ddr_opp(u8 opp)
273{
274 return db8500_prcmu_set_ddr_opp(opp);
275}
276static inline int prcmu_get_ddr_opp(void) 272static inline int prcmu_get_ddr_opp(void)
277{ 273{
278 return db8500_prcmu_get_ddr_opp(); 274 return db8500_prcmu_get_ddr_opp();
@@ -489,11 +485,6 @@ static inline int prcmu_get_arm_opp(void)
489 return ARM_100_OPP; 485 return ARM_100_OPP;
490} 486}
491 487
492static inline int prcmu_set_ddr_opp(u8 opp)
493{
494 return 0;
495}
496
497static inline int prcmu_get_ddr_opp(void) 488static inline int prcmu_get_ddr_opp(void)
498{ 489{
499 return DDR_100_OPP; 490 return DDR_100_OPP;