aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/intel_telemetry.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-04-16 11:15:45 +0300
committerLee Jones <lee.jones@linaro.org>2020-04-24 11:18:08 +0100
commit68c73fb224778b8fd52b386f971a5cb3bca67878 (patch)
tree54eda387f9a127395940d2084a8889976a730091 /arch/x86/include/asm/intel_telemetry.h
parentmfd: intel_soc_pmic_mrfld: Convert to use new SCU IPC API (diff)
downloadlinux-dev-68c73fb224778b8fd52b386f971a5cb3bca67878.tar.xz
linux-dev-68c73fb224778b8fd52b386f971a5cb3bca67878.zip
platform/x86: intel_telemetry: Convert to use new SCU IPC API
Convert the Intel Apollo Lake telemetry driver to use the new SCU IPC API. This allows us to get rid of the duplicate PMC IPC implementation which is now covered in SCU IPC driver. Also move telemetry specific IPC message constant to the telemetry driver where it belongs. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'arch/x86/include/asm/intel_telemetry.h')
-rw-r--r--arch/x86/include/asm/intel_telemetry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/intel_telemetry.h b/arch/x86/include/asm/intel_telemetry.h
index 2f77e31a1283..274aaf0dae48 100644
--- a/arch/x86/include/asm/intel_telemetry.h
+++ b/arch/x86/include/asm/intel_telemetry.h
@@ -10,6 +10,8 @@
#define TELEM_MAX_EVENTS_SRAM 28
#define TELEM_MAX_OS_ALLOCATED_EVENTS 20
+#include <asm/intel_scu_ipc.h>
+
enum telemetry_unit {
TELEM_PSS = 0,
TELEM_IOSS,
@@ -51,6 +53,7 @@ struct telemetry_plt_config {
struct telemetry_unit_config ioss_config;
struct mutex telem_trace_lock;
struct mutex telem_lock;
+ struct intel_scu_ipc_dev *scu;
bool telem_in_use;
};