From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Date: Sun, 26 Apr 2015 04:18:56 +0100 Subject: [U-Boot] [PATCH 05/21] sunxi: soft-i2c: Fix gpio handling to work with the device-model In-Reply-To: <1429883310-22441-6-git-send-email-hdegoede@redhat.com> References: <1429883310-22441-1-git-send-email-hdegoede@redhat.com> <1429883310-22441-6-git-send-email-hdegoede@redhat.com> Message-ID: <1430018336.12403.68.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Acked-by: Ian Campbell