diff options
author | Robert Beckett <bob.beckett@collabora.com> | 2019-10-28 20:44:59 +0300 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2019-12-17 08:57:31 +0300 |
commit | 951674ac7e3db23eb3b2b87c27387364a9e38ca2 (patch) | |
tree | 354d2a83d5ec40ee6d281206228b367b7e328aec /arch/sandbox/include | |
parent | 22e93511be2e012d3f807641b07e09b649a71ef6 (diff) | |
download | u-boot-951674ac7e3db23eb3b2b87c27387364a9e38ca2.tar.xz |
dm: i2c: EEPROM simulator add tests for addr offset mask
Add support for setting the chip address offset mask to EEPROM sumulator
and add tests to test it.
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch/sandbox/include')
-rw-r--r-- | arch/sandbox/include/asm/test.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h index f3a8b455d5..7dd9aa58c5 100644 --- a/arch/sandbox/include/asm/test.h +++ b/arch/sandbox/include/asm/test.h @@ -72,6 +72,9 @@ void sandbox_i2c_eeprom_set_test_mode(struct udevice *dev, void sandbox_i2c_eeprom_set_offset_len(struct udevice *dev, int offset_len); +void sandbox_i2c_eeprom_set_chip_addr_offset_mask(struct udevice *dev, + uint mask); + uint sanbox_i2c_eeprom_get_prev_addr(struct udevice *dev); uint sanbox_i2c_eeprom_get_prev_offset(struct udevice *dev); |