Commit 276a52f8b78cda65482ae52cb7d71259204676d3

Authored by Afzal Mohammed
1 parent fe9bf4373a
Exists in master

arm:omap:am33xx: MPU regulator

TPS65910 VDD1 SMPS is connected to MPU.
Add dummy entries for other regulators.

TODO: Replace dummy regulator entries
 with proper ones as required.

Signed-off-by: Afzal Mohammed <afzal@ti.com>

Showing 1 changed file with 39 additions and 0 deletions Side-by-side Diff

arch/arm/mach-omap2/board-am335xevm.c
... ... @@ -35,6 +35,7 @@
35 35 #include <linux/err.h>
36 36 #include <linux/wl12xx.h>
37 37 #include <linux/ethtool.h>
  38 +#include <linux/mfd/tps65910.h>
38 39  
39 40 /* LCD controller is similar to DA850 */
40 41 #include <video/da8xx-fb.h>
... ... @@ -1668,6 +1669,40 @@
1668 1669 .context = (void *)NULL,
1669 1670 };
1670 1671  
  1672 +static struct regulator_init_data am335x_dummy;
  1673 +
  1674 +static struct regulator_consumer_supply am335x_vdd1_supply[] = {
  1675 + REGULATOR_SUPPLY("mpu", "mpu.0"),
  1676 +};
  1677 +
  1678 +static struct regulator_init_data am335x_vdd1 = {
  1679 + .constraints = {
  1680 + .min_uV = 600000,
  1681 + .max_uV = 1500000,
  1682 + .valid_modes_mask = REGULATOR_MODE_NORMAL,
  1683 + .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
  1684 + .always_on = 1,
  1685 + },
  1686 + .num_consumer_supplies = ARRAY_SIZE(am335x_vdd1_supply),
  1687 + .consumer_supplies = am335x_vdd1_supply,
  1688 +};
  1689 +
  1690 +static struct tps65910_board am335x_tps65910_info = {
  1691 + .tps65910_pmic_init_data[TPS65910_REG_VRTC] = &am335x_dummy,
  1692 + .tps65910_pmic_init_data[TPS65910_REG_VIO] = &am335x_dummy,
  1693 + .tps65910_pmic_init_data[TPS65910_REG_VDD1] = &am335x_vdd1,
  1694 + .tps65910_pmic_init_data[TPS65910_REG_VDD2] = &am335x_dummy,
  1695 + .tps65910_pmic_init_data[TPS65910_REG_VDD3] = &am335x_dummy,
  1696 + .tps65910_pmic_init_data[TPS65910_REG_VDIG1] = &am335x_dummy,
  1697 + .tps65910_pmic_init_data[TPS65910_REG_VDIG2] = &am335x_dummy,
  1698 + .tps65910_pmic_init_data[TPS65910_REG_VPLL] = &am335x_dummy,
  1699 + .tps65910_pmic_init_data[TPS65910_REG_VDAC] = &am335x_dummy,
  1700 + .tps65910_pmic_init_data[TPS65910_REG_VAUX1] = &am335x_dummy,
  1701 + .tps65910_pmic_init_data[TPS65910_REG_VAUX2] = &am335x_dummy,
  1702 + .tps65910_pmic_init_data[TPS65910_REG_VAUX33] = &am335x_dummy,
  1703 + .tps65910_pmic_init_data[TPS65910_REG_VMMC] = &am335x_dummy,
  1704 +};
  1705 +
1671 1706 /*
1672 1707 * Daughter board Detection.
1673 1708 * Every board has a ID memory (EEPROM) on board. We probe these devices at
... ... @@ -1693,6 +1728,10 @@
1693 1728 },
1694 1729 {
1695 1730 I2C_BOARD_INFO("tlc59108", 0x40),
  1731 + },
  1732 + {
  1733 + I2C_BOARD_INFO("tps65910", TPS65910_I2C_ID1),
  1734 + .platform_data = &am335x_tps65910_info,
1696 1735 },
1697 1736  
1698 1737 };