Conditionally compile eSPI support

A board may use either the LPC bus or the eSPI bus. Only include eSPI
support for boards that use it.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2022-11-30 08:51:54 -07:00
committed by Jeremy Soller
parent 5e884cf413
commit d687df482a
21 changed files with 42 additions and 51 deletions

View File

@ -3,17 +3,17 @@
#include <ec/espi.h>
// clang-format off
#if EC_ESPI
#if CONFIG_BUS_ESPI
// eSPI signature (byte 7 = 0xA4)
static __code const uint8_t __at(0x40) SIGNATURE[16] = {
0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA4, 0x95,
0x85, 0x12, 0x5A, 0x5A, 0xAA, 0x00, 0x55, 0x55,
};
#else // EC_ESPI
#else // CONFIG_BUS_ESPI
// LPC signature (byte 7 = 0xA5)
static __code const uint8_t __at(0x40) SIGNATURE[16] = {
0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0x94,
0x85, 0x12, 0x5A, 0x5A, 0xAA, 0x00, 0x55, 0x55,
};
#endif // EC_ESPI
#endif // CONFIG_BUS_ESPI
// clang-format on