ArmPlatformPkg/PL180MciDxe: warn on probe fail
authorRyan Harkin <ryan.harkin@linaro.org>
Tue, 1 Mar 2016 08:20:40 +0000 (08:20 +0000)
committerLeif Lindholm <leif.lindholm@linaro.org>
Tue, 1 Mar 2016 18:06:16 +0000 (18:06 +0000)
If the PL180 fails to probe, issue a warning on debug builds.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c

index 688cd8a98ced2b540ced7c4c7c7bfd5174ef86c4..3e94ea59f524ac4856c001f71ddd372984190c0c 100644 (file)
@@ -534,6 +534,8 @@ PL180MciDxeInitialize (
       MmioRead8 (MCI_PCELL_ID_REG2)  != MCI_PCELL_ID2  ||\r
       MmioRead8 (MCI_PCELL_ID_REG3)  != MCI_PCELL_ID3) {\r
 \r
+    DEBUG ((EFI_D_WARN, "Probing ID registers at 0x%lx for a PL180"\r
+      " failed\n", MCI_PERIPH_ID_REG0));\r
     return EFI_NOT_FOUND;\r
   }\r
 \r