drivers: timer: intel_adsp: Update driver to use dts Kconfig symbol

Update Intel ADSP timer driver to use DT_HAS_<compat>_ENABLED Kconfig
symbol to expose the driver and enable it by default based on
devicetree.

We remove setting 'default y' for the timer driver in
Kconfig.defconfig.series as that is now handled in the driver Kconfig.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
Kumar Gala 2022-10-31 15:41:31 -05:00 committed by Fabio Baltieri
parent 05d02e2dac
commit 0a7c25e649
3 changed files with 2 additions and 6 deletions

View file

@ -16,6 +16,8 @@ config CAVS_TIMER
config INTEL_ADSP_TIMER
bool "Intel Audio DSP timer"
default y
depends on DT_HAS_INTEL_ADSP_TIMER_ENABLED
select CAVS_TIMER
select TICKLESS_CAPABLE
select TIMER_HAS_64BIT_CYCLE_COUNTER

View file

@ -45,9 +45,6 @@ config XTENSA_TIMER
config XTENSA_TIMER_ID
default 0
config INTEL_ADSP_TIMER
default y
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 400000000 if XTENSA_TIMER
default 19200000 if INTEL_ADSP_TIMER

View file

@ -28,9 +28,6 @@ config SMP
config XTENSA_TIMER
default n
config INTEL_ADSP_TIMER
default y
config KERNEL_ENTRY
default "_MainEntry"