|
29 | 29 | #include <linux/v4l2-dv-timings.h>
|
30 | 30 | #include <linux/export.h>
|
31 | 31 | #include <linux/leds.h>
|
| 32 | +#include <linux/regulator/fixed.h> |
| 33 | +#include <linux/regulator/machine.h> |
32 | 34 |
|
33 | 35 | #include <media/i2c/tvp514x.h>
|
34 | 36 |
|
@@ -653,6 +655,19 @@ static struct i2c_board_info __initdata i2c_info[] = {
|
653 | 655 | },
|
654 | 656 | };
|
655 | 657 |
|
| 658 | +/* Fixed regulator support */ |
| 659 | +static struct regulator_consumer_supply fixed_supplies_3_3v[] = { |
| 660 | + /* Baseboard 3.3V: 5V -> TPS54310PWP -> 3.3V */ |
| 661 | + REGULATOR_SUPPLY("AVDD", "1-001b"), |
| 662 | + REGULATOR_SUPPLY("DRVDD", "1-001b"), |
| 663 | +}; |
| 664 | + |
| 665 | +static struct regulator_consumer_supply fixed_supplies_1_8v[] = { |
| 666 | + /* Baseboard 1.8V: 5V -> TPS54310PWP -> 1.8V */ |
| 667 | + REGULATOR_SUPPLY("IOVDD", "1-001b"), |
| 668 | + REGULATOR_SUPPLY("DVDD", "1-001b"), |
| 669 | +}; |
| 670 | + |
656 | 671 | #define DM644X_I2C_SDA_PIN GPIO_TO_PIN(2, 12)
|
657 | 672 | #define DM644X_I2C_SCL_PIN GPIO_TO_PIN(2, 11)
|
658 | 673 |
|
@@ -831,6 +846,11 @@ static __init void davinci_evm_init(void)
|
831 | 846 |
|
832 | 847 | dm644x_register_clocks();
|
833 | 848 |
|
| 849 | + regulator_register_always_on(0, "fixed-dummy", fixed_supplies_1_8v, |
| 850 | + ARRAY_SIZE(fixed_supplies_1_8v), 1800000); |
| 851 | + regulator_register_always_on(1, "fixed-dummy", fixed_supplies_3_3v, |
| 852 | + ARRAY_SIZE(fixed_supplies_3_3v), 3300000); |
| 853 | + |
834 | 854 | dm644x_init_devices();
|
835 | 855 |
|
836 | 856 | ret = dm644x_gpio_register();
|
|
0 commit comments