~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/max77686.h

Version: ~ [ linux-5.15-rc1 ] ~ [ linux-5.14.5 ] ~ [ linux-5.13.18 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.66 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.147 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.206 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.246 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.282 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.283 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * max77686.h - Driver for the Maxim 77686/802
  3  *
  4  *  Copyright (C) 2012 Samsung Electrnoics
  5  *  Chiwoong Byun <woong.byun@samsung.com>
  6  *
  7  * This program is free software; you can redistribute it and/or modify
  8  * it under the terms of the GNU General Public License as published by
  9  * the Free Software Foundation; either version 2 of the License, or
 10  * (at your option) any later version.
 11  *
 12  * This program is distributed in the hope that it will be useful,
 13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15  * GNU General Public License for more details.
 16  *
 17  * You should have received a copy of the GNU General Public License
 18  * along with this program; if not, write to the Free Software
 19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 20  *
 21  * This driver is based on max8997.h
 22  *
 23  * MAX77686 has PMIC, RTC devices.
 24  * The devices share the same I2C bus and included in
 25  * this mfd driver.
 26  */
 27 
 28 #ifndef __LINUX_MFD_MAX77686_H
 29 #define __LINUX_MFD_MAX77686_H
 30 
 31 #include <linux/regulator/consumer.h>
 32 
 33 /* MAX77686 regulator IDs */
 34 enum max77686_regulators {
 35         MAX77686_LDO1 = 0,
 36         MAX77686_LDO2,
 37         MAX77686_LDO3,
 38         MAX77686_LDO4,
 39         MAX77686_LDO5,
 40         MAX77686_LDO6,
 41         MAX77686_LDO7,
 42         MAX77686_LDO8,
 43         MAX77686_LDO9,
 44         MAX77686_LDO10,
 45         MAX77686_LDO11,
 46         MAX77686_LDO12,
 47         MAX77686_LDO13,
 48         MAX77686_LDO14,
 49         MAX77686_LDO15,
 50         MAX77686_LDO16,
 51         MAX77686_LDO17,
 52         MAX77686_LDO18,
 53         MAX77686_LDO19,
 54         MAX77686_LDO20,
 55         MAX77686_LDO21,
 56         MAX77686_LDO22,
 57         MAX77686_LDO23,
 58         MAX77686_LDO24,
 59         MAX77686_LDO25,
 60         MAX77686_LDO26,
 61         MAX77686_BUCK1,
 62         MAX77686_BUCK2,
 63         MAX77686_BUCK3,
 64         MAX77686_BUCK4,
 65         MAX77686_BUCK5,
 66         MAX77686_BUCK6,
 67         MAX77686_BUCK7,
 68         MAX77686_BUCK8,
 69         MAX77686_BUCK9,
 70 
 71         MAX77686_REG_MAX,
 72 };
 73 
 74 /* MAX77802 regulator IDs */
 75 enum max77802_regulators {
 76         MAX77802_BUCK1 = 0,
 77         MAX77802_BUCK2,
 78         MAX77802_BUCK3,
 79         MAX77802_BUCK4,
 80         MAX77802_BUCK5,
 81         MAX77802_BUCK6,
 82         MAX77802_BUCK7,
 83         MAX77802_BUCK8,
 84         MAX77802_BUCK9,
 85         MAX77802_BUCK10,
 86         MAX77802_LDO1,
 87         MAX77802_LDO2,
 88         MAX77802_LDO3,
 89         MAX77802_LDO4,
 90         MAX77802_LDO5,
 91         MAX77802_LDO6,
 92         MAX77802_LDO7,
 93         MAX77802_LDO8,
 94         MAX77802_LDO9,
 95         MAX77802_LDO10,
 96         MAX77802_LDO11,
 97         MAX77802_LDO12,
 98         MAX77802_LDO13,
 99         MAX77802_LDO14,
100         MAX77802_LDO15,
101         MAX77802_LDO17,
102         MAX77802_LDO18,
103         MAX77802_LDO19,
104         MAX77802_LDO20,
105         MAX77802_LDO21,
106         MAX77802_LDO23,
107         MAX77802_LDO24,
108         MAX77802_LDO25,
109         MAX77802_LDO26,
110         MAX77802_LDO27,
111         MAX77802_LDO28,
112         MAX77802_LDO29,
113         MAX77802_LDO30,
114         MAX77802_LDO32,
115         MAX77802_LDO33,
116         MAX77802_LDO34,
117         MAX77802_LDO35,
118 
119         MAX77802_REG_MAX,
120 };
121 
122 enum max77686_opmode {
123         MAX77686_OPMODE_NORMAL,
124         MAX77686_OPMODE_LP,
125         MAX77686_OPMODE_STANDBY,
126 };
127 
128 struct max77686_opmode_data {
129         int id;
130         int mode;
131 };
132 
133 #endif /* __LINUX_MFD_MAX77686_H */
134 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp