mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
Merge remote-tracking branches 'regulator/topic/mt6311', 'regulator/topic/ocp', 'regulator/topic/owner', 'regulator/topic/pfuze100' and 'regulator/topic/pwm' into regulator-next
This commit is contained in:
commit
3e683126f4
29 changed files with 510 additions and 65 deletions
|
@ -148,6 +148,7 @@ struct regulator_ops {
|
|||
int (*get_current_limit) (struct regulator_dev *);
|
||||
|
||||
int (*set_input_current_limit) (struct regulator_dev *, int lim_uA);
|
||||
int (*set_over_current_protection) (struct regulator_dev *);
|
||||
|
||||
/* enable/disable regulator */
|
||||
int (*enable) (struct regulator_dev *);
|
||||
|
|
|
@ -147,6 +147,7 @@ struct regulation_constraints {
|
|||
unsigned ramp_disable:1; /* disable ramp delay */
|
||||
unsigned soft_start:1; /* ramp voltage slowly */
|
||||
unsigned pull_down:1; /* pull down resistor when regulator off */
|
||||
unsigned over_current_protection:1; /* auto disable on over current */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
29
include/linux/regulator/mt6311.h
Normal file
29
include/linux/regulator/mt6311.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2015 MediaTek Inc.
|
||||
* Author: Henry Chen <henryc.chen@mediatek.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.
|
||||
*
|
||||
* 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 __LINUX_REGULATOR_MT6311_H
|
||||
#define __LINUX_REGULATOR_MT6311_H
|
||||
|
||||
#define MT6311_MAX_REGULATORS 2
|
||||
|
||||
enum {
|
||||
MT6311_ID_VDVFS = 0,
|
||||
MT6311_ID_VBIASN,
|
||||
};
|
||||
|
||||
#define MT6311_E1_CID_CODE 0x10
|
||||
#define MT6311_E2_CID_CODE 0x20
|
||||
#define MT6311_E3_CID_CODE 0x30
|
||||
|
||||
#endif /* __LINUX_REGULATOR_MT6311_H */
|
Loading…
Add table
Add a link
Reference in a new issue