Skip to content

Commit

Permalink
soc: intel_adsp: ace: set xtensa ccount per platform
Browse files Browse the repository at this point in the history
XTENSA_CCOUNT_HZ is no longer common to ACE soc series
This will fix Hz value for ACE30 platform

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
  • Loading branch information
abonislawski authored and MaureenHelm committed Aug 14, 2024
1 parent bbcf23e commit 784bc06
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
7 changes: 7 additions & 0 deletions soc/intel/intel_adsp/ace/Kconfig.defconfig.ace15_mtpm
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ if SOC_INTEL_ACE15_MTPM
config MP_MAX_NUM_CPUS
default 3

config SYS_CLOCK_HW_CYCLES_PER_SEC
default 393216000 if XTENSA_TIMER
default 38400000 if INTEL_ADSP_TIMER

config XTENSA_CCOUNT_HZ
default 393216000

endif
7 changes: 7 additions & 0 deletions soc/intel/intel_adsp/ace/Kconfig.defconfig.ace20_lnl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ if SOC_INTEL_ACE20_LNL
config MP_MAX_NUM_CPUS
default 5

config SYS_CLOCK_HW_CYCLES_PER_SEC
default 393216000 if XTENSA_TIMER
default 38400000 if INTEL_ADSP_TIMER

config XTENSA_CCOUNT_HZ
default 393216000

endif
7 changes: 7 additions & 0 deletions soc/intel/intel_adsp/ace/Kconfig.defconfig.ace30_ptl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ if SOC_INTEL_ACE30_PTL
config MP_MAX_NUM_CPUS
default 5

config SYS_CLOCK_HW_CYCLES_PER_SEC
default 442368000 if XTENSA_TIMER
default 38400000 if INTEL_ADSP_TIMER

config XTENSA_CCOUNT_HZ
default 442368000

config CPU_HAS_MMU
def_bool y

Expand Down
7 changes: 0 additions & 7 deletions soc/intel/intel_adsp/ace/Kconfig.defconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,9 @@ config XTENSA_TIMER
config XTENSA_TIMER_ID
default 0

config SYS_CLOCK_HW_CYCLES_PER_SEC
default 393216000 if XTENSA_TIMER
default 38400000 if INTEL_ADSP_TIMER

config SYS_CLOCK_TICKS_PER_SEC
default 12000

config XTENSA_CCOUNT_HZ
default 393216000

config INTEL_ADSP_TIMER
default y

Expand Down

0 comments on commit 784bc06

Please sign in to comment.