summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2019-11-04 14:18:31 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-09 02:16:44 +0000
commitb2cce02ee290287ddd2908553019d7c4c0547b69 (patch)
tree5e352688a6720f82d91ba583ba0f5dd07249ba8a /chip
parent27db31e6d02a54d5706d8cb4d1b5db6ff757f659 (diff)
downloadchrome-ec-b2cce02ee290287ddd2908553019d7c4c0547b69.tar.gz
chip/stm32/system: Fix the BUILD_ASSERT for CONFIG_USB_PD_PORT_MAX_COUNT
Some boards have CONFIG_USB_PD_PORT_MAX_COUNT defined as 3. Fix the concerned build assert. BUG=None BRANCH=None TEST=make -j buildall; Boot to ChromeOS in bobba(2A + 2C config) and garg(2A + 1C + 1HDMI config). Change-Id: I4dc949b69dbb3986acc5aa0444c6056268f815f7 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1898686 Tested-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Commit-Queue: Karthikeyan Ramasubramanian <kramasub@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/system.c b/chip/stm32/system.c
index 58b77fba92..4b0dada71d 100644
--- a/chip/stm32/system.c
+++ b/chip/stm32/system.c
@@ -79,7 +79,7 @@ enum bkpdata_index {
BUILD_ASSERT(STM32_BKP_ENTRIES >= BKPDATA_COUNT);
#ifdef CONFIG_USB_PD_DUAL_ROLE
-BUILD_ASSERT(CONFIG_USB_PD_PORT_MAX_COUNT <= 2);
+BUILD_ASSERT(CONFIG_USB_PD_PORT_MAX_COUNT <= 3);
#endif
/**