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
@@ -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
|
||||
|
Reference in New Issue
Block a user