]> 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 7a424c0ad7ca6613801fe9890646020f2ccdfc36..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
@@ -25,8 +25,9 @@
 #define SVGA                              1\r
 #define XGA                               2\r
 #define SXGA                              3\r
-#define UXGA                              4\r
-#define HD                                5\r
+#define WSXGA                             4\r
+#define UXGA                              5\r
+#define HD                                6\r
 \r
 //\r
 // VGA Mode: 640 x 480\r
 #define SXGA_V_FRONT_PORCH                (  3 - 1)\r
 #define SXGA_V_BACK_PORCH                 ( 29 - 1)\r
 \r
+//\r
+// WSXGA+ Mode: 1680 x 1050\r
+//\r
+#define WSXGA_H_RES_PIXELS                1680\r
+#define WSXGA_V_RES_PIXELS                1050\r
+#define WSXGA_OSC_FREQUENCY               147000000  /* 0x08C30AC0 */\r
+\r
+#define WSXGA_H_SYNC                      (170 - 1)\r
+#define WSXGA_H_FRONT_PORCH               (104 - 1)\r
+#define WSXGA_H_BACK_PORCH                (274 - 1)\r
+\r
+#define WSXGA_V_SYNC                      (  5 - 1)\r
+#define WSXGA_V_FRONT_PORCH               (  4 - 1)\r
+#define WSXGA_V_BACK_PORCH                ( 41 - 1)\r
+\r
 //\r
 // UXGA Mode: 1600 x 1200\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
@@ -155,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
@@ -202,4 +218,4 @@ LcdPlatformGetBpp (
   OUT LCD_BPP*                              Bpp\r
   );\r
 \r
-#endif\r
+#endif /* LCD_PLATFORM_LIB_H_ */\r