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

@@ -11,7 +11,7 @@
void kbc_init(void) {
// Disable interrupts
*(KBC.control) = 0;
#if EC_ESPI
#if CONFIG_BUS_ESPI
// Set IRQ mode to edge-triggered, 1-cycle pulse width
*(KBC.irq) = BIT(3);
#else