mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 03:52:26 +00:00
Make drivers multi-instance wherever possible using DT_INST_FOREACH. This allows removing DT_HAS_DRV_INST in favor of making drivers just do the right thing regardless of how many instances there are. There are a few exceptions: - SoC drivers which use CMake input files (like i2c_dw.c) or otherwise would require more time to convert than I have at the moment. For the sake of expediency, just inline the DT_HAS_DRV_INST expansion for now in these cases. - SoC drivers which are explicitly single-instance (like the nRF SAADC driver). Again for the sake of expediency, drop a BUILD_ASSERT in those cases to make sure the assumption that all supported SoCs have at most one available instance is valid, failing fast otherwise. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
---|---|---|
.. | ||
beetle_clock_control.c | ||
clock_control_mcux_ccm.c | ||
clock_control_mcux_mcg.c | ||
clock_control_mcux_pcc.c | ||
clock_control_mcux_scg.c | ||
clock_control_mcux_sim.c | ||
clock_control_rv32m1_pcc.c | ||
clock_stm32_ll_common.c | ||
clock_stm32_ll_common.h | ||
clock_stm32_ll_h7.c | ||
clock_stm32_ll_mp1.c | ||
clock_stm32f1.c | ||
clock_stm32f2_f4_f7.c | ||
clock_stm32f0_f3.c | ||
clock_stm32g4.c | ||
clock_stm32g0.c | ||
clock_stm32l4_wb.c | ||
clock_stm32l0_l1.c | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.beetle | ||
Kconfig.mcux_ccm | ||
Kconfig.mcux_mcg | ||
Kconfig.mcux_pcc | ||
Kconfig.mcux_scg | ||
Kconfig.mcux_sim | ||
Kconfig.nrf | ||
Kconfig.rv32m1 | ||
Kconfig.stm32 | ||
Kconfig.stm32f1 | ||
Kconfig.stm32f2_f4_f7 | ||
Kconfig.stm32f0_f3 | ||
Kconfig.stm32g0 | ||
Kconfig.stm32g4 | ||
Kconfig.stm32h7 | ||
Kconfig.stm32l4_wb | ||
Kconfig.stm32l0_l1 | ||
nrf_clock_calibration.c | ||
nrf_clock_calibration.h | ||
nrf_power_clock.c |