1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +02:00

Add ENE LPC programmer

Initial support of ENE LPC interface keyboard controller.

BUG=b:156140422
BRANCH=none

Signed-off-by: Victor Ding <victording@google.com>
Change-Id: I970afd8c1bd92c159c60e09f22e2f18c0433729d
Reviewed-on: https://review.coreboot.org/c/flashrom/+/44580
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:
Victor Ding
2020-08-19 22:48:19 +10:00
committed by Edward O'Callaghan
parent 22cd31674d
commit 436b4155b1
6 changed files with 645 additions and 0 deletions

View File

@ -170,6 +170,11 @@ UNSUPPORTED_FEATURES += CONFIG_DEVELOPERBOX_SPI=yes
else
override CONFIG_DEVELOPERBOX_SPI = no
endif
ifeq ($(CONFIG_ENE_LPC), yes)
UNSUPPORTED_FEATURES += CONFIG_ENE_LPC=yes
else
override CONFIG_ENE_LPC = no
endif
ifeq ($(CONFIG_FT2232_SPI), yes)
UNSUPPORTED_FEATURES += CONFIG_FT2232_SPI=yes
else
@ -271,6 +276,11 @@ UNSUPPORTED_FEATURES += CONFIG_ATAPROMISE=yes
else
override CONFIG_ATAPROMISE = no
endif
ifeq ($(CONFIG_ENE_LPC), yes)
UNSUPPORTED_FEATURES += CONFIG_ENE_LPC=yes
else
override CONFIG_ENE_LPC = no
endif
ifeq ($(CONFIG_IT8212), yes)
UNSUPPORTED_FEATURES += CONFIG_IT8212=yes
else
@ -381,6 +391,11 @@ UNSUPPORTED_FEATURES += CONFIG_DEVELOPERBOX_SPI=yes
else
override CONFIG_DEVELOPERBOX_SPI = no
endif
ifeq ($(CONFIG_ENE_LPC), yes)
UNSUPPORTED_FEATURES += CONFIG_ENE_LPC=yes
else
override CONFIG_ENE_LPC = no
endif
ifeq ($(CONFIG_FT2232_SPI), yes)
UNSUPPORTED_FEATURES += CONFIG_FT2232_SPI=yes
else
@ -671,6 +686,9 @@ CONFIG_ATAVIA ?= yes
# Promise ATA controller support.
CONFIG_ATAPROMISE ?= no
# ENE LPC interface keyboard controller
CONFIG_ENE_LPC ?= yes
# Always enable FT2232 SPI dongles for now.
CONFIG_FT2232_SPI ?= yes
@ -855,6 +873,11 @@ endif
NEED_LIBPCI += CONFIG_INTERNAL
endif
ifeq ($(CONFIG_ENE_LPC), yes)
FEATURE_CFLAGS += -D'CONFIG_ENE_LPC=1'
PROGRAMMER_OBJS += ene_lpc.o
endif
ifeq ($(CONFIG_SERPROG), yes)
FEATURE_CFLAGS += -D'CONFIG_SERPROG=1'
PROGRAMMER_OBJS += serprog.o