diff options
author | Girish Pathak <girish.pathak at arm.com> | 2017-09-26 21:15:16 +0100 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2018-04-23 12:00:37 +0100 |
commit | d1ee57e581d75852b5ba0bbdaf28a83c6b9230fd (patch) | |
tree | bedfcc1731110b215e151d8eb231d3c5f59c1597 /ArmPlatformPkg/Library | |
parent | 3da4193bb6269d0b85c129297d2e5ce1be0b3c56 (diff) | |
download | edk2-d1ee57e581d75852b5ba0bbdaf28a83c6b9230fd.tar.gz edk2-d1ee57e581d75852b5ba0bbdaf28a83c6b9230fd.tar.bz2 edk2-d1ee57e581d75852b5ba0bbdaf28a83c6b9230fd.zip |
ArmPlatformPkg: PL111Lcd: Replace magic number with macro
Minor code change, replaces magic number with macro in LCD disable.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Girish Pathak <girish.pathak@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPlatformPkg/Library')
-rw-r--r-- | ArmPlatformPkg/Library/PL111Lcd/PL111Lcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Library/PL111Lcd/PL111Lcd.c b/ArmPlatformPkg/Library/PL111Lcd/PL111Lcd.c index cb64c57dd7..287e3ca272 100644 --- a/ArmPlatformPkg/Library/PL111Lcd/PL111Lcd.c +++ b/ArmPlatformPkg/Library/PL111Lcd/PL111Lcd.c @@ -119,8 +119,7 @@ LcdSetMode ( }
// Disable the CLCD_LcdEn bit
- LcdControl = MmioRead32 (PL111_REG_LCD_CONTROL);
- MmioWrite32 (PL111_REG_LCD_CONTROL, LcdControl & ~1);
+ MmioAnd32 (PL111_REG_LCD_CONTROL, ~PL111_CTRL_LCD_EN);
// Set Timings
MmioWrite32 (
|