summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-06-08 17:08:30 -0600
committerCommit Bot <commit-bot@chromium.org>2020-06-09 05:59:25 +0000
commit156fb7f26cd1dbb9348386764ae79d84cce8c8d9 (patch)
treeb97a993e8ca4bd141779f6fb1f6ac0bd4eca2451
parent13903ab31acf0db6e5123b7173a3c09c001741bd (diff)
downloadchrome-ec-156fb7f26cd1dbb9348386764ae79d84cce8c8d9.tar.gz
kukui: Disable TCPMv1 state names in RO
Disable CONFIG_USB_PD_TCPMV1_DEBUG to save 900 bytes of RO flash space. This is to keep kukui buildig at ToT - do not pick this onto a release branch. BUG=b:156398243 BRANCH=none TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I7bc9d84a0cd172e20399b51eb7cd73c89119a574 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2236866 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--baseboard/kukui/baseboard.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/baseboard/kukui/baseboard.h b/baseboard/kukui/baseboard.h
index 881c1991f1..09b9dc46ac 100644
--- a/baseboard/kukui/baseboard.h
+++ b/baseboard/kukui/baseboard.h
@@ -209,6 +209,10 @@
#define CONFIG_CHARGE_MANAGER
#define CONFIG_USB_POWER_DELIVERY
#define CONFIG_USB_PD_TCPMV1
+/* Exclude PD state names from RO image to save space */
+#ifdef SECTION_IS_RO
+#undef CONFIG_USB_PD_TCPMV1_DEBUG
+#endif
#define CONFIG_USB_PD_ALT_MODE
#define CONFIG_USB_PD_ALT_MODE_DFP
#define CONFIG_USB_PD_DUAL_ROLE