ec/it*: Merge remaining ITE EC files

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2021-06-10 12:55:13 -06:00
committed by Jeremy Soller
parent cd8e76420d
commit f9e4e25b05
20 changed files with 58 additions and 531 deletions

17
src/ec/ite/signature.c Normal file
View File

@ -0,0 +1,17 @@
// SPDX-License-Identifier: GPL-3.0-only
#include <ec/espi.h>
#if EC_ESPI
// eSPI signature (byte 7 = 0xA4)
static __code const unsigned char __at(0x40) SIGNATURE[16] = {
0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA4, 0x95,
0x85, 0x12, 0x5A, 0x5A, 0xAA, 0x00, 0x55, 0x55,
};
#else // EC_ESPI
// LPC signature (byte 7 = 0xA5)
static __code const unsigned char __at(0x40) SIGNATURE[16] = {
0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0x94,
0x85, 0x12, 0x5A, 0x5A, 0xAA, 0x00, 0x55, 0x55,
};
#endif // EC_ESPI