[PATCH v4 20/42] sandbox: i2c: Support i2c emulation with of-platdata
Simon Glass
sjg at chromium.org
Wed Mar 17 02:28:30 CET 2021
At present the i2c emulators require access to the devicetree, which is
not possible (by design) with of-platdata.
Add a way for drivers to record the of-platdata index of their emulator,
so that we can still find the emulator.
This allows i2c emulation to work with of-platdata.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
drivers/i2c/i2c-emul-uclass.c | 17 +++++++++++++++--
drivers/rtc/sandbox_rtc.c | 13 +++++++++++++
include/i2c.h | 15 +++++++++++++++
3 files changed, 43 insertions(+), 2 deletions(-)
Applied to u-boot-dm/next, thanks!
More information about the U-Boot
mailing list