diff options
author | Keith Short <keithshort@chromium.org> | 2020-05-01 15:04:12 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-02 02:40:18 +0000 |
commit | 07833a0fc114e28c200fcee5691c082534344bfe (patch) | |
tree | 4eff0da4cc6309f1e1d54c1a5ed659de0b3b740f /board/delbin | |
parent | 0d0158ea48e25ac4042d7142db1985e5a6a3472f (diff) | |
download | chrome-ec-07833a0fc114e28c200fcee5691c082534344bfe.tar.gz |
volteer: create common FW_CONFIG layout
Create a common FW_CONFIG layout and access functions for Volteer
boards.
BUG=b:155497872
BRANCH=none
TEST=make buildall
TEST=verify FW_CONFIG data on Volteer
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I1ec14db6c816d82115caa5e6179e0258f2904ec4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2247616
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/delbin')
-rw-r--r-- | board/delbin/board.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/board/delbin/board.c b/board/delbin/board.c index 06f4797e8b..150c72a7f1 100644 --- a/board/delbin/board.c +++ b/board/delbin/board.c @@ -8,6 +8,7 @@ #include "button.h" #include "common.h" #include "accelgyro.h" +#include "cbi_ec_fw_config.h" #include "driver/accel_bma2x2.h" #include "driver/accelgyro_bmi260.h" #include "driver/retimer/bb_retimer.h" @@ -51,17 +52,17 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); __override enum tbt_compat_cable_speed board_get_max_tbt_speed(int port) { - enum usb_db_id usb_db_type = get_usb_db_type(); + enum ec_cfg_usb_db_type usb_db = ec_cfg_usb_db_type(); if (port == USBC_PORT_C1) { - if (usb_db_type == USB_DB_USB4_GEN2) { + if (usb_db == DB_USB4_GEN2) { /* * Older boards violate 205mm trace length prior * to connection to the re-timer and only support up * to GEN2 speeds. */ return TBT_SS_U32_GEN1_GEN2; - } else if (usb_db_type == USB_DB_USB4_GEN3) { + } else if (usb_db == DB_USB4_GEN3) { return TBT_SS_TBT_GEN3; } } @@ -77,7 +78,7 @@ __override enum tbt_compat_cable_speed board_get_max_tbt_speed(int port) __override bool board_is_tbt_usb4_port(int port) { - enum usb_db_id usb_db_type = get_usb_db_type(); + enum ec_cfg_usb_db_type usb_db = ec_cfg_usb_db_type(); /* * Volteer reference design only supports TBT & USB4 on port 1 @@ -87,8 +88,7 @@ __override bool board_is_tbt_usb4_port(int port) * features. Need to fix once USB-C feature set is known for Volteer. */ return ((port == USBC_PORT_C1) - && ((usb_db_type == USB_DB_USB4_GEN2) - || (usb_db_type == USB_DB_USB4_GEN3))); + && ((usb_db == DB_USB4_GEN2) || (usb_db == DB_USB4_GEN3))); } /******************************************************************************/ |