[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1314550160.3666.6.camel@odin>
Date: Sun, 28 Aug 2011 17:49:20 +0100
From: Liam Girdwood <lrg@...nel.org>
To: Marcus Folkesson <marcus.folkesson@...il.com>
Cc: Liam Girdwood <lrg@...com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/4] regulator: tps65023: Fixes i2c configuration issues
On Mon, 2011-08-08 at 20:29 +0200, Marcus Folkesson wrote:
> Allow i2c core voltage adjustments by clearing CORE ADJ Allowed bit in CTRL2
>
> Signed-off-by: Marcus Folkesson <marcus.folkesson@...il.com>
> Acked-by: Mark Brown <broonie@...nsource.wolfsonmicro.com>
> ---
> drivers/regulator/tps65023-regulator.c | 11 +++++++++++
> 1 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c
> index 701a590..7bd3c4d 100644
> --- a/drivers/regulator/tps65023-regulator.c
> +++ b/drivers/regulator/tps65023-regulator.c
> @@ -63,6 +63,13 @@
> #define TPS65023_REG_CTRL_LDO2_EN BIT(2)
> #define TPS65023_REG_CTRL_LDO1_EN BIT(1)
>
> +/* REG_CTRL2 bitfields */
> +#define TPS65023_REG_CTRL2_GO BIT(7)
> +#define TPS65023_REG_CTRL2_CORE_ADJ BIT(6)
> +#define TPS65023_REG_CTRL2_DCDC2 BIT(2)
> +#define TPS65023_REG_CTRL2_DCDC1 BIT(1)
> +#define TPS65023_REG_CTRL2_DCDC3 BIT(0)
> +
> /* LDO_CTRL bitfields */
> #define TPS65023_LDO_CTRL_LDOx_SHIFT(ldo_id) ((ldo_id)*4)
> #define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0xF0 >> ((ldo_id)*4))
> @@ -475,6 +482,10 @@ static int __devinit tps_65023_probe(struct i2c_client *client,
>
> i2c_set_clientdata(client, tps);
>
> + /* Enable setting output voltage by I2C */
> + tps_65023_clear_bits(tps, TPS65023_REG_CON_CTRL2,
> + TPS65023_REG_CTRL2_CORE_ADJ);
> +
> return 0;
>
> fail:
All Applied.
Thanks
Liam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists