diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-regulators.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-regulators.c | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c index c1281cbf363..1f5e31057c0 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.c +++ b/arch/arm/mach-ux500/board-mop500-regulators.c @@ -55,6 +55,84 @@ struct regulator_init_data gpio_en_3v3_regulator = { .num_consumer_supplies = ARRAY_SIZE(gpio_en_3v3_consumers), .consumer_supplies = gpio_en_3v3_consumers, }; + +/* + * GPIO regulator controlled by the ab8500 GPIO4 + * 3.3V for snowball lcd + */ +static struct regulator_consumer_supply gpio_en_lcd_3v3_consumers[] = { + REGULATOR_SUPPLY("lcd3v3", "mcde_display_dpi.5"), +}; + +struct regulator_init_data gpio_en_lcd_3v3_regulator = { + .constraints = { + .name = "LCD-3V3", + .min_uV = 3300000, + .max_uV = 3300000, + .valid_ops_mask = REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = ARRAY_SIZE(gpio_en_lcd_3v3_consumers), + .consumer_supplies = gpio_en_lcd_3v3_consumers, +}; + +/* + * GPIO regulator controlled by the ab8500 GPIO2 + * 1.8V for snowball lcd + */ +static struct regulator_consumer_supply gpio_en_lcd_1v8_consumers[] = { + REGULATOR_SUPPLY("lcd1v8", "mcde_display_dpi.5"), +}; + +struct regulator_init_data gpio_en_lcd_1v8_regulator = { + .constraints = { + .name = "LCD-1V8", + .min_uV = 1800000, + .max_uV = 1800000, + .valid_ops_mask = REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = ARRAY_SIZE(gpio_en_lcd_1v8_consumers), + .consumer_supplies = gpio_en_lcd_1v8_consumers, +}; + +/* + * GPIO regulator controlled by the ab8500 GPIO42 + * VLED Boost for snowball lcd + */ +static struct regulator_consumer_supply gpio_en_lcd_vled_boost_consumers[] = { + REGULATOR_SUPPLY("lcdvledboost", "mcde_display_dpi.5"), +}; + +struct regulator_init_data gpio_en_lcd_vled_boost_regulator = { + .constraints = { + .name = "LCD-VLED-BOOST", + .min_uV = 5000000, + .max_uV = 5000000, + .valid_ops_mask = REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = ARRAY_SIZE(gpio_en_lcd_vled_boost_consumers), + .consumer_supplies = gpio_en_lcd_vled_boost_consumers, +}; + +/* + * GPIO regulator controlled by the ab8500 GPIO41 + * VLED for snowball lcd + */ +static struct regulator_consumer_supply gpio_en_lcd_vled_consumers[] = { + REGULATOR_SUPPLY("lcdvled", "mcde_display_dpi.5"), +}; + +struct regulator_init_data gpio_en_lcd_vled_regulator = { + .constraints = { + .name = "LCD-VLED", + .min_uV = 5000000, + .max_uV = 5000000, + .valid_ops_mask = REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = ARRAY_SIZE(gpio_en_lcd_vled_consumers), + .consumer_supplies = gpio_en_lcd_vled_consumers, +}; + + #endif /* |