-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
- mPL061Initialized = TRUE;\r
-\r
- EXIT:\r
- return Status;\r
-}\r
-\r