aboutsummaryrefslogtreecommitdiff
path: root/include/linux/regulator/krait-regulator.h
blob: 10d7e2675f8fe0af46136e60aa907eef224d8c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __KRAIT_REGULATOR_H__
#define __KRAIT_REGULATOR_H__

#define KRAIT_REGULATOR_DRIVER_NAME	"krait-power-regulator"
#define KRAIT_PDN_DRIVER_NAME		"krait-pdn"

/**
 * krait_power_init - driver initialization function
 *
 * This function registers the krait-power-regulator platform driver. This
 * should be called from appropriate initialization code. Returns 0 on
 * success and error on failure.
 */

#ifdef CONFIG_KRAIT_REGULATOR
int __init krait_power_init(void);
void secondary_cpu_hs_init(void *base_ptr, int cpu);
#else
static inline int __init krait_power_init(void)
{
	return -ENOSYS;
}

static inline void secondary_cpu_hs_init(void *base_ptr, int cpu) {}
#endif

#endif