On Wed, Mar 23, 2016 at 3:48 PM, Stefan Roese <s...@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 <s...@denx.de>
> Cc: Simon Glass <s...@chromium.org>
> Cc: Bin Meng <bmeng...@gmail.com>
> Cc: Marek Vasut <ma...@denx.de>
> Cc: Heiko Schocher <h...@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...@gmail.com>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to