]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: add dm_i2c_reg_clrset
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 15 Jul 2021 15:39:59 +0000 (17:39 +0200)
committerHeiko Schocher <hs@denx.de>
Sun, 22 Aug 2021 08:52:53 +0000 (10:52 +0200)
commit2aefa6e3f2ab621483ca645b16c7bf8cb9334fa3
treece32ac1a9ee05266489dd58f9ff0ade8852e51cb
parent79d389a54891a67269bfa366f044a2079409e499
i2c: add dm_i2c_reg_clrset

Add function to apply a bitmask to an i2c register, so
that specific bits can be cleared and/or set.

Suggested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/i2c/i2c-uclass.c
include/i2c.h
test/dm/i2c.c