]> git.baikalelectronics.ru Git - uboot.git/commit
dm: i2c: EEPROM simulator allow tests visibility of addr and offset
authorRobert Beckett <bob.beckett@collabora.com>
Mon, 28 Oct 2019 17:44:58 +0000 (17:44 +0000)
committerHeiko Schocher <hs@denx.de>
Tue, 17 Dec 2019 05:57:22 +0000 (06:57 +0100)
commitdfe95cd129d7c799bf1604235eaa48be2cae0e7b
treedf80b24f773abc32a670dc241c4d044d5c83ed6f
parent187fa5f7aaa8fccd4c606570ca3301580dd9cb94
dm: i2c: EEPROM simulator allow tests visibility of addr and offset

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@collabora.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
arch/sandbox/include/asm/test.h
drivers/misc/i2c_eeprom_emul.c
test/dm/i2c.c