Skip to content

Commit bad8d81

Browse files
yliu80wenlingz
authored andcommitted
IOC mediator: add new signal for VBUS control
Support VBUS control for USB OTG. Tracked-On: #1159 Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
1 parent f2f719c commit bad8d81

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

devicemodel/hw/platform/ioc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ static struct cbc_signal cbc_rx_signal_table[] = {
533533
{(uint16_t)CBC_SIG_ID_HTUST, 32, CBC_ACTIVE},
534534
{(uint16_t)CBC_SIG_ID_HVSST, 32, CBC_ACTIVE},
535535
{(uint16_t)CBC_SIG_ID_HRAST, 32, CBC_ACTIVE},
536+
{(uint16_t)CBC_SIG_ID_USBVBUS, 1, CBC_ACTIVE},
536537
{(uint16_t)CBC_SIG_ID_VICL, 8, CBC_ACTIVE},
537538
};
538539

@@ -572,6 +573,7 @@ static struct wlist_signal wlist_rx_signal_table[] = {
572573
{(uint16_t)CBC_SIG_ID_HTUST, DEFAULT_WLIST_NODE},
573574
{(uint16_t)CBC_SIG_ID_HVSST, DEFAULT_WLIST_NODE},
574575
{(uint16_t)CBC_SIG_ID_HRAST, DEFAULT_WLIST_NODE},
576+
{(uint16_t)CBC_SIG_ID_USBVBUS, DEFAULT_WLIST_NODE},
575577
};
576578

577579
static struct wlist_signal wlist_tx_signal_table[] = {

devicemodel/include/ioc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ enum cbc_rx_signal_id {
252252
CBC_SIG_ID_HTUST = 20025, /* HvacTemperatureUnitsSetting */
253253
CBC_SIG_ID_HVSST = 20026, /* HvacVentilationSeatSetting */
254254
CBC_SIG_ID_HRAST = 20027, /* HvacRecirculationAutomaticSetting */
255+
CBC_SIG_ID_USBVBUS = 20028, /* SupportUsbOtgVbusControl */
255256
CBC_SIG_ID_VICL = 651, /* VideoInCtrl */
256257
};
257258

0 commit comments

Comments
 (0)