mirror of https://github.com/acidanthera/audk.git
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:
parent
3da4193bb6
commit
d1ee57e581
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue