
17 Mar
2021
17 Mar
'21
2:28 a.m.
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@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!