summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-17 15:15:04 -0700
committerCommit Bot <commit-bot@chromium.org>2020-12-22 23:39:33 +0000
commitd34782fcd1d2ff88522fd024ade74289a37f455d (patch)
treed19af58f99256fa5f34c2cf9214cc4fe5be1dfcd /common
parent2998fbcc036338a16f2d66483b8cecb317316df0 (diff)
downloadchrome-ec-d34782fcd1d2ff88522fd024ade74289a37f455d.tar.gz
tcpm: Move tcpm.h into an include directory
This header file is used from quite a few files, relying on the EC build system to find includes in the driver/tcpm directory. For Zephyr we don't want to add that as an include. It makes more sense for header files to be in an include directory, so move it and fix up the users. BUG=b:175434113 BRANCH=none TEST=build Zephyr and ECOS on volteer Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I5851914b1a7d3fdc1ba911c0fbe9046afbaf6f5d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597985 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/charge_manager.c2
-rw-r--r--common/host_command_pd.c2
-rw-r--r--common/usb_pd_host_cmd.c2
-rw-r--r--common/usb_pd_policy.c2
-rw-r--r--common/usb_pd_protocol.c2
-rw-r--r--common/usb_pd_tcpc.c2
-rw-r--r--common/usbc/tbt_alt_mode.c2
-rw-r--r--common/usbc/usb_mode.c2
-rw-r--r--common/usbc/usb_pd_dpm.c2
-rw-r--r--common/usbc/usb_pe_drp_sm.c2
-rw-r--r--common/usbc/usb_prl_sm.c2
-rw-r--r--common/usbc/usb_tc_ctvpd_sm.c2
-rw-r--r--common/usbc/usb_tc_drp_acc_trysrc_sm.c2
-rw-r--r--common/usbc/usb_tc_vpd_sm.c2
-rw-r--r--common/usbc/usbc_task.c2
15 files changed, 15 insertions, 15 deletions
diff --git a/common/charge_manager.c b/common/charge_manager.c
index e3c2f52620..eb6fd26595 100644
--- a/common/charge_manager.c
+++ b/common/charge_manager.c
@@ -15,7 +15,7 @@
#include "hooks.h"
#include "host_command.h"
#include "system.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "timer.h"
#include "usb_pd.h"
#include "usb_pd_tcpm.h"
diff --git a/common/host_command_pd.c b/common/host_command_pd.c
index d46220a7a6..f9b67c8b8d 100644
--- a/common/host_command_pd.c
+++ b/common/host_command_pd.c
@@ -14,7 +14,7 @@
#include "panic.h"
#include "system.h"
#include "task.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "timer.h"
#include "usb_pd.h"
#include "usb_pd_tcpm.h"
diff --git a/common/usb_pd_host_cmd.c b/common/usb_pd_host_cmd.c
index f8cb9f38e3..dedfad4f2a 100644
--- a/common/usb_pd_host_cmd.c
+++ b/common/usb_pd_host_cmd.c
@@ -14,7 +14,7 @@
#include "ec_commands.h"
#include "host_command.h"
#include "mkbp_event.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_mux.h"
#include "usb_pd_tcpm.h"
#include "usb_pd.h"
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c
index b480981a2d..89c87aacf5 100644
--- a/common/usb_pd_policy.c
+++ b/common/usb_pd_policy.c
@@ -18,7 +18,7 @@
#include "sha256.h"
#include "system.h"
#include "task.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "timer.h"
#include "util.h"
#include "usb_api.h"
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 4fae35aedb..b10d0e0c11 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -21,7 +21,7 @@
#include "system.h"
#include "task.h"
#include "tcpci.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "timer.h"
#include "util.h"
#include "usb_charge.h"
diff --git a/common/usb_pd_tcpc.c b/common/usb_pd_tcpc.c
index d8f1739532..813572e6a6 100644
--- a/common/usb_pd_tcpc.c
+++ b/common/usb_pd_tcpc.c
@@ -16,7 +16,7 @@
#include "system.h"
#include "task.h"
#include "tcpci.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "timer.h"
#include "util.h"
#include "usb_pd.h"
diff --git a/common/usbc/tbt_alt_mode.c b/common/usbc/tbt_alt_mode.c
index 23261adb5e..c6100e48c4 100644
--- a/common/usbc/tbt_alt_mode.c
+++ b/common/usbc/tbt_alt_mode.c
@@ -13,7 +13,7 @@
#include <stdint.h>
#include "compile_time_macros.h"
#include "console.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_common.h"
#include "usb_mux.h"
#include "usb_pd.h"
diff --git a/common/usbc/usb_mode.c b/common/usbc/usb_mode.c
index 5a1965d431..bbdad46a05 100644
--- a/common/usbc/usb_mode.c
+++ b/common/usbc/usb_mode.c
@@ -13,7 +13,7 @@
#include <stdint.h>
#include "compile_time_macros.h"
#include "console.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_common.h"
#include "usb_mode.h"
#include "usb_mux.h"
diff --git a/common/usbc/usb_pd_dpm.c b/common/usbc/usb_pd_dpm.c
index d71e590922..a8bb242954 100644
--- a/common/usbc/usb_pd_dpm.c
+++ b/common/usbc/usb_pd_dpm.c
@@ -13,7 +13,7 @@
#include "console.h"
#include "ec_commands.h"
#include "system.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_dp_alt_mode.h"
#include "usb_mode.h"
#include "usb_pd.h"
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c
index cb0b1611b9..1cb44bf164 100644
--- a/common/usbc/usb_pe_drp_sm.c
+++ b/common/usbc/usb_pe_drp_sm.c
@@ -15,7 +15,7 @@
#include "stdbool.h"
#include "system.h"
#include "task.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "util.h"
#include "usb_common.h"
#include "usb_dp_alt_mode.h"
diff --git a/common/usbc/usb_prl_sm.c b/common/usbc/usb_prl_sm.c
index bbf6060196..00a4cecfeb 100644
--- a/common/usbc/usb_prl_sm.c
+++ b/common/usbc/usb_prl_sm.c
@@ -19,7 +19,7 @@
#include "system.h"
#include "task.h"
#include "timer.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "util.h"
#include "usb_charge.h"
#include "usb_mux.h"
diff --git a/common/usbc/usb_tc_ctvpd_sm.c b/common/usbc/usb_tc_ctvpd_sm.c
index ba4b9710dc..a2babe754a 100644
--- a/common/usbc/usb_tc_ctvpd_sm.c
+++ b/common/usbc/usb_tc_ctvpd_sm.c
@@ -7,7 +7,7 @@
#include "console.h"
#include "system.h"
#include "task.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_pd.h"
#include "usb_tc_sm.h"
#include "vpd_api.h"
diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
index 74b3552309..e36d64b03b 100644
--- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c
+++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
@@ -10,7 +10,7 @@
#include "hooks.h"
#include "system.h"
#include "task.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_common.h"
#include "usb_mux.h"
#include "usb_pd.h"
diff --git a/common/usbc/usb_tc_vpd_sm.c b/common/usbc/usb_tc_vpd_sm.c
index 171c219705..f230d15003 100644
--- a/common/usbc/usb_tc_vpd_sm.c
+++ b/common/usbc/usb_tc_vpd_sm.c
@@ -7,7 +7,7 @@
#include "console.h"
#include "system.h"
#include "task.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_pd.h"
#include "usb_tc_sm.h"
#include "usb_sm.h"
diff --git a/common/usbc/usbc_task.c b/common/usbc/usbc_task.c
index af9e7986bd..d0833d9103 100644
--- a/common/usbc/usbc_task.c
+++ b/common/usbc/usbc_task.c
@@ -24,7 +24,7 @@
#include "usb_mux.h"
#include "usb_pd.h"
#include "usb_prl_sm.h"
-#include "tcpm.h"
+#include "tcpm/tcpm.h"
#include "usb_pe_sm.h"
#include "usb_prl_sm.h"
#include "usb_sm.h"