Searched refs:mGpio (Results 1 – 1 of 1) sorted by relevance
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyDxe/ |
D | InitPeripherals.c | 37 STATIC EMBEDDED_GPIO *mGpio; variable 51 Status = gBS->LocateProtocol (&gEmbeddedGpioProtocolGuid, NULL, (VOID **)&mGpio); in HiKeyDetectUsbModeInit() 53 Status = mGpio->Set (mGpio, USB_SEL_GPIO0_3, GPIO_MODE_OUTPUT_0); in HiKeyDetectUsbModeInit() 55 Status = mGpio->Set (mGpio, USB_5V_HUB_EN, GPIO_MODE_OUTPUT_0); in HiKeyDetectUsbModeInit() 59 Status = mGpio->Set (mGpio, USB_ID_DET_GPIO2_5, GPIO_MODE_INPUT); in HiKeyDetectUsbModeInit() 61 Status = mGpio->Set (mGpio, USB_VBUS_DET_GPIO2_6, GPIO_MODE_INPUT); in HiKeyDetectUsbModeInit() 74 Status = mGpio->Get (mGpio, USB_ID_DET_GPIO2_5, &Value); in HiKeyGetUsbMode() 77 Status = mGpio->Get (mGpio, USB_VBUS_DET_GPIO2_6, &Value); in HiKeyGetUsbMode()
|