]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Include/Library/LcdPlatformLib.h
ArmPlatformPkg: Tidy Lcd code: Coding standard
[mirror_edk2.git] / ArmPlatformPkg / Include / Library / LcdPlatformLib.h
index 1112e1edd10f8a76bf36c8154c502e31ac9438f4..3d13e417972c67cc51ae4410efd548053511e5d1 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
- Copyright (c) 2011, ARM Ltd. All rights reserved.<BR>\r
+ Copyright (c) 2011-2018, ARM Ltd. All rights reserved.<BR>\r
  This program and the accompanying materials\r
  are licensed and made available under the terms and conditions of the BSD License\r
  which accompanies this distribution.  The full text of the license may be found at\r
@@ -11,8 +11,8 @@
 \r
  **/\r
 \r
-#ifndef __LCDPLATFORMLIB_H\r
-#define __LCDPLATFORMLIB_H\r
+#ifndef LCD_PLATFORM_LIB_H_\r
+#define LCD_PLATFORM_LIB_H_\r
 \r
 #include <Protocol/GraphicsOutput.h>\r
 \r
 //\r
 #define HD_H_RES_PIXELS                   1920\r
 #define HD_V_RES_PIXELS                   1080\r
-#define HD_OSC_FREQUENCY                  173000000  /* 0x0A4FC540 */\r
+#define HD_OSC_FREQUENCY                  165000000  /* 0x09D5B340 */\r
 \r
-#define HD_H_SYNC                         (200 - 1)\r
+#define HD_H_SYNC                         ( 79 - 1)\r
 #define HD_H_FRONT_PORCH                  (128 - 1)\r
 #define HD_H_BACK_PORCH                   (328 - 1)\r
 \r
 #define LCD_12BPP_444_BLUE_MASK         0x0000000F\r
 #define LCD_12BPP_444_RESERVED_MASK     0x0000F000\r
 \r
-\r
-// The enumeration indexes maps the PL111 LcdBpp values used in the LCD Control Register\r
+/** The enumeration indexes maps the PL111 LcdBpp values used in the LCD Control\r
+  Register\r
+**/\r
 typedef enum {\r
   LCD_BITS_PER_PIXEL_1 = 0,\r
   LCD_BITS_PER_PIXEL_2,\r
@@ -171,7 +172,6 @@ typedef enum {
   LCD_BITS_PER_PIXEL_12_444\r
 } LCD_BPP;\r
 \r
-\r
 EFI_STATUS\r
 LcdPlatformInitializeDisplay (\r
   IN EFI_HANDLE   Handle\r
@@ -218,4 +218,4 @@ LcdPlatformGetBpp (
   OUT LCD_BPP*                              Bpp\r
   );\r
 \r
-#endif\r
+#endif /* LCD_PLATFORM_LIB_H_ */\r