diff options
author | Mattias Nilsson <mattias.i.nilsson@stericsson.com> | 2011-08-12 04:28:10 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-24 08:09:18 -0400 |
commit | 73180f85f4ffbb66843f8248811b2ade29b22df2 (patch) | |
tree | 26b48bd3369e2f38d741bae92ceef25e8da35948 /include/linux/mfd/dbx500-prcmu.h | |
parent | fea799e3d3ab84ac675de7e48a13a79fb76b6e63 (diff) |
mfd: Move to the new db500 PRCMU API
Now that we have a shared API between the DB8500 and DB5500
PRCMU's, switch to using this neutral API instead. We delete the
parts of db8500-prcmu.h that is now PRCMU-neutral, and calls will
be diverted to respective driver. Common registers are in
dbx500-prcmu-regs.h and common accessors and defines in
<linux/mfd/dbx500-prcmu.h> This way we get a a lot more
abstraction and code reuse.
Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/dbx500-prcmu.h')
-rw-r--r-- | include/linux/mfd/dbx500-prcmu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h index 6c7584d69d8f..bac942f959c1 100644 --- a/include/linux/mfd/dbx500-prcmu.h +++ b/include/linux/mfd/dbx500-prcmu.h | |||
@@ -240,7 +240,7 @@ static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk, | |||
240 | static inline int prcmu_set_epod(u16 epod_id, u8 epod_state) | 240 | static inline int prcmu_set_epod(u16 epod_id, u8 epod_state) |
241 | { | 241 | { |
242 | if (machine_is_u5500()) | 242 | if (machine_is_u5500()) |
243 | return db5500_prcmu_set_epod(epod_id, epod_state); | 243 | return -EINVAL; |
244 | else | 244 | else |
245 | return db8500_prcmu_set_epod(epod_id, epod_state); | 245 | return db8500_prcmu_set_epod(epod_id, epod_state); |
246 | } | 246 | } |
@@ -295,7 +295,7 @@ int prcmu_get_ddr_opp(void); | |||
295 | static inline int prcmu_set_arm_opp(u8 opp) | 295 | static inline int prcmu_set_arm_opp(u8 opp) |
296 | { | 296 | { |
297 | if (machine_is_u5500()) | 297 | if (machine_is_u5500()) |
298 | return db5500_prcmu_set_arm_opp(opp); | 298 | return -EINVAL; |
299 | else | 299 | else |
300 | return db8500_prcmu_set_arm_opp(opp); | 300 | return db8500_prcmu_set_arm_opp(opp); |
301 | } | 301 | } |
@@ -303,7 +303,7 @@ static inline int prcmu_set_arm_opp(u8 opp) | |||
303 | static inline int prcmu_get_arm_opp(void) | 303 | static inline int prcmu_get_arm_opp(void) |
304 | { | 304 | { |
305 | if (machine_is_u5500()) | 305 | if (machine_is_u5500()) |
306 | return db5500_prcmu_get_arm_opp(); | 306 | return -EINVAL; |
307 | else | 307 | else |
308 | return db8500_prcmu_get_arm_opp(); | 308 | return db8500_prcmu_get_arm_opp(); |
309 | } | 309 | } |
@@ -362,7 +362,7 @@ static inline int prcmu_enable_dsipll(void) | |||
362 | static inline int prcmu_config_esram0_deep_sleep(u8 state) | 362 | static inline int prcmu_config_esram0_deep_sleep(u8 state) |
363 | { | 363 | { |
364 | if (machine_is_u5500()) | 364 | if (machine_is_u5500()) |
365 | return db5500_prcmu_config_esram0_deep_sleep(state); | 365 | return -EINVAL; |
366 | else | 366 | else |
367 | return db8500_prcmu_config_esram0_deep_sleep(state); | 367 | return db8500_prcmu_config_esram0_deep_sleep(state); |
368 | } | 368 | } |