zephyr/drivers/counter
Daniel DeGrasse 81ec61c085 drivers: clock_control: clock_control_mcux_syscon: make clock IDs unique
Syscon clock driver previously used a sequence where clock IDs increased
sequentially. This had a few disadvantages:
- if a new SOC was introduced with more instances of a given IP, the
  clock ID could not be sequential with the remaining IDs
- chance of collisions between clock IDs was relatively high

To resolve this, define LPC clock IDs using a bitmask macro. Note that
the CTIMER clock IDs are used within SOC clock files to perform clock
init, and the macro requires that the clock ID expand to an integer
rather than a expression with bitshifts (hence why the macro is not used
for these IDs)

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-03-19 18:43:58 +00:00
..
CMakeLists.txt dts: bindings: renamed binding used for pit 2024-03-07 13:23:58 -06:00
counter_ace_v1x_art.c device: remove redundant init functions 2023-04-19 10:00:25 +02:00
counter_ace_v1x_art_regs.h drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
counter_ace_v1x_rtc.c drivers: counter: align ace rtc get_value with api 2023-02-20 11:13:45 +01:00
counter_ace_v1x_rtc_regs.h drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
counter_ambiq_timer.c drivers: counter: counter_ambiq_timer: Enable interrupt in set_alarm 2024-01-08 14:16:13 +01:00
counter_andes_atcpit100.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_cmos.c x86: revert removing soc.h from atom soc 2024-03-04 20:07:30 +01:00
counter_dw_timer.c drivers: counter: add snps apb timer 2023-08-16 10:20:31 +02:00
counter_esp32_rtc.c soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
counter_esp32_tmr.c soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
counter_gd32_timer.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
counter_gecko_rtcc.c devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
counter_gecko_stimer.c drivers: counter: gecko: Add SYSRTC stimer support 2023-08-09 08:24:52 +00:00
counter_handlers.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
counter_ifx_cat1.c drivers: counter: cat1: Fix formatting issues 2023-08-10 08:13:11 +00:00
counter_imx_epit.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_ll_stm32_rtc.c drivers: rtc: Fix RTC alarm when using both CONFIG_COUNTER and CONFIG_PM 2024-03-15 09:33:14 +00:00
counter_ll_stm32_timer.c drivers: counter: stm32: move reset_dt_spec from data to config 2024-03-11 17:55:17 +00:00
counter_mchp_xec.c arm: add missing includes 2022-10-11 18:37:53 -04:00
counter_mcux_ctimer.c drivers: clock_control: clock_control_mcux_syscon: make clock IDs unique 2024-03-19 18:43:58 +00:00
counter_mcux_gpt.c barriers: Move __DSB() to the new API 2023-05-24 13:13:57 -04:00
counter_mcux_lpc_rtc.c drivers: mcux_lpc_rtc: Add support for 1KHz counter 2024-01-12 13:34:19 +01:00
counter_mcux_lptmr.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_mcux_qtmr.c barriers: Move __DSB() to the new API 2023-05-24 13:13:57 -04:00
counter_mcux_rtc.c drivers: counter: mcux_rtc: enable oscillator if supported 2024-02-02 12:43:00 +01:00
counter_mcux_snvs.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
counter_native_posix.c drivers: counter native: Add top value conf and multi channel support 2023-10-23 13:38:43 +02:00
counter_nrfx_rtc.c drivers counter_nrfx_rtc: Fix for simulation 2024-03-12 17:57:18 +00:00
counter_nrfx_timer.c drivers/counter nrfx: Fix with DT instance not matching device instance 2024-03-11 14:09:16 +00:00
counter_nxp_mrt.c drivers: counter: counter_nxp_mrt: include soc.h for MRT CMSIS defines 2024-03-15 17:12:08 -04:00
counter_nxp_pit.c drivers: counter: Adding Mutli Channel PIT Support 2024-03-07 13:23:58 -06:00
counter_nxp_s32_sys_timer.c drivers: counter_nxp_s32_sys_timer: update to RTD 1.0.0 2023-11-16 09:28:16 +01:00
counter_rpi_pico_timer.c drivers: counter: rpi_pico: Turn on clock and reset device on init 2023-12-20 11:14:24 +01:00
counter_sam0_tc32.c drivers: counter: add missing includes 2022-10-13 00:07:37 +09:00
counter_sam_tc.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
counter_smartbond_timer.c drivers: counter: Fix Smartbond counter get_rate 2023-09-20 20:17:11 +01:00
counter_timer_shell.c drivers: counter: Add shell commands for timer 2023-08-16 10:20:31 +02:00
counter_xlnx_axi_timer.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
dualtimer_cmsdk_apb.h drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
Kconfig dts: bindings: renamed binding used for pit 2024-03-07 13:23:58 -06:00
Kconfig.ace drivers: ace_v1x wallclock driver 2022-09-06 17:44:03 +02:00
Kconfig.ambiq drivers: counter: Add Ambiq counter driver 2023-08-07 16:12:58 +02:00
Kconfig.andes_atcpit100 drivers: counter: add Andes atcpit100 counter driver 2022-08-26 11:55:36 +02:00
Kconfig.cmos drivers: rtc: rtc_mc146818: Added RTC driver for Motorola MC146818B 2023-04-27 14:15:22 +02:00
Kconfig.dtmr_cmsdk_apb drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.dw drivers: counter: add snps apb timer 2023-08-16 10:20:31 +02:00
Kconfig.esp32_rtc esp32: driver: counter: add RTC-based implementation 2022-07-27 09:48:33 +02:00
Kconfig.esp32_tmr esp32: drivers: counter: update build references 2022-08-04 15:30:18 +02:00
Kconfig.gd32 drivers: counter: gd32: depend on !SOC_SERIES_GD32VF103 2024-01-10 15:05:54 +01:00
Kconfig.gecko drivers: counter: gecko: Add SYSRTC stimer support 2023-08-09 08:24:52 +00:00
Kconfig.ifx_cat1 drivers: counter: Add Infineon CAT1 counter driver 2023-07-26 09:10:31 +02:00
Kconfig.imx_epit drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.maxim_ds3231 lib: notify: build sys-notify conditionally. 2022-10-03 10:18:15 +02:00
Kconfig.mcp7940n drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_ctimer drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_gpt drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_lpc_rtc drivers: mcux_lpc_rtc: Add support for 1KHz counter 2024-01-12 13:34:19 +01:00
Kconfig.mcux_lptmr drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_qtmr drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_rtc drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.mcux_snvs drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.native_posix drivers: counter native: Add top value conf and multi channel support 2023-10-23 13:38:43 +02:00
Kconfig.nrfx drivers: counter: Adapt to use device tree 2023-03-20 16:59:40 +01:00
Kconfig.nxp_mrt drivers: counter: Add NXP MRT driver 2023-11-10 10:40:54 +01:00
Kconfig.nxp_pit drivers: counter: Adding Mutli Channel PIT Support 2024-03-07 13:23:58 -06:00
Kconfig.nxp_s32 counter: nxp_s32_sys_timer: use clock control APIs 2023-09-29 16:29:31 +02:00
Kconfig.rpi_pico drivers: counter: Add support for rpi_pico timer 2023-09-13 16:18:44 +02:00
Kconfig.sam drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.sam0 drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.smartbond_timer drivers: counter: Add Smartbond basic support 2023-07-05 13:00:50 +02:00
Kconfig.stm32_rtc counter: stm32 rtc: handle sub second registers 2023-09-26 15:05:35 +02:00
Kconfig.stm32_timer drivers: counter: Reset timer using RCC before initialization 2022-12-09 09:43:36 -08:00
Kconfig.tmr_cmsdk_apb drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.xec drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
Kconfig.xlnx drivers: counter: Update drivers to use devicetree Kconfig symbol 2022-07-25 09:38:57 +02:00
maxim_ds3231.c drivers: counter: maxim_ds3231: Fix coverity errors 2024-02-13 10:25:53 +01:00
rtc_mcp7940n.c drivers: gpio: use gpio_is_ready_dt helper function 2023-08-28 08:48:35 -05:00
timer_cmsdk_apb.h drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
timer_dtmr_cmsdk_apb.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
timer_tmr_cmsdk_apb.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00