aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-3430sdp.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2011-02-03 07:45:21 -0500
committerTony Lindgren <tony@atomide.com>2011-02-17 18:43:10 -0500
commit4b087ff8572c7e7095787ca14aa72e39c80859bd (patch)
tree6d5c8e35425a2848d45a6252ebab908831888dac /arch/arm/mach-omap2/board-3430sdp.c
parent854c122f54d0074afb9e9a8f2ab7d6258c1f218f (diff)
omap3sdp: Fix regulator mapping for ads7846 TS controller
On the OMAP3430SDP board, the ads7846 touchscreen controller is powered by VAUX3 regulator (supplying 2.8v). Fix this mapping in the board file, and hence prevent the ads7846 driver init to fail with the below error.. ads7846 spi1.0: unable to get regulator: -19 Signed-off-by: Rajendra Nayak <rnayak@ti.com> Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-3430sdp.c')
-rw-r--r--arch/arm/mach-omap2/board-3430sdp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
index 31085883199e..7f8c7a73c535 100644
--- a/arch/arm/mach-omap2/board-3430sdp.c
+++ b/arch/arm/mach-omap2/board-3430sdp.c
@@ -426,6 +426,11 @@ static struct twl4030_madc_platform_data sdp3430_madc_data = {
426 .irq_line = 1, 426 .irq_line = 1,
427}; 427};
428 428
429/* ads7846 on SPI */
430static struct regulator_consumer_supply sdp3430_vaux3_supplies[] = {
431 REGULATOR_SUPPLY("vcc", "spi1.0"),
432};
433
429/* 434/*
430 * Apply all the fixed voltages since most versions of U-Boot 435 * Apply all the fixed voltages since most versions of U-Boot
431 * don't bother with that initialization. 436 * don't bother with that initialization.
@@ -468,6 +473,8 @@ static struct regulator_init_data sdp3430_vaux3 = {
468 .valid_ops_mask = REGULATOR_CHANGE_MODE 473 .valid_ops_mask = REGULATOR_CHANGE_MODE
469 | REGULATOR_CHANGE_STATUS, 474 | REGULATOR_CHANGE_STATUS,
470 }, 475 },
476 .num_consumer_supplies = ARRAY_SIZE(sdp3430_vaux3_supplies),
477 .consumer_supplies = sdp3430_vaux3_supplies,
471}; 478};
472 479
473/* VAUX4 for OMAP VDD_CSI2 (camera) */ 480/* VAUX4 for OMAP VDD_CSI2 (camera) */