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

@@ -4,7 +4,7 @@ board-y += board.c
board-y += gpio.c
EC=ite
EC_VARIANT=it8587e
CONFIG_EC_ITE_IT8587E=y
# Include keyboard
KEYBOARD=15in_102