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>
This commit is contained in:
Girish Pathak 2017-09-26 21:15:16 +01:00 committed by Leif Lindholm
parent 3da4193bb6
commit d1ee57e581
1 changed files with 1 additions and 2 deletions

View File

@ -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 (