[U-Boot] [PATCH] ventana: Add Gateworks Ventana family support

Fabio Estevam festevam at gmail.com
Mon Jan 27 12:57:34 CET 2014


On Tue, Jan 21, 2014 at 4:41 PM, Tim Harvey <tharvey at gateworks.com> wrote:

> +static int setup_pmic_voltages(void)
> +{
> +       int ret;
> +       unsigned char value, rev_id = 0;
> +
> +       ret = i2c_set_bus_num(1);
> +       if (ret)
> +               return ret;
> +       if (!i2c_probe(0x8)) {
> +               if (i2c_read(0x8, 0, 1, &value, 1)) {
> +                       printf("Read device ID error!\n");
> +                       return -1;

Please use the PMIC API to read/write to the PMIC.

Regards,

Fabio Estevam


More information about the U-Boot mailing list