aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/regulator
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/bq24022.h24
-rw-r--r--include/linux/regulator/fan53555-regulator.h63
-rw-r--r--include/linux/regulator/gpio-switch-regulator.h69
-rw-r--r--include/linux/regulator/max77663-regulator.h131
-rw-r--r--include/linux/regulator/max8907c-regulator.h46
-rw-r--r--include/linux/regulator/ricoh583-regulator.h63
-rw-r--r--include/linux/regulator/tps6236x-regulator.h54
-rw-r--r--include/linux/regulator/tps65090-regulator.h60
-rw-r--r--include/linux/regulator/tps6591x-regulator.h77
-rw-r--r--include/linux/regulator/tps80031-regulator.h89
10 files changed, 676 insertions, 0 deletions
diff --git a/include/linux/regulator/bq24022.h b/include/linux/regulator/bq24022.h
new file mode 100644
index 00000000000..a6d014005d4
--- /dev/null
+++ b/include/linux/regulator/bq24022.h
@@ -0,0 +1,24 @@
1/*
2 * Support for TI bq24022 (bqTINY-II) Dual Input (USB/AC Adpater)
3 * 1-Cell Li-Ion Charger connected via GPIOs.
4 *
5 * Copyright (c) 2008 Philipp Zabel
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 version 2 as
9 * published by the Free Software Foundation.
10 *
11 */
12
13struct regulator_init_data;
14
15/**
16 * bq24022_mach_info - platform data for bq24022
17 * @gpio_nce: GPIO line connected to the nCE pin, used to enable / disable charging
18 * @gpio_iset2: GPIO line connected to the ISET2 pin, used to limit charging current to 100 mA / 500 mA
19 */
20struct bq24022_mach_info {
21 int gpio_nce;
22 int gpio_iset2;
23 struct regulator_init_data *init_data;
24};
diff --git a/include/linux/regulator/fan53555-regulator.h b/include/linux/regulator/fan53555-regulator.h
new file mode 100644
index 00000000000..e2ed83bab4e
--- /dev/null
+++ b/include/linux/regulator/fan53555-regulator.h
@@ -0,0 +1,63 @@
1/*
2 * include/linux/regulator/fan53555.h
3 *
4 * Interface for regulator driver for FairChild fan53555 Processor power supply
5 *
6 * Copyright (C) 2011 NVIDIA Corporation
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 *
22 */
23
24#ifndef __REGULATOR_FAN53555_H
25#define __REGULATOR_FAN53555_H
26
27#include <linux/regulator/machine.h>
28
29/*
30 * struct fan53555_regulator_platform_data - fan53555 regulator platform data.
31 * When VSEL pin is low, VOUT is set by the VSEL0 register.
32 * When VSEL pin is high, VOUT is set by the VSEL1 register
33 *
34 * @reg_init_data: The regulator init data.
35 * @vsel_id: Select the voltage id register.
36 * @vsel0_buck_en: Software Buck enable when EN=high & VSEL=low
37 * @vsel0_mode: Force PWM mode(1) or Allow auto-PFM mode(0) during light load
38 * @init_vsel0_min_uV: initial micro volts when EN=high & VSEL=low
39 * @init_vsel0_max_uV: initial micro volts when EN=high & VSEL=low
40 * @vsel1_buck_en: Software Buck enable when EN=high & VSEL=high
41 * @vsel1_mode: Force PWM mode(1) or Allow auto-PFM mode(0) during light load
42 * @init_vsel1_min_uV: initial micro volts when EN=high & VSEL=high
43 * @init_vsel1_max_uV: initial micro volts when EN=high & VSEL=high
44 * @output_discharge: when the regulator is disabled, VOUT discharges
45 * @slew_rate: slew rate of trasitioning from a low to high voltage
46 */
47
48struct fan53555_regulator_platform_data {
49 struct regulator_init_data reg_init_data;
50 int vsel_id;
51 unsigned vsel0_buck_en:1;
52 unsigned vsel0_mode:1;
53 int init_vsel0_min_uV;
54 int init_vsel0_max_uV;
55 unsigned vsel1_buck_en:1;
56 unsigned vsel1_mode:1;
57 int init_vsel1_min_uV;
58 int init_vsel1_max_uV;
59 unsigned output_discharge:1;
60 unsigned slew_rate:3;
61};
62
63#endif /* __REGULATOR_FAN53555_H */
diff --git a/include/linux/regulator/gpio-switch-regulator.h b/include/linux/regulator/gpio-switch-regulator.h
new file mode 100644
index 00000000000..68776b93ef0
--- /dev/null
+++ b/include/linux/regulator/gpio-switch-regulator.h
@@ -0,0 +1,69 @@
1/*
2 * Copyright (c) 2011, NVIDIA Corporation.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef _GPIO_SWITCH_REGULATOR_H
20#define _GPIO_SWITCH_REGULATOR_H
21
22#include <linux/regulator/machine.h>
23
24/*
25 * struct gpio_switch_regulator_subdev_data - Gpio switch regulator subdevice
26 * data.
27 *
28 * Subdevice data to register a gpio regulator switch device driver.
29 *
30 * @regulator_name: The name of regulator.
31 * @input_supply: Input supply name.
32 * @id: The id of the switch.
33 * @gpio_nr: Gpio nr which controls this switch.
34 * @active_low: true if making gpio low makes voltage output enable.
35 * @init_state: 1 if init_state should be active.
36 * @voltages: Possible voltages to set at output. The values are in millivolt.
37 * @n_voltages: Number of voltages.
38 * @num_consumer_supplies: Number of cosumer supplies.
39 * @consumer_supplies: List of consumer spllies.
40 */
41struct gpio_switch_regulator_subdev_data {
42 const char *regulator_name;
43 const char *input_supply;
44 int id;
45 int gpio_nr;
46 int active_low;
47 int pin_group;
48 int init_state;
49 int *voltages;
50 unsigned n_voltages;
51 struct regulator_consumer_supply *consumer_supplies;
52 int num_consumer_supplies;
53 struct regulation_constraints constraints;
54 int (*enable_rail)(struct gpio_switch_regulator_subdev_data *pdata);
55 int (*disable_rail)(struct gpio_switch_regulator_subdev_data *pdata);
56
57};
58
59/**
60 * gpio_switch_regulator_platform_data - platform data for gpio_switch_regulator
61 * @num_subdevs: number of regulators used
62 * @subdevs: pointer to regulators used
63 */
64struct gpio_switch_regulator_platform_data {
65 int num_subdevs;
66 struct gpio_switch_regulator_subdev_data **subdevs;
67};
68
69#endif
diff --git a/include/linux/regulator/max77663-regulator.h b/include/linux/regulator/max77663-regulator.h
new file mode 100644
index 00000000000..d8ab389c425
--- /dev/null
+++ b/include/linux/regulator/max77663-regulator.h
@@ -0,0 +1,131 @@
1/*
2 * include/linux/regulator/max77663-regulator.h
3 * Maxim LDO and Buck regulators driver
4 *
5 * Copyright 2011-2012 Maxim Integrated Products, Inc.
6 * Copyright (C) 2011-2012 NVIDIA Corporation
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
12 *
13 */
14
15#ifndef __LINUX_REGULATOR_MAX77663_REGULATOR_H__
16#define __LINUX_REGULATOR_MAX77663_REGULATOR_H__
17
18#include <linux/regulator/machine.h>
19
20#define max77663_rails(_name) "max77663_"#_name
21
22enum max77663_regulator_id {
23 MAX77663_REGULATOR_ID_SD0,
24 MAX77663_REGULATOR_ID_DVSSD0,
25 MAX77663_REGULATOR_ID_SD1,