[PATCH v3 02/10] rtc: add dm_rtc_write() helper
Heiko Schocher
hs at denx.de
Wed Jun 3 06:20:57 CEST 2020
Hello Rasmus,
Am 02.06.2020 um 21:13 schrieb Rasmus Villemoes:
> Similar to dm_rtc_read(), introduce a helper that allows the caller to
> write multiple consecutive 8-bit registers with one call. If the
> driver provides the ->write method, use that, otherwise loop using
> ->write8.
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> ---
> drivers/rtc/rtc-uclass.c | 18 ++++++++++++++++++
> include/rtc.h | 24 ++++++++++++++++++++++++
> 2 files changed, 42 insertions(+)
Reviewed-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list