From b96bad8e0de4c89bd498e3d3acf9f56ded847e0e Mon Sep 17 00:00:00 2001 From: Zick Wei Date: Thu, 18 Jun 2020 11:33:54 +0800 Subject: morphius: add ppc aoz1380 This patch add ppc aoz1380 on daughter board. BUG=b:156552519, b:159282505 BRANCH=none TEST=make buildall Signed-off-by: Zick Wei Change-Id: I5ca87a2d524ee265626e5b163754a33dcb31853d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2251127 Reviewed-by: Edward Hill --- board/morphius/board.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'board/morphius/board.h') diff --git a/board/morphius/board.h b/board/morphius/board.h index ba89b057b2..33c733077a 100644 --- a/board/morphius/board.h +++ b/board/morphius/board.h @@ -158,6 +158,8 @@ enum ec_cfg_usb_mb_type { enum ec_cfg_usb_db_type { MORPHIUS_DB_T_OPT1_USBC_HDMI = 0, MORPHIUS_DB_T_OPT3_USBC_HDMI_MSTHUB = 1, + MORPHIUS_DB_PICASSO_AOZ1380 = 2, + MORPHIUS_DB_DALI_AOZ1380 = 3, }; @@ -206,6 +208,15 @@ static inline bool ec_config_has_hdmi_conn_hpd(void) HAS_HDMI_CONN_HPD); } +#define HAS_DB_AOZ1380 \ + (BIT(MORPHIUS_DB_PICASSO_AOZ1380) | BIT(MORPHIUS_DB_DALI_AOZ1380)) + +static inline bool ec_config_has_db_ppc_aoz1380(void) +{ + return !!(BIT(ec_config_get_usb_db()) & + HAS_DB_AOZ1380); +} + #define PORT_TO_HPD(port) ((port == 0) \ ? GPIO_USB_C0_HPD \ : (ec_config_has_usbc1_retimer_ps8802()) \ -- cgit v1.2.1