summaryrefslogtreecommitdiff
path: root/board/willow
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2020-08-24 16:20:05 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-24 14:56:59 +0000
commit3412f7ff3d1dd5905f92d84189270657896b508a (patch)
tree104262ff5d1f586cf192ca51b4c005b86e1befc2 /board/willow
parent795157c2a91fe822e5aa74cc33480a85294a2f7f (diff)
downloadchrome-ec-3412f7ff3d1dd5905f92d84189270657896b508a.tar.gz
willow: free flash space
Disable PD log and enable GPIO short name to save ~800 bytes for RO. BRANCH=None BUG=None TEST=make buildall Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I28ecf9055c0833496bf8fc225ee313fd14dcf9b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2371745 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/willow')
-rw-r--r--board/willow/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/willow/board.h b/board/willow/board.h
index f2150b15b3..732d62f3bf 100644
--- a/board/willow/board.h
+++ b/board/willow/board.h
@@ -18,6 +18,13 @@
#include "baseboard.h"
+/* free flash space */
+#ifdef SECTION_IS_RO
+#undef CONFIG_USB_PD_DEBUG_LEVEL
+#define CONFIG_USB_PD_DEBUG_LEVEL 0
+#define CONFIG_COMMON_GPIO_SHORTNAMES
+#endif
+
#undef CONFIG_CHIPSET_POWER_SEQ_VERSION
#define CONFIG_CHIPSET_POWER_SEQ_VERSION 1