summaryrefslogtreecommitdiffstats
path: root/src/commonlib/include
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2021-10-01 13:15:26 -0700
committerNick Vaccaro <nvaccaro@google.com>2021-10-04 17:15:47 +0000
commit15066ba8d4696b299d93e5872ee035fc20570d13 (patch)
treee4320273a02ccbafa905e7bfb0707dae572c4519 /src/commonlib/include
parenta62b41819ceda4108b3a97cf72f55fc470347d58 (diff)
downloadcoreboot-15066ba8d4696b299d93e5872ee035fc20570d13.tar.gz
coreboot-15066ba8d4696b299d93e5872ee035fc20570d13.tar.bz2
coreboot-15066ba8d4696b299d93e5872ee035fc20570d13.zip
driver/intel/pmc_mux/conn: Move typec_orientation enum to coreboot_tables.h
Move the locally declared typec_orientation enum from chip.h to coreboot_tables.h. Change enum typec_orientation name to type_c_orientation for consistency with contents of coreboot_tables.h. Rename TYPEC_ORIENTATION_FOLLOW_CC to TYPEC_ORIENTATION_NONE. BUG=b:149830546 TEST="emerge-volteer coreboot" and make sure it compiles successfully. Change-Id: I24c9177be72b0c9831791aa7d1f7b1236309c9cd Signed-off-by: Nick Vaccaro <nvaccaro@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58084 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/commonlib/include')
-rw-r--r--src/commonlib/include/commonlib/coreboot_tables.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/commonlib/include/commonlib/coreboot_tables.h b/src/commonlib/include/commonlib/coreboot_tables.h
index ab8da7bf8ef2..91da8e01fa4e 100644
--- a/src/commonlib/include/commonlib/coreboot_tables.h
+++ b/src/commonlib/include/commonlib/coreboot_tables.h
@@ -426,7 +426,17 @@ struct lb_mmc_info {
* USB Type-C Port Information
* This record contains board-specific type-c port information.
* There will be one record per type-C port.
+ * Orientation fields should be of type enum type_c_orientation.
*/
+enum type_c_orientation {
+ /* The orientation of the signal follows the orientation of the CC lines. */
+ TYPEC_ORIENTATION_NONE,
+ /* The orientation of the signal is fixed to follow CC1 */
+ TYPEC_ORIENTATION_NORMAL,
+ /* The orientation of the signal is fixed to follow CC2 */
+ TYPEC_ORIENTATION_REVERSE,
+};
+
struct type_c_port_info {
uint8_t usb2_port_number;
uint8_t usb3_port_number;