[U-Boot] [PATCH v3 02/11] sun6i: Add basic axp221 driver

Ian Campbell ijc at hellion.org.uk
Sat Nov 8 11:19:16 CET 2014


On Fri, 2014-11-07 at 20:47 +0100, Hans de Goede wrote:
> From: Oliver Schinagl <oliver at schinagl.nl>
> 
> The A31 uses the AXP221 pmic for various voltages.
> 
> Signed-off-by: Oliver Schinagl <oliver at schinagl.nl>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> +	cfg |= 1 << 7;
> +	cfg |= 1 << 3;
> +	cfg |= 1 << 4;
> +	cfg |= 1 << 5;
> +	cfg |= 1 << 6;
> +	cfg |= 1 << 6;
> +	cfg |= 1 << 7;
> +	cfg |= 1 << 7;

Could we get some symbolic names for these please?

Looks like a helper to read/modify/write a p2wi register would reduce
the repetition a fair bit.

Ian.



More information about the U-Boot mailing list