make: Add config for each ITE EC

EC_VARIANT is only used on AVR as a parameter to avrdude.

Replace its use on ITE with 2 choices:

- CONFIG_EC_ITE_IT8587E
- CONFIG_EC_ITE_IT5570E

Replace the EC defines with a matching define for the variable.
This commit is contained in:
Tim Crawford
2022-10-17 10:12:06 -06:00
committed by Tim Crawford
parent ac9631f948
commit 861f1f2cc8
35 changed files with 44 additions and 42 deletions

View File

@ -2,7 +2,7 @@
#include <ec/espi.h>
#ifdef it5570e
#if CONFIG_EC_ITE_IT5570E
// Not all wires are defined or implemented
// Index 2 - AP to EC
@ -63,4 +63,4 @@ void vw_set(struct VirtualWire * vw, enum VirtualWireState state) __critical {
*vw->index = index;
}
#endif // it5570e
#endif // CONFIG_EC_ITE_IT5570E