zephyr/drivers/clock_control
Martí Bolívar 87e1743ae0 devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH
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>
2020-05-06 17:35:08 -05:00
..
beetle_clock_control.c drivers: arm_cmsdk/arm: Convert drivers to new DT_INST macros 2020-03-31 19:28:47 -05:00
clock_control_mcux_ccm.c drivers: mcux: Convert MCUX drivers to new DT_INST macros 2020-03-26 03:40:09 -05:00
clock_control_mcux_mcg.c drivers: mcux: Convert MCUX drivers to new DT_INST macros 2020-03-26 03:40:09 -05:00
clock_control_mcux_pcc.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
clock_control_mcux_scg.c drivers: mcux: Convert MCUX drivers to new DT_INST macros 2020-03-26 03:40:09 -05:00
clock_control_mcux_sim.c dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
clock_control_rv32m1_pcc.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
clock_stm32_ll_common.c
clock_stm32_ll_common.h
clock_stm32_ll_h7.c drivers/clock_control: stm32H7 AHB clock computation depends on core 2020-04-29 15:18:18 -05:00
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 dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
nrf_clock_calibration.h
nrf_power_clock.c clock_control: nordic: move to new DT API 2020-04-14 06:32:25 -05:00