On Thu, Feb 03, 2011 at 06:15:21PM +0530, Rajendra Nayak wrote:
> 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 <[email protected]>

Reviewed-by: Felipe Balbi <[email protected]>

> ---
>  arch/arm/mach-omap2/board-3430sdp.c |    7 +++++++
>  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 d4e41ef..8e18f21 100644
> --- a/arch/arm/mach-omap2/board-3430sdp.c
> +++ b/arch/arm/mach-omap2/board-3430sdp.c
> @@ -427,6 +427,11 @@ static struct twl4030_madc_platform_data 
> sdp3430_madc_data = {
>       .irq_line       = 1,
>  };
>  
> +/* ads7846 on SPI */
> +static struct regulator_consumer_supply sdp3430_vaux3_supplies[] = {
> +     REGULATOR_SUPPLY("vcc", "spi1.0"),
> +};
> +
>  /*
>   * Apply all the fixed voltages since most versions of U-Boot
>   * don't bother with that initialization.
> @@ -469,6 +474,8 @@ static struct regulator_init_data sdp3430_vaux3 = {
>               .valid_ops_mask         = REGULATOR_CHANGE_MODE
>                                       | REGULATOR_CHANGE_STATUS,
>       },
> +     .num_consumer_supplies          = ARRAY_SIZE(sdp3430_vaux3_supplies),
> +     .consumer_supplies              = sdp3430_vaux3_supplies,
>  };
>  
>  /* VAUX4 for OMAP VDD_CSI2 (camera) */
> -- 
> 1.7.0.4

-- 
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to