return EFI_SUCCESS;\r
}\r
\r
-EFI_STATUS\r
-PL061Initialize (\r
- VOID\r
- )\r
-{\r
- EFI_STATUS Status;\r
-\r
- // Check if the PL061 GPIO module exists on board\r
- Status = PL061Identify();\r
- if (EFI_ERROR (Status)) {\r
- Status = EFI_DEVICE_ERROR;\r
- goto EXIT;\r
- }\r
-\r
- // Do other hardware initialisation things here as required\r
-\r
- // Disable Interrupts\r
- //if (MmioRead8 (PL061_GPIO_IE_REG) != 0) {\r
- // // Ensure interrupts are disabled\r
- //}\r
-\r
- EXIT:\r
- return Status;\r
-}\r
-\r
/**\r
\r
Routine Description:\r
//\r
ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEmbeddedGpioProtocolGuid);\r
\r
- Status = PL061Initialize();\r
+ Status = PL061Identify();\r
if (EFI_ERROR(Status)) {\r
return EFI_DEVICE_ERROR;\r
}\r