From bad8d81ab6fdb69431ca88abc79316f27ca3fb4d Mon Sep 17 00:00:00 2001 From: Yuan Liu Date: Fri, 31 Aug 2018 13:51:47 +0800 Subject: [PATCH] IOC mediator: add new signal for VBUS control Support VBUS control for USB OTG. Tracked-On: #1159 Signed-off-by: Yuan Liu Acked-by: Yu Wang --- devicemodel/hw/platform/ioc.c | 2 ++ devicemodel/include/ioc.h | 1 + 2 files changed, 3 insertions(+) diff --git a/devicemodel/hw/platform/ioc.c b/devicemodel/hw/platform/ioc.c index c51d4cdf2..1115a6952 100644 --- a/devicemodel/hw/platform/ioc.c +++ b/devicemodel/hw/platform/ioc.c @@ -533,6 +533,7 @@ static struct cbc_signal cbc_rx_signal_table[] = { {(uint16_t)CBC_SIG_ID_HTUST, 32, CBC_ACTIVE}, {(uint16_t)CBC_SIG_ID_HVSST, 32, CBC_ACTIVE}, {(uint16_t)CBC_SIG_ID_HRAST, 32, CBC_ACTIVE}, + {(uint16_t)CBC_SIG_ID_USBVBUS, 1, CBC_ACTIVE}, {(uint16_t)CBC_SIG_ID_VICL, 8, CBC_ACTIVE}, }; @@ -572,6 +573,7 @@ static struct wlist_signal wlist_rx_signal_table[] = { {(uint16_t)CBC_SIG_ID_HTUST, DEFAULT_WLIST_NODE}, {(uint16_t)CBC_SIG_ID_HVSST, DEFAULT_WLIST_NODE}, {(uint16_t)CBC_SIG_ID_HRAST, DEFAULT_WLIST_NODE}, + {(uint16_t)CBC_SIG_ID_USBVBUS, DEFAULT_WLIST_NODE}, }; static struct wlist_signal wlist_tx_signal_table[] = { diff --git a/devicemodel/include/ioc.h b/devicemodel/include/ioc.h index 26a81206a..56e527b0d 100644 --- a/devicemodel/include/ioc.h +++ b/devicemodel/include/ioc.h @@ -252,6 +252,7 @@ enum cbc_rx_signal_id { CBC_SIG_ID_HTUST = 20025, /* HvacTemperatureUnitsSetting */ CBC_SIG_ID_HVSST = 20026, /* HvacVentilationSeatSetting */ CBC_SIG_ID_HRAST = 20027, /* HvacRecirculationAutomaticSetting */ + CBC_SIG_ID_USBVBUS = 20028, /* SupportUsbOtgVbusControl */ CBC_SIG_ID_VICL = 651, /* VideoInCtrl */ };