From 11c7e5a1573a82d8c0d2965a040b834ee16cf0c4 Mon Sep 17 00:00:00 2001 From: Francisco Munoz Date: Mon, 21 Oct 2019 11:26:49 -0700 Subject: [PATCH] soc: microchip_mec: Add header for extracting eSPI data This header contains encoding offsets for all the eSPI channels which communicate data from/to the host. Signed-off-by: Francisco Munoz --- .../microchip_mec/common/soc_espi_channels.h | 23 +++++++++++++++++++ soc/arm/microchip_mec/mec1501/soc.h | 1 + 2 files changed, 24 insertions(+) create mode 100644 soc/arm/microchip_mec/common/soc_espi_channels.h diff --git a/soc/arm/microchip_mec/common/soc_espi_channels.h b/soc/arm/microchip_mec/common/soc_espi_channels.h new file mode 100644 index 00000000000..680b326167e --- /dev/null +++ b/soc/arm/microchip_mec/common/soc_espi_channels.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2019 Intel Corporation. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef _SOC_ESPI_CHANNELS_H_ +#define _SOC_ESPI_CHANNELS_H_ + +#ifdef __cplusplus +extern "C" { +#endif +/* Channel 0 - Peripheral Channel */ + +/* 8042 event data */ +#define E8042_ISR_DATA_POS 8U +#define E8042_ISR_CMD_DATA_POS 0U + +#ifdef __cplusplus +} +#endif + +#endif /* _SOC_ESPI_CHANNELS_H_ */ diff --git a/soc/arm/microchip_mec/mec1501/soc.h b/soc/arm/microchip_mec/mec1501/soc.h index 0922d50ec83..24c984b6b17 100644 --- a/soc/arm/microchip_mec/mec1501/soc.h +++ b/soc/arm/microchip_mec/mec1501/soc.h @@ -16,6 +16,7 @@ #include "../common/soc_gpio.h" #include "../common/soc_pins.h" +#include "../common/soc_espi_channels.h" #endif