summaryrefslogtreecommitdiff
path: root/chip/lm4
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-05-21 10:22:55 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-05-22 21:56:39 -0700
commitdf06639b1d4fd2798e577f9aead6bc4495d5f3b5 (patch)
tree060bf073cf3e24c75ffb78aa62855cc28c089c42 /chip/lm4
parentfddf4e703d8673b8ea62f81c8aba3943cfeffea5 (diff)
downloadchrome-ec-df06639b1d4fd2798e577f9aead6bc4495d5f3b5.tar.gz
lpc/espi: convert ec chip code to use granular option
Break the ec chip code up with the more granular CONFIG_HOSTCMD_(X86|LPC|ESPI) options. BRANCH=none BUG=chromium:818804 TEST=Full stack builds and works on yorp (espi) and grunt (lpc) Change-Id: Ie272787b2425175fe36b06fcdeeee90ec5ccbe95 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1067502 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4')
-rw-r--r--chip/lm4/build.mk2
-rw-r--r--chip/lm4/config_chip.h2
-rw-r--r--chip/lm4/uart.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/chip/lm4/build.mk b/chip/lm4/build.mk
index 8adde58abd..a9982efced 100644
--- a/chip/lm4/build.mk
+++ b/chip/lm4/build.mk
@@ -20,7 +20,7 @@ chip-$(CONFIG_EEPROM)+=eeprom.o
chip-$(CONFIG_FANS)+=fan.o
chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o
chip-$(CONFIG_I2C)+=i2c.o
-chip-$(CONFIG_LPC)+=lpc.o
+chip-$(CONFIG_HOSTCMD_LPC)+=lpc.o
chip-$(CONFIG_PECI)+=peci.o
# pwm functions are implemented with the fan functions
chip-$(CONFIG_PWM)+=pwm.o fan.o
diff --git a/chip/lm4/config_chip.h b/chip/lm4/config_chip.h
index 64dfb99dc6..9d3c53ded2 100644
--- a/chip/lm4/config_chip.h
+++ b/chip/lm4/config_chip.h
@@ -93,7 +93,7 @@
/* Optional features present on this chip */
#define CONFIG_ADC
#define CONFIG_HOSTCMD_ALIGNED
-#define CONFIG_LPC
+#define CONFIG_HOSTCMD_LPC
#define CONFIG_PECI
#define CONFIG_SWITCH
#define CONFIG_MPU
diff --git a/chip/lm4/uart.c b/chip/lm4/uart.c
index 21fdf70ec9..6ef9f67834 100644
--- a/chip/lm4/uart.c
+++ b/chip/lm4/uart.c
@@ -123,7 +123,7 @@ void uart_host_interrupt(void)
/* Clear transmit and receive interrupt status */
LM4_UART_ICR(CONFIG_UART_HOST) = 0x70;
-#ifdef CONFIG_LPC
+#ifdef CONFIG_HOSTCMD_LPC
/*
* If we have space in our FIFO and a character is pending in LPC,
* handle that character.