ArmPlatformPkg: Additional display modes
authorGirish Pathak <girish.pathak at arm.com>
Tue, 26 Sep 2017 20:15:27 +0000 (21:15 +0100)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 23 Apr 2018 11:01:18 +0000 (12:01 +0100)
Add definitions for new display modes such as HD 720.
This has no effect on existing display drivers.

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>
ArmPlatformPkg/Include/Library/LcdPlatformLib.h

index 8338b32..cc535f0 100644 (file)
 #define WSXGA                             4\r
 #define UXGA                              5\r
 #define HD                                6\r
+#define WVGA                              7\r
+#define QHD                               8\r
+#define WSVGA                             9\r
+#define HD720                             10\r
+#define WXGA                              11\r
 \r
 // VGA Mode: 640 x 480\r
 #define VGA_H_RES_PIXELS                  640\r
 #define HD_V_FRONT_PORCH                  (  3 - 1)\r
 #define HD_V_BACK_PORCH                   ( 32 - 1)\r
 \r
+// WVGA Mode: 800 x 480\r
+#define WVGA_H_RES_PIXELS                 800\r
+#define WVGA_V_RES_PIXELS                 480\r
+#define WVGA_OSC_FREQUENCY                29500000   /* 0x01C22260 */\r
+#define WVGA_H_SYNC                       ( 72 - 1)\r
+#define WVGA_H_FRONT_PORCH                ( 24 - 1)\r
+#define WVGA_H_BACK_PORCH                 ( 96 - 1)\r
+#define WVGA_V_SYNC                       (  7 - 1)\r
+#define WVGA_V_FRONT_PORCH                (  3 - 1)\r
+#define WVGA_V_BACK_PORCH                 ( 10 - 1)\r
+\r
+// QHD Mode: 960 x 540\r
+#define QHD_H_RES_PIXELS                  960\r
+#define QHD_V_RES_PIXELS                  540\r
+#define QHD_OSC_FREQUENCY                 40750000   /* 0x026DCBB0 */\r
+#define QHD_H_SYNC                        ( 96 - 1)\r
+#define QHD_H_FRONT_PORCH                 ( 32 - 1)\r
+#define QHD_H_BACK_PORCH                  (128 - 1)\r
+#define QHD_V_SYNC                        (  5 - 1)\r
+#define QHD_V_FRONT_PORCH                 (  3 - 1)\r
+#define QHD_V_BACK_PORCH                  ( 14 - 1)\r
+\r
+// WSVGA Mode: 1024 x 600\r
+#define WSVGA_H_RES_PIXELS                1024\r
+#define WSVGA_V_RES_PIXELS                600\r
+#define WSVGA_OSC_FREQUENCY               49000000   /* 0x02EBAE40 */\r
+#define WSVGA_H_SYNC                      (104 - 1)\r
+#define WSVGA_H_FRONT_PORCH               ( 40 - 1)\r
+#define WSVGA_H_BACK_PORCH                (144 - 1)\r
+#define WSVGA_V_SYNC                      ( 10 - 1)\r
+#define WSVGA_V_FRONT_PORCH               (  3 - 1)\r
+#define WSVGA_V_BACK_PORCH                ( 11 - 1)\r
+\r
+// HD720 Mode: 1280 x 720\r
+#define HD720_H_RES_PIXELS                 1280\r
+#define HD720_V_RES_PIXELS                 720\r
+#define HD720_OSC_FREQUENCY                74500000   /* 0x0470C7A0 */\r
+#define HD720_H_SYNC                       (128 - 1)\r
+#define HD720_H_FRONT_PORCH                ( 64 - 1)\r
+#define HD720_H_BACK_PORCH                 (192 - 1)\r
+#define HD720_V_SYNC                       (  5 - 1)\r
+#define HD720_V_FRONT_PORCH                (  3 - 1)\r
+#define HD720_V_BACK_PORCH                 ( 20 - 1)\r
+\r
+// WXGA Mode: 1280 x 800\r
+#define WXGA_H_RES_PIXELS                  1280\r
+#define WXGA_V_RES_PIXELS                  800\r
+#define WXGA_OSC_FREQUENCY                 83500000  /* 0x04FA1BE0 */\r
+#define WXGA_H_SYNC                        (128 - 1)\r
+#define WXGA_H_FRONT_PORCH                 ( 72 - 1)\r
+#define WXGA_H_BACK_PORCH                  (200 - 1)\r
+#define WXGA_V_SYNC                        (  6 - 1)\r
+#define WXGA_V_FRONT_PORCH                 (  3 - 1)\r
+#define WXGA_V_BACK_PORCH                  ( 22 - 1)\r
+\r
 // Colour Masks\r
 #define LCD_24BPP_RED_MASK              0x00FF0000\r
 #define LCD_24BPP_GREEN_MASK            0x0000FF00\r