[U-Boot] [PATCH 05/21] sunxi: soft-i2c: Fix gpio handling to work with the device-model

Ian Campbell ijc at hellion.org.uk
Sun Apr 26 05:18:56 CEST 2015


On Fri, 2015-04-24 at 15:48 +0200, Hans de Goede wrote:
> i2c_init_board() gets called before the device-model (gpio) code is
> initialized, so move the setup of the soft-i2c pins out of i2c_init_board()
> and into board_init(), at which time the device-model setup has been done.
> 
> Also add proper error checking and properly request the gpios as that is
> mandatory with the device-model.
> 
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>

Acked-by: Ian Campbell <ijc at hellion.org.uk>




More information about the U-Boot mailing list