ARM: OMAP3: cm-t35: Add regulator for ads7846 touchscreen
ads7846 driver fails to find the regulator supply and as a result the touchscreen is not working. Fix this by adding a regulator supply for the ads7846 driver. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> [tony@atomide.com: updated subject] Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
committed by
Tony Lindgren
parent
4390f5b2cb
commit
b74f149cc9
@@ -343,6 +343,10 @@ static struct regulator_consumer_supply cm_t35_vdvi_supply[] = {
|
|||||||
REGULATOR_SUPPLY("vdvi", "omapdss"),
|
REGULATOR_SUPPLY("vdvi", "omapdss"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct regulator_consumer_supply cm_t35_vio_supplies[] = {
|
||||||
|
REGULATOR_SUPPLY("vcc", "spi1.0"),
|
||||||
|
};
|
||||||
|
|
||||||
/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
|
/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
|
||||||
static struct regulator_init_data cm_t35_vmmc1 = {
|
static struct regulator_init_data cm_t35_vmmc1 = {
|
||||||
.constraints = {
|
.constraints = {
|
||||||
@@ -373,6 +377,19 @@ static struct regulator_init_data cm_t35_vsim = {
|
|||||||
.consumer_supplies = cm_t35_vsim_supply,
|
.consumer_supplies = cm_t35_vsim_supply,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct regulator_init_data cm_t35_vio = {
|
||||||
|
.constraints = {
|
||||||
|
.min_uV = 1800000,
|
||||||
|
.max_uV = 1800000,
|
||||||
|
.apply_uV = true,
|
||||||
|
.valid_modes_mask = REGULATOR_MODE_NORMAL
|
||||||
|
| REGULATOR_MODE_STANDBY,
|
||||||
|
.valid_ops_mask = REGULATOR_CHANGE_MODE,
|
||||||
|
},
|
||||||
|
.num_consumer_supplies = ARRAY_SIZE(cm_t35_vio_supplies),
|
||||||
|
.consumer_supplies = cm_t35_vio_supplies,
|
||||||
|
};
|
||||||
|
|
||||||
static uint32_t cm_t35_keymap[] = {
|
static uint32_t cm_t35_keymap[] = {
|
||||||
KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_LEFT),
|
KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_LEFT),
|
||||||
KEY(1, 0, KEY_UP), KEY(1, 1, KEY_ENTER), KEY(1, 2, KEY_DOWN),
|
KEY(1, 0, KEY_UP), KEY(1, 1, KEY_ENTER), KEY(1, 2, KEY_DOWN),
|
||||||
@@ -456,6 +473,7 @@ static struct twl4030_platform_data cm_t35_twldata = {
|
|||||||
.gpio = &cm_t35_gpio_data,
|
.gpio = &cm_t35_gpio_data,
|
||||||
.vmmc1 = &cm_t35_vmmc1,
|
.vmmc1 = &cm_t35_vmmc1,
|
||||||
.vsim = &cm_t35_vsim,
|
.vsim = &cm_t35_vsim,
|
||||||
|
.vio = &cm_t35_vio,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void __init cm_t35_init_i2c(void)
|
static void __init cm_t35_init_i2c(void)
|
||||||
|
Reference in New Issue
Block a user