diff options
Diffstat (limited to 'include/linux/regulator/fixed.h')
-rw-r--r-- | include/linux/regulator/fixed.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/regulator/fixed.h b/include/linux/regulator/fixed.h index 936a7d8c11a9..f83f7440b488 100644 --- a/include/linux/regulator/fixed.h +++ b/include/linux/regulator/fixed.h | |||
@@ -26,6 +26,12 @@ struct regulator_init_data; | |||
26 | * @gpio: GPIO to use for enable control | 26 | * @gpio: GPIO to use for enable control |
27 | * set to -EINVAL if not used | 27 | * set to -EINVAL if not used |
28 | * @startup_delay: Start-up time in microseconds | 28 | * @startup_delay: Start-up time in microseconds |
29 | * @gpio_is_open_drain: Gpio pin is open drain or normal type. | ||
30 | * If it is open drain type then HIGH will be set | ||
31 | * through PULL-UP with setting gpio as input | ||
32 | * and low will be set as gpio-output with driven | ||
33 | * to low. For non-open-drain case, the gpio will | ||
34 | * will be in output and drive to low/high accordingly. | ||
29 | * @enable_high: Polarity of enable GPIO | 35 | * @enable_high: Polarity of enable GPIO |
30 | * 1 = Active high, 0 = Active low | 36 | * 1 = Active high, 0 = Active low |
31 | * @enabled_at_boot: Whether regulator has been enabled at | 37 | * @enabled_at_boot: Whether regulator has been enabled at |
@@ -43,6 +49,7 @@ struct fixed_voltage_config { | |||
43 | int microvolts; | 49 | int microvolts; |
44 | int gpio; | 50 | int gpio; |
45 | unsigned startup_delay; | 51 | unsigned startup_delay; |
52 | unsigned gpio_is_open_drain:1; | ||
46 | unsigned enable_high:1; | 53 | unsigned enable_high:1; |
47 | unsigned enabled_at_boot:1; | 54 | unsigned enabled_at_boot:1; |
48 | struct regulator_init_data *init_data; | 55 | struct regulator_init_data *init_data; |