summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2018-03-29 16:20:16 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-29 19:51:48 -0700
commitdefa59c6d176d8feb9a532562676ea0f96bd8893 (patch)
treeec88ddabddcd9b27921de44e2bfd209e7edf0260
parent109921e29d60c2eafa46147b296db558887be9a9 (diff)
downloadchrome-ec-defa59c6d176d8feb9a532562676ea0f96bd8893.tar.gz
cleanup: it83xx: don't enable non-essential modules at default
We let board-level code to enable them if needed. BUG=none BRANCH=none TEST=make buildall -j Change-Id: I9369e33ee1821125cf8719a0c3526afaf294da80 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/985346 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--board/it83xx_evb/board.h4
-rw-r--r--board/reef_it8320/board.h6
-rw-r--r--chip/it83xx/config_chip.h3
3 files changed, 3 insertions, 10 deletions
diff --git a/board/it83xx_evb/board.h b/board/it83xx_evb/board.h
index ec809aa350..4c4b0123f3 100644
--- a/board/it83xx_evb/board.h
+++ b/board/it83xx_evb/board.h
@@ -22,9 +22,12 @@
#define CONFIG_KEYBOARD_PROTOCOL_8042
#define CONFIG_LOW_POWER_IDLE
#define CONFIG_LOW_POWER_S0
+#define CONFIG_PECI
#define CONFIG_PECI_TJMAX 100
#define CONFIG_POWER_BUTTON
+#define CONFIG_PWM
/* Use CS0 of SSPI */
+#define CONFIG_SPI
#define CONFIG_SPI_FLASH_PORT 0
#define CONFIG_UART_HOST
@@ -42,7 +45,6 @@
#define CONFIG_USB_POWER_DELIVERY
#define CONFIG_USBC_VCONN
#define CONFIG_USBC_VCONN_SWAP
-#undef CONFIG_UART_HOST
#endif
/* Optional console commands */
diff --git a/board/reef_it8320/board.h b/board/reef_it8320/board.h
index 07660e57a9..d1af80fc6a 100644
--- a/board/reef_it8320/board.h
+++ b/board/reef_it8320/board.h
@@ -137,12 +137,6 @@
#define CONFIG_VSTORE
#define CONFIG_VSTORE_SLOT_COUNT 1
-/* modules we want to exclude */
-#undef CONFIG_PECI
-#undef CONFIG_PWM
-#undef CONFIG_SPI
-#undef CONFIG_UART_HOST
-
#undef CONFIG_UART_TX_BUF_SIZE
#define CONFIG_UART_TX_BUF_SIZE 4096
#undef CONFIG_UART_RX_BUF_SIZE
diff --git a/chip/it83xx/config_chip.h b/chip/it83xx/config_chip.h
index 41509b3563..d410f4d744 100644
--- a/chip/it83xx/config_chip.h
+++ b/chip/it83xx/config_chip.h
@@ -104,9 +104,6 @@
#define CONFIG_ADC
#define CONFIG_EC2I
#define CONFIG_LPC
-#define CONFIG_PECI
-#define CONFIG_PWM
-#define CONFIG_SPI
#define CONFIG_SWITCH
/* Chip needs to do custom pre-init */