[PATCHv2 1/2] i2c: add dm_i2c_reg_clrset

Simon Glass sjg at chromium.org
Thu Jul 15 20:10:38 CEST 2021


On Thu, 15 Jul 2021 at 09:40, Sebastian Reichel
<sebastian.reichel at collabora.com> wrote:
>
> 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 at chromium.org>
> Signed-off-by: Sebastian Reichel <sebastian.reichel at collabora.com>
> ---
>  drivers/i2c/i2c-uclass.c | 15 +++++++++++++++
>  include/i2c.h            | 14 ++++++++++++++
>  test/dm/i2c.c            | 29 +++++++++++++++++++++++++++++
>  3 files changed, 58 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list