Abhijeet Dharmapurikar | e8f8385 | 2013-02-06 18:57:17 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Abhijeet Dharmapurikar | 00269e5 | 2012-05-14 17:59:10 -0700 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __KRAIT_REGULATOR_H__ |
| 14 | #define __KRAIT_REGULATOR_H__ |
| 15 | |
Abhijeet Dharmapurikar | 46a7ad3 | 2013-02-23 12:50:19 -0800 | [diff] [blame] | 16 | #define KRAIT_REGULATOR_DRIVER_NAME "krait-power-regulator" |
| 17 | #define KRAIT_PDN_DRIVER_NAME "krait-pdn" |
Abhijeet Dharmapurikar | 00269e5 | 2012-05-14 17:59:10 -0700 | [diff] [blame] | 18 | |
| 19 | /** |
| 20 | * krait_power_init - driver initialization function |
| 21 | * |
| 22 | * This function registers the krait-power-regulator platform driver. This |
| 23 | * should be called from appropriate initialization code. Returns 0 on |
| 24 | * success and error on failure. |
| 25 | */ |
Syed Rameez Mustafa | 2b51920 | 2012-12-13 14:41:44 -0800 | [diff] [blame] | 26 | |
| 27 | #ifdef CONFIG_ARCH_MSM8974 |
Abhijeet Dharmapurikar | 00269e5 | 2012-05-14 17:59:10 -0700 | [diff] [blame] | 28 | int __init krait_power_init(void); |
Abhijeet Dharmapurikar | dd16785 | 2013-02-14 16:46:48 -0800 | [diff] [blame] | 29 | void secondary_cpu_hs_init(void *base_ptr, int cpu); |
Syed Rameez Mustafa | 2b51920 | 2012-12-13 14:41:44 -0800 | [diff] [blame] | 30 | #else |
| 31 | static inline int __init krait_power_init(void) |
| 32 | { |
| 33 | return -ENOSYS; |
| 34 | } |
| 35 | |
Abhijeet Dharmapurikar | dd16785 | 2013-02-14 16:46:48 -0800 | [diff] [blame] | 36 | static inline void secondary_cpu_hs_init(void *base_ptr, int cpu) {} |
Syed Rameez Mustafa | 2b51920 | 2012-12-13 14:41:44 -0800 | [diff] [blame] | 37 | #endif |
Abhijeet Dharmapurikar | 00269e5 | 2012-05-14 17:59:10 -0700 | [diff] [blame] | 38 | |
| 39 | #endif |