• Stefan Roese's avatar
    i2c: designware_i2c: Add dw_i2c_enable() helper function · 1c8b089b
    Stefan Roese authored
    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: 's avatarStefan Roese <sr@denx.de>
    Cc: Simon Glass <sjg@chromium.org>
    Cc: Bin Meng <bmeng.cn@gmail.com>
    Cc: Marek Vasut <marex@denx.de>
    Cc: Heiko Schocher <hs@denx.de>
    Reviewed-by: 's avatarBin Meng <bmeng.cn@gmail.com>
    1c8b089b
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
cmd Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...