[U-Boot] [PATCH 2/6 v3] i2c: designware_i2c: Add dw_i2c_enable() helper function
Bin Meng
bmeng.cn at gmail.com
Mon Apr 11 06:33:50 CEST 2016
On Wed, Mar 23, 2016 at 3:48 PM, Stefan Roese <sr at denx.de> wrote:
> dw_i2c_enable() is used to dis-/en-able the I2C controller. It makes
> sense to add such a function, as the controller is dis-/en-abled
> multiple times in the code. Additionally, this function now checks,
> if the controller is really dis-/en-abled. This code is copied
> from the Linux I2C driver version.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Heiko Schocher <hs at denx.de>
> ---
> v3:
> - Rework dw_i2c_enable() as suggested by Marek
>
> v2:
> - Use true / false for binary values as suggested by Bin
>
> drivers/i2c/designware_i2c.c | 47 +++++++++++++++++++++++++-------------------
> 1 file changed, 27 insertions(+), 20 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list