blob: bd2ca824cb1045082a853a0708c41652b0a62e00 [file] [log] [blame]
Abhijeet Dharmapurikare8f83852013-02-06 18:57:17 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Abhijeet Dharmapurikar00269e52012-05-14 17:59:10 -07002 *
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 Dharmapurikar46a7ad32013-02-23 12:50:19 -080016#define KRAIT_REGULATOR_DRIVER_NAME "krait-power-regulator"
17#define KRAIT_PDN_DRIVER_NAME "krait-pdn"
Abhijeet Dharmapurikar00269e52012-05-14 17:59:10 -070018
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 Mustafa2b519202012-12-13 14:41:44 -080026
27#ifdef CONFIG_ARCH_MSM8974
Abhijeet Dharmapurikar00269e52012-05-14 17:59:10 -070028int __init krait_power_init(void);
Abhijeet Dharmapurikardd167852013-02-14 16:46:48 -080029void secondary_cpu_hs_init(void *base_ptr, int cpu);
Syed Rameez Mustafa2b519202012-12-13 14:41:44 -080030#else
31static inline int __init krait_power_init(void)
32{
33 return -ENOSYS;
34}
35
Abhijeet Dharmapurikardd167852013-02-14 16:46:48 -080036static inline void secondary_cpu_hs_init(void *base_ptr, int cpu) {}
Syed Rameez Mustafa2b519202012-12-13 14:41:44 -080037#endif
Abhijeet Dharmapurikar00269e52012-05-14 17:59:10 -070038
39#endif