diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-07-24 09:58:24 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-08-28 04:22:56 +0200 |
commit | 687eb3c42f4ad81e7c947c50e2d865f692064291 (patch) | |
tree | 172fa1b60eb08f32defd1b240e2ded0e9e4a5a33 /arch/xtensa/include | |
parent | Linux 6.5 (diff) | |
download | linux-687eb3c42f4ad81e7c947c50e2d865f692064291.tar.xz linux-687eb3c42f4ad81e7c947c50e2d865f692064291.zip |
xtensa: PMU: fix base address for the newer hardware
With introduction of ERI access control in RG.0 base address of the PMU
unit registers has changed. Add support for the new PMU configuration.
Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/core.h b/arch/xtensa/include/asm/core.h index 0e1bb6f019d6..3f5ffae89b58 100644 --- a/arch/xtensa/include/asm/core.h +++ b/arch/xtensa/include/asm/core.h @@ -52,4 +52,13 @@ #define XTENSA_STACK_ALIGNMENT 16 #endif +#ifndef XCHAL_HW_MIN_VERSION +#if defined(XCHAL_HW_MIN_VERSION_MAJOR) && defined(XCHAL_HW_MIN_VERSION_MINOR) +#define XCHAL_HW_MIN_VERSION (XCHAL_HW_MIN_VERSION_MAJOR * 100 + \ + XCHAL_HW_MIN_VERSION_MINOR) +#else +#define XCHAL_HW_MIN_VERSION 0 +#endif +#endif + #endif |