summaryrefslogtreecommitdiff
path: root/baseboard/honeybuns
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-02-11 15:46:24 -0700
committerCommit Bot <commit-bot@chromium.org>2022-02-25 21:08:55 +0000
commit9877be7ea518130372b6524898c950f2065e0304 (patch)
tree4120f10feed39d9a381cdcff0ed0daa9da4400a0 /baseboard/honeybuns
parente420fea291a6fed8c5d5a237e1f07cbece74a57d (diff)
downloadchrome-ec-9877be7ea518130372b6524898c950f2065e0304.tar.gz
gpio: cleanup header usage for i2c
i2c.h only requires the enum gpio_signal, so use gpio_signal.h instead of gpio.h. The builld doesn't compare due to an ASSERT() calls in i2c-stm32f4.c because the line numbers changed. Before this change: 80068b2: f240 2332 movw r3, #562 80068b6: 48a4 ldr r0, [pc, #656] 80068b8: f7fc fb1a bl 8002ef0 <panic_assert_fail> After this change: 80068b2: f44f 730d mov.w r3, #564 80068b6: 48a4 ldr r0, [pc, #656] 80068b8: f7fc fb1a bl 8002ef0 <panic_assert_fail> BUG=b:218856245 BRANCH=none TEST=compare_build.sh Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I0f9f428d5c575c444b9df69f71a0ed6c4b3e378c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489094 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'baseboard/honeybuns')
-rw-r--r--baseboard/honeybuns/usb_pd_policy.c1
-rw-r--r--baseboard/honeybuns/usbc_support.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/baseboard/honeybuns/usb_pd_policy.c b/baseboard/honeybuns/usb_pd_policy.c
index faaef9083f..ab95a7f9b6 100644
--- a/baseboard/honeybuns/usb_pd_policy.c
+++ b/baseboard/honeybuns/usb_pd_policy.c
@@ -10,6 +10,7 @@
#include "driver/mp4245.h"
#include "driver/tcpm/tcpci.h"
#include "driver/mp4245.h"
+#include "gpio.h"
#include "hooks.h"
#include "task.h"
#include "timer.h"
diff --git a/baseboard/honeybuns/usbc_support.c b/baseboard/honeybuns/usbc_support.c
index d1b23ef40b..c03e94f076 100644
--- a/baseboard/honeybuns/usbc_support.c
+++ b/baseboard/honeybuns/usbc_support.c
@@ -10,6 +10,7 @@
#include "driver/tcpm/tcpci.h"
#include "driver/tcpm/ps8xxx.h"
#include "sn5s330.h"
+#include "gpio.h"
#include "hooks.h"
#include "i2c.h"
#include "system.h"