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 <francisco.munoz.ruiz@intel.com>
This commit is contained in:
Francisco Munoz 2019-10-21 11:26:49 -07:00 committed by Anas Nashif
commit 11c7e5a157
2 changed files with 24 additions and 0 deletions

View file

@ -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_ */

View file

@ -16,6 +16,7 @@
#include "../common/soc_gpio.h"
#include "../common/soc_pins.h"
#include "../common/soc_espi_channels.h"
#endif