OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
include
/
linux
/
regulator
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:23 AM
rwxr-xr-x
📄
ab8500.h
7.03 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
act8865.h
1.85 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
arizona-ldo1.h
532 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
arizona-micsupp.h
493 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
consumer.h
17.86 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
da9211.h
1.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
db8500-prcmu.h
1.14 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
driver.h
18.94 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fan53555.h
1.35 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fixed.h
2.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gpio-regulator.h
2.4 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
lp3971.h
1.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
lp3972.h
1.28 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
lp872x.h
2.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
machine.h
8.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
max1586.h
2.14 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
max8649.h
976 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
max8660.h
1.55 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
max8952.h
2.94 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
max8973-regulator.h
3.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mt6311.h
834 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mt6323-regulator.h
1.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mt6380-regulator.h
870 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mt6397-regulator.h
1.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
of_regulator.h
1.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pfuze100.h
2.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
qcom_smd-regulator.h
989 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
tps51632-regulator.h
1.62 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tps62360.h
1.85 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tps6507x.h
1.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
userspace-consumer.h
675 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: lp872x.h
Close
/* * Copyright 2012 Texas Instruments * * Author: Milo(Woogyom) Kim <milo.kim@ti.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #ifndef __LP872X_REGULATOR_H__ #define __LP872X_REGULATOR_H__ #include <linux/regulator/machine.h> #include <linux/platform_device.h> #include <linux/gpio.h> #define LP872X_MAX_REGULATORS 9 #define LP8720_ENABLE_DELAY 200 #define LP8725_ENABLE_DELAY 30000 enum lp872x_regulator_id { LP8720_ID_BASE, LP8720_ID_LDO1 = LP8720_ID_BASE, LP8720_ID_LDO2, LP8720_ID_LDO3, LP8720_ID_LDO4, LP8720_ID_LDO5, LP8720_ID_BUCK, LP8725_ID_BASE, LP8725_ID_LDO1 = LP8725_ID_BASE, LP8725_ID_LDO2, LP8725_ID_LDO3, LP8725_ID_LDO4, LP8725_ID_LDO5, LP8725_ID_LILO1, LP8725_ID_LILO2, LP8725_ID_BUCK1, LP8725_ID_BUCK2, LP872X_ID_MAX, }; enum lp872x_dvs_state { DVS_LOW = GPIOF_OUT_INIT_LOW, DVS_HIGH = GPIOF_OUT_INIT_HIGH, }; enum lp872x_dvs_sel { SEL_V1, SEL_V2, }; /** * lp872x_dvs * @gpio : gpio pin number for dvs control * @vsel : dvs selector for buck v1 or buck v2 register * @init_state : initial dvs pin state */ struct lp872x_dvs { int gpio; enum lp872x_dvs_sel vsel; enum lp872x_dvs_state init_state; }; /** * lp872x_regdata * @id : regulator id * @init_data : init data for each regulator */ struct lp872x_regulator_data { enum lp872x_regulator_id id; struct regulator_init_data *init_data; }; /** * lp872x_platform_data * @general_config : the value of LP872X_GENERAL_CFG register * @update_config : if LP872X_GENERAL_CFG register is updated, set true * @regulator_data : platform regulator id and init data * @dvs : dvs data for buck voltage control * @enable_gpio : gpio pin number for enable control */ struct lp872x_platform_data { u8 general_config; bool update_config; struct lp872x_regulator_data regulator_data[LP872X_MAX_REGULATORS]; struct lp872x_dvs *dvs; int enable_gpio; }; #endif