ArmPlatformPkg: PL061 - only initialize on protocol load
authorLeif Lindholm <leif.lindholm@linaro.org>
Wed, 28 Oct 2015 18:08:53 +0000 (18:08 +0000)
committerLeif Lindholm <leif.lindholm@linaro.org>
Fri, 26 Feb 2016 16:50:17 +0000 (16:50 +0000)
commit2a77a37ea43d8269a4320301e2f77b45f59a3ac1
treeb95a71012ca5f777e003ce83f25aa7ed415bd4f1
parentfe28290e97106424614b59be023819c757fd62c5
ArmPlatformPkg: PL061 - only initialize on protocol load

For whatever reason, every single operation on the PL061 looked for an
"Initialized" flag, and manually called the initialization function if
not set. Move this to a single call on protocol installation.

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