[U-Boot][PATCH 2/3] dm: i2c: EEPROM simulator allow tests visibility of addr and offset

Heiko Schocher hs at denx.de
Tue Dec 17 12:58:33 CET 2019


Hello Robert,

Am 28.10.2019 um 18:44 schrieb Robert Beckett:
> Improve i2c EEPROM simulator testing by providing access functions to
> check the previous chip addr and offset.
> 
> Given that we can now directly test the offsets, also simplified the
> offset mapping and allow for wrapping acceses.
> 
> Signed-off-by: Robert Beckett <bob.beckett at collabora.com>
> ---
> 
>   arch/sandbox/include/asm/test.h |  4 +++
>   drivers/misc/i2c_eeprom_emul.c  | 61 +++++++++++++++++++++++++--------
>   test/dm/i2c.c                   | 50 +++++++++++++++++++--------
>   3 files changed, 86 insertions(+), 29 deletions(-)

Applied to u-boot-i2c next branch.

Thanks!

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