ArmPlatformPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the ArmPlatformPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
429309e0c6
commit
40b0b23ed3
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "HdLcd.h"
|
||||
|
||||
#define BYTES_PER_PIXEL 4
|
||||
#define BYTES_PER_PIXEL 4
|
||||
|
||||
/** Initialize display.
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
**/
|
||||
EFI_STATUS
|
||||
LcdInitialize (
|
||||
IN EFI_PHYSICAL_ADDRESS VramBaseAddress
|
||||
IN EFI_PHYSICAL_ADDRESS VramBaseAddress
|
||||
)
|
||||
{
|
||||
// Disable the controller
|
||||
@@ -39,7 +39,7 @@ LcdInitialize (
|
||||
MmioWrite32 (HDLCD_REG_FB_BASE, (UINT32)VramBaseAddress);
|
||||
|
||||
// Setup various registers that never change
|
||||
MmioWrite32 (HDLCD_REG_BUS_OPTIONS, (4 << 8) | HDLCD_BURST_8);
|
||||
MmioWrite32 (HDLCD_REG_BUS_OPTIONS, (4 << 8) | HDLCD_BURST_8);
|
||||
|
||||
MmioWrite32 (HDLCD_REG_POLARITIES, HDLCD_DEFAULT_POLARITIES);
|
||||
|
||||
@@ -63,9 +63,9 @@ LcdSetMode (
|
||||
IN UINT32 ModeNumber
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
SCAN_TIMINGS *Horizontal;
|
||||
SCAN_TIMINGS *Vertical;
|
||||
EFI_STATUS Status;
|
||||
SCAN_TIMINGS *Horizontal;
|
||||
SCAN_TIMINGS *Vertical;
|
||||
|
||||
EFI_GRAPHICS_PIXEL_FORMAT PixelFormat;
|
||||
|
||||
@@ -100,11 +100,11 @@ LcdSetMode (
|
||||
: PixelBlueGreenRedReserved8BitPerColor;
|
||||
|
||||
if (ModeInfo.PixelFormat == PixelFormat) {
|
||||
MmioWrite32 (HDLCD_REG_RED_SELECT, (8 << 8) | 16);
|
||||
MmioWrite32 (HDLCD_REG_RED_SELECT, (8 << 8) | 16);
|
||||
MmioWrite32 (HDLCD_REG_BLUE_SELECT, (8 << 8) | 0);
|
||||
} else {
|
||||
MmioWrite32 (HDLCD_REG_BLUE_SELECT, (8 << 8) | 16);
|
||||
MmioWrite32 (HDLCD_REG_RED_SELECT, (8 << 8) | 0);
|
||||
MmioWrite32 (HDLCD_REG_RED_SELECT, (8 << 8) | 0);
|
||||
}
|
||||
|
||||
MmioWrite32 (HDLCD_REG_GREEN_SELECT, (8 << 8) | 8);
|
||||
@@ -126,15 +126,15 @@ LcdSetMode (
|
||||
MmioWrite32 (HDLCD_REG_FB_LINE_COUNT, Vertical->Resolution - 1);
|
||||
|
||||
// Set the vertical timing information
|
||||
MmioWrite32 (HDLCD_REG_V_SYNC, Vertical->Sync);
|
||||
MmioWrite32 (HDLCD_REG_V_BACK_PORCH, Vertical->BackPorch);
|
||||
MmioWrite32 (HDLCD_REG_V_DATA, Vertical->Resolution - 1);
|
||||
MmioWrite32 (HDLCD_REG_V_SYNC, Vertical->Sync);
|
||||
MmioWrite32 (HDLCD_REG_V_BACK_PORCH, Vertical->BackPorch);
|
||||
MmioWrite32 (HDLCD_REG_V_DATA, Vertical->Resolution - 1);
|
||||
MmioWrite32 (HDLCD_REG_V_FRONT_PORCH, Vertical->FrontPorch);
|
||||
|
||||
// Set the horizontal timing information
|
||||
MmioWrite32 (HDLCD_REG_H_SYNC, Horizontal->Sync);
|
||||
MmioWrite32 (HDLCD_REG_H_BACK_PORCH, Horizontal->BackPorch);
|
||||
MmioWrite32 (HDLCD_REG_H_DATA, Horizontal->Resolution - 1);
|
||||
MmioWrite32 (HDLCD_REG_H_SYNC, Horizontal->Sync);
|
||||
MmioWrite32 (HDLCD_REG_H_BACK_PORCH, Horizontal->BackPorch);
|
||||
MmioWrite32 (HDLCD_REG_H_DATA, Horizontal->Resolution - 1);
|
||||
MmioWrite32 (HDLCD_REG_H_FRONT_PORCH, Horizontal->FrontPorch);
|
||||
|
||||
// Enable the controller
|
||||
|
Reference in New Issue
Block a user