zephyr/drivers/i2c
Tristan Honscheid 8fd1ce7579 emul: Only add enabled DT nodes to bus emulators
The eSPI, I2C, and SPI emulators use devicetree macros to build an array
of devices on the virtual bus. Currently, they will add device nodes that
are not status-okay. This leads to linker errors because the respective
device drivers would not have instantiated device structs for these
nodes --assuming the driver was even compiled. This can be frustrating
if nodes need to be disabled for debugging or configuration purposes.

Update the bus emulators to only consider status-okay nodes by changing
the macros used to iterate over bus devices.

Signed-off-by: Tristan Honscheid <honscheid@google.com>
2023-07-12 09:25:18 +02:00
..
target
CMakeLists.txt
i2c_andes_atciic100.c
i2c_andes_atciic100.h
i2c_b91.c
i2c_bitbang.c
i2c_bitbang.h
i2c_cc13xx_cc26xx.c
i2c_cc32xx.c
i2c_common.c
i2c_dw_registers.h
i2c_dw.c
i2c_dw.h
i2c_emul.c
i2c_esp32.c
i2c_gd32.c
i2c_gecko.c
i2c_gpio.c
i2c_handlers.c
i2c_ifx_cat1.c
i2c_ifx_xmc4.c
i2c_imx.c
i2c_ite_enhance.c
i2c_ite_it8xxx2.c
i2c_litex.c
i2c_ll_stm32_v1.c
i2c_ll_stm32_v2.c
i2c_ll_stm32.c
i2c_ll_stm32.h
i2c_lpc11u6x.c
i2c_lpc11u6x.h
i2c_mchp_mss.c
i2c_mchp_xec_v2.c
i2c_mchp_xec.c
i2c_mcux_flexcomm.c
i2c_mcux_lpi2c.c
i2c_mcux.c
i2c_nios2.c
i2c_npcx_controller.c
i2c_npcx_controller.h
i2c_npcx_port.c
i2c_nrfx_twi.c
i2c_nrfx_twim.c
i2c_rcar.c
i2c_rtio.c
i2c_rv32m1_lpi2c.c
i2c_sam0.c
i2c_sam4l_twim.c
i2c_sam_twi.c
i2c_sam_twihs_rtio.c
i2c_sam_twihs.c
i2c_sbcon.c
i2c_sc18im704.c
i2c_sc18im704.h
i2c_shell.c
i2c_sifive.c
i2c_smartbond.c
i2c_tca954x.c
i2c_test.c
i2c_xilinx_axi.c
i2c_xilinx_axi.h
i2c-priv.h
Kconfig
Kconfig.andes_atciic100
Kconfig.b91
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.esp32
Kconfig.gd32
Kconfig.gpio
Kconfig.i2c_emul
Kconfig.ifx_cat1
Kconfig.ifx_xmc4
Kconfig.it8xxx2
Kconfig.litex
Kconfig.lpc11u6x
Kconfig.mchp_mss
Kconfig.npcx
Kconfig.nrfx
Kconfig.rcar
Kconfig.sam0
Kconfig.sam_twihs
Kconfig.sbcon
Kconfig.sc18im704
Kconfig.sifive
Kconfig.smartbond
Kconfig.stm32
Kconfig.tca954x
Kconfig.test
Kconfig.xec
Kconfig.xilinx_axi