Home
last modified time | relevance | path

Searched hist:"4 f7e01c9615e6f0b21e00c2a0900b2db2b23b4fc" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/board/sunxi/
H A Dboard.c4f7e01c9615e6f0b21e00c2a0900b2db2b23b4fc Thu Apr 23 21:23:50 UTC 2015 Hans de Goede <hdegoede@redhat.com> sunxi: soft-i2c: Fix gpio handling to work with the driver-model

i2c_init_board() gets called before the driver-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 driver-model setup has been done.

Also add proper error checking and properly request the gpios as that is
mandatory with the driver-model.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>