summaryrefslogtreecommitdiff
path: root/include/linux/regulator/msm-ldo-regulator.h
blob: ad04e294cfe6395c8d2243f8b88d02ec13b350c1 (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
/*
 * Copyright (c) 2015-2016, 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 __MSM_LDO_REGULATOR_H__
#define __MSM_LDO_REGULATOR_H__

/**
 * enum msm_ldo_supply_mode - supported operating modes by this regulator type.
 * Use negative logic to ensure BHS mode is treated as the safe default by the
 * the regulator framework. This is necessary since LDO mode can only be enabled
 * when several constraints are satisfied. Consumers of this regulator are
 * expected to request changes in operating modes through the use of
 * regulator_allow_bypass() passing in the desired LDO supply mode.
 * %BHS_MODE:	to select BHS as operating mode
 * %LDO_MODE:	to select LDO as operating mode
 */
enum msm_ldo_supply_mode {
	BHS_MODE = false,
	LDO_MODE = true,
};

#endif /* __MSM_LDO_REGULATOR_H__ */