summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2014-12-18 22:54:13 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-20 04:46:35 +0000
commitf8019bff3a9a910f0e4a2b6da052c02ecba284e5 (patch)
treef879e4e8b6091bf63a1b3a2ce44c80d36464a531
parente78d09d5a5863db4c981ff39e8d8948792713eac (diff)
downloadchrome-ec-f8019bff3a9a910f0e4a2b6da052c02ecba284e5.tar.gz
ryu_p1: shorten GPIO name string length to reduce flash size.
In order to reduce flash size on some constrained boards this CL modifies the GPIO macro in gpio_list.h to change the name field from that listed 'name' to the concat of 'port' and 'pin'. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=samus BUG=chrome-os-partner:34489 TEST=manual 1. build with and without CONFIG_COMMON_GPIO_SHORTNAMES See >500 bytes savings with config option 2. See reduced names for gpioget Change-Id: I6ed2c1d16aae5923fdf47a1b2dbb2362598a19e0 Reviewed-on: https://chromium-review.googlesource.com/236766 Trybot-Ready: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org>
-rw-r--r--board/ryu_p1/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/ryu_p1/board.h b/board/ryu_p1/board.h
index a06c4cbf38..abfc0fb2e7 100644
--- a/board/ryu_p1/board.h
+++ b/board/ryu_p1/board.h
@@ -19,6 +19,7 @@
#define CC_DEFAULT (CC_ALL & ~CC_MASK(CC_USBPD))
/* Optional features */
+#define CONFIG_COMMON_GPIO_SHORTNAMES
#define CONFIG_STM_HWTIMER32
#define CONFIG_USB_POWER_DELIVERY
#define CONFIG_USB_PD_CUSTOM_VDM