davinci: da850/omap-l138 evm: account for DEFDCDC{2,3} being tied high
Per the da850/omap-l138 Beta EVM SOM schematic, the DEFDCDC2 and DEFDCDC3 lines are tied high. This leads to a 3.3V IO and 1.2V CVDD voltage. Pass the right platform data to the TPS6507x driver so it can operate on the DEFDCDC{2,3}_HIGH register to read and change voltage levels. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
committed by
Liam Girdwood
parent
7d14831e21
commit
8b24599e72
@@ -25,6 +25,7 @@
|
|||||||
#include <linux/mtd/partitions.h>
|
#include <linux/mtd/partitions.h>
|
||||||
#include <linux/mtd/physmap.h>
|
#include <linux/mtd/physmap.h>
|
||||||
#include <linux/regulator/machine.h>
|
#include <linux/regulator/machine.h>
|
||||||
|
#include <linux/regulator/tps6507x.h>
|
||||||
#include <linux/mfd/tps6507x.h>
|
#include <linux/mfd/tps6507x.h>
|
||||||
#include <linux/input/tps6507x-ts.h>
|
#include <linux/input/tps6507x-ts.h>
|
||||||
|
|
||||||
@@ -469,6 +470,11 @@ struct regulator_consumer_supply tps65070_ldo2_consumers[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* We take advantage of the fact that both defdcdc{2,3} are tied high */
|
||||||
|
static struct tps6507x_reg_platform_data tps6507x_platform_data = {
|
||||||
|
.defdcdc_default = true,
|
||||||
|
};
|
||||||
|
|
||||||
struct regulator_init_data tps65070_regulator_data[] = {
|
struct regulator_init_data tps65070_regulator_data[] = {
|
||||||
/* dcdc1 */
|
/* dcdc1 */
|
||||||
{
|
{
|
||||||
@@ -494,6 +500,7 @@ struct regulator_init_data tps65070_regulator_data[] = {
|
|||||||
},
|
},
|
||||||
.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc2_consumers),
|
.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc2_consumers),
|
||||||
.consumer_supplies = tps65070_dcdc2_consumers,
|
.consumer_supplies = tps65070_dcdc2_consumers,
|
||||||
|
.driver_data = &tps6507x_platform_data,
|
||||||
},
|
},
|
||||||
|
|
||||||
/* dcdc3 */
|
/* dcdc3 */
|
||||||
@@ -507,6 +514,7 @@ struct regulator_init_data tps65070_regulator_data[] = {
|
|||||||
},
|
},
|
||||||
.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc3_consumers),
|
.num_consumer_supplies = ARRAY_SIZE(tps65070_dcdc3_consumers),
|
||||||
.consumer_supplies = tps65070_dcdc3_consumers,
|
.consumer_supplies = tps65070_dcdc3_consumers,
|
||||||
|
.driver_data = &tps6507x_platform_data,
|
||||||
},
|
},
|
||||||
|
|
||||||
/* ldo1 */
|
/* ldo1 */
|
||||||
|
Reference in New Issue
Block a user