Browse Source

drivers: timer: s/device.h/init.h

Timer "drivers" do not use the device model infrastructure, they are
singletons with a SYS_INIT call. This means they do not have to include
device.h but init.h. Things worked because device.h includes init.h.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
pull/62027/head
Gerard Marull-Paretas 2 years ago committed by Fabio Baltieri
parent
commit
12b2ee54e3
  1. 2
      drivers/timer/altera_avalon_timer_hal.c
  2. 2
      drivers/timer/apic_timer.c
  3. 2
      drivers/timer/apic_tsc.c
  4. 2
      drivers/timer/arcv2_timer0.c
  5. 2
      drivers/timer/arm_arch_timer.c
  6. 2
      drivers/timer/cc13xx_cc26xx_rtc_timer.c
  7. 2
      drivers/timer/cortex_m_systick.c
  8. 2
      drivers/timer/esp32c3_sys_timer.c
  9. 2
      drivers/timer/gecko_burtc_timer.c
  10. 2
      drivers/timer/hpet.c
  11. 2
      drivers/timer/intel_adsp_timer.c
  12. 2
      drivers/timer/ite_it8xxx2_timer.c
  13. 2
      drivers/timer/leon_gptimer.c
  14. 2
      drivers/timer/litex_timer.c
  15. 2
      drivers/timer/mchp_xec_rtos_timer.c
  16. 2
      drivers/timer/mcux_gpt_timer.c
  17. 2
      drivers/timer/mcux_lptmr_timer.c
  18. 2
      drivers/timer/mcux_os_timer.c
  19. 2
      drivers/timer/mips_cp0_timer.c
  20. 2
      drivers/timer/native_posix_timer.c
  21. 2
      drivers/timer/npcx_itim_timer.c
  22. 2
      drivers/timer/nrf_rtc_timer.c
  23. 2
      drivers/timer/rcar_cmt_timer.c
  24. 2
      drivers/timer/riscv_machine_timer.c
  25. 2
      drivers/timer/rv32m1_lptmr_timer.c
  26. 2
      drivers/timer/sam0_rtc_timer.c
  27. 2
      drivers/timer/stm32_lptim_timer.c
  28. 2
      drivers/timer/xlnx_psttc_timer.c
  29. 2
      drivers/timer/xtensa_sys_timer.c

2
drivers/timer/altera_avalon_timer_hal.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <altera_common.h>
#include <zephyr/irq.h>

2
drivers/timer/apic_timer.c

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>

2
drivers/timer/apic_tsc.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
* Copyright (c) 2021 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>

2
drivers/timer/arcv2_timer0.c

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>

2
drivers/timer/arm_arch_timer.c

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/arm_arch_timer.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/irq.h>

2
drivers/timer/cc13xx_cc26xx_rtc_timer.c

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
* the comparator value set is reached.
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/timer/system_timer.h>

2
drivers/timer/cortex_m_systick.c

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>

2
drivers/timer/esp32c3_sys_timer.c

@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <soc.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/spinlock.h>
#define CYC_PER_TICK ((uint32_t)((uint64_t)sys_clock_hw_cycles_per_sec() \

2
drivers/timer/gecko_burtc_timer.c

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
*
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/timer/system_timer.h>

2
drivers/timer/hpet.c

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
*/
#define DT_DRV_COMPAT intel_hpet
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>

2
drivers/timer/intel_adsp_timer.c

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>

2
drivers/timer/ite_it8xxx2_timer.c

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
#define DT_DRV_COMPAT ite_it8xxx2_timer
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/dt-bindings/interrupt-controller/ite-intc.h>
#include <soc.h>

2
drivers/timer/leon_gptimer.c

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
#define DT_DRV_COMPAT gaisler_gptimer
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>

2
drivers/timer/litex_timer.c

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include <zephyr/kernel.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/spinlock.h>
#include <zephyr/drivers/timer/system_timer.h>

2
drivers/timer/mchp_xec_rtos_timer.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#define DT_DRV_COMPAT microchip_xec_rtos_timer
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/devicetree.h>
#include <soc.h>
#include <zephyr/drivers/timer/system_timer.h>

2
drivers/timer/mcux_gpt_timer.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#define DT_DRV_COMPAT nxp_gpt_hw_timer
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <fsl_gpt.h>
#include <zephyr/sys_clock.h>

2
drivers/timer/mcux_lptmr_timer.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#define DT_DRV_COMPAT nxp_kinetis_lptmr
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/time_units.h>

2
drivers/timer/mcux_os_timer.c

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include <limits.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>

2
drivers/timer/mips_cp0_timer.c

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#include <limits.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>

2
drivers/timer/native_posix_timer.c

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
*/
#include "zephyr/types.h"
#include <zephyr/irq.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include "timer_model.h"

2
drivers/timer/npcx_itim_timer.c

@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
* "sleep/deep sleep" power state if CONFIG_PM is enabled.
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/kernel.h>

2
drivers/timer/nrf_rtc_timer.c

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/nrf_clock_control.h>

2
drivers/timer/rcar_cmt_timer.c

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
*/
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/drivers/clock_control.h>

2
drivers/timer/riscv_machine_timer.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include <limits.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>

2
drivers/timer/rv32m1_lptmr_timer.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#define DT_DRV_COMPAT openisa_rv32m1_lptmr
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/timer/system_timer.h>

2
drivers/timer/sam0_rtc_timer.c

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
* generate an interrupt every tick.
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/timer/system_timer.h>

2
drivers/timer/stm32_lptim_timer.c

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <stm32_ll_lptim.h>
#include <stm32_ll_bus.h>

2
drivers/timer/xlnx_psttc_timer.c

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#define DT_DRV_COMPAT xlnx_ttcps
#include <zephyr/arch/cpu.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/sys_clock.h>
#include <soc.h>

2
drivers/timer/xtensa_sys_timer.c

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/spinlock.h>

Loading…
Cancel
Save