blob: 98062253d5b1ab8336759655c63968d8638cea9a [file] [log] [blame]
Abhijeet Dharmapurikar00269e52012-05-14 17:59:10 -07001/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
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
16#define KRAIT_REGULATOR_DRIVER_NAME "krait-power-regulator"
17
18/**
19 * krait_power_init - driver initialization function
20 *
21 * This function registers the krait-power-regulator platform driver. This
22 * should be called from appropriate initialization code. Returns 0 on
23 * success and error on failure.
24 */
Syed Rameez Mustafa2b519202012-12-13 14:41:44 -080025
26#ifdef CONFIG_ARCH_MSM8974
Abhijeet Dharmapurikar00269e52012-05-14 17:59:10 -070027int __init krait_power_init(void);
Abhijeet Dharmapurikare8571ef2012-08-14 20:44:58 -070028void secondary_cpu_hs_init(void *base_ptr);
Syed Rameez Mustafa2b519202012-12-13 14:41:44 -080029#else
30static inline int __init krait_power_init(void)
31{
32 return -ENOSYS;
33}
34
35static inline void secondary_cpu_hs_init(void *base_ptr) {}
36#endif
Abhijeet Dharmapurikar00269e52012-05-14 17:59:10 -070037
38#endif