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:
committed by
Jeremy Soller
parent
5e884cf413
commit
d687df482a
@ -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
|
||||
|
Reference in New Issue
Block a user