@@ -24,6 +24,7 @@
#include <linux/input.h>
#include <linux/gpio_keys.h>
#include <linux/opp.h>
+#include <linux/regulator/driver.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
@@ -400,6 +401,38 @@ static struct regulator_init_data beagle_vpll2 = {
.consumer_supplies = beagle_vdvi_supplies,
};
+static struct regulator_consumer_supply beagle_vdd1_supply =
+ REGULATOR_SUPPLY("vcc", "mpu.0");
+
+static struct regulator_consumer_supply beagle_vdd2_supply =
+ REGULATOR_SUPPLY("vcc", "l3_main.0");
+
+static struct regulator_init_data beagle_vdd1 = {
+ .constraints = {
+ .name = "VDD1",
+ .min_uV = 600000,
+ .max_uV = 1450000,
+ .valid_modes_mask = REGULATOR_MODE_NORMAL
+ | REGULATOR_MODE_STANDBY,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ },
+ .num_consumer_supplies = 1,
+ .consumer_supplies = &beagle_vdd1_supply,
+};
+
+static struct regulator_init_data beagle_vdd2 = {
+ .constraints = {
+ .name = "VDD2",
+ .min_uV = 600000,
+ .max_uV = 1450000,
+ .valid_modes_mask = REGULATOR_MODE_NORMAL
+ | REGULATOR_MODE_STANDBY,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ },
+ .num_consumer_supplies = 1,
+ .consumer_supplies = &beagle_vdd2_supply,
+};
+
static struct twl4030_usb_data beagle_usb_data = {
.usb_mode = T2_USB_MODE_ULPI,
};
@@ -423,6 +456,8 @@ static struct twl4030_platform_data beagle_twldata = {
.vsim = &beagle_vsim,
.vdac = &beagle_vdac,
.vpll2 = &beagle_vpll2,
+ .vdd1 = &beagle_vdd1,
+ .vdd2 = &beagle_vdd2,
};
static struct i2c_board_info __initdata beagle_i2c_eeprom[] = {