summaryrefslogtreecommitdiff
path: root/src/commonlib
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2019-08-06 08:29:52 +0800
committerMartin Roth <martinroth@google.com>2019-08-08 03:18:35 +0000
commit87f265b210e02a7aefb6da0bae61c2b0d9239a3e (patch)
tree1edba4e3dbd67b562053e2f167fd6b75a48d5018 /src/commonlib
parent0ecdf3e5361414bd345f414e922b57ffdd60e898 (diff)
lib/edid: Add suport for display rotation
Sometimes the display native orientation does not match the device default orientation. We add a parameter to be passed to libpayload, which can then do the rotation. BUG=b:132049716 TEST=Boot krane, see that FW screen is orientation properly. Change-Id: I5e1d94b973a3f615b73eebe0ca1202ba03731844 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34731 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/include/commonlib/coreboot_tables.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commonlib/include/commonlib/coreboot_tables.h b/src/commonlib/include/commonlib/coreboot_tables.h
index 0fe9703d34..7bded2a3a3 100644
--- a/src/commonlib/include/commonlib/coreboot_tables.h
+++ b/src/commonlib/include/commonlib/coreboot_tables.h
@@ -283,6 +283,18 @@ struct lb_forward {
* fields described above. It may, however, only implement a subset
* of the possible color formats.
*/
+
+/*
+ * Framebuffer orientation, matches drm_connector.h drm_panel_orientation in the
+ * Linux kernel.
+ */
+enum lb_fb_orientation {
+ LB_FB_ORIENTATION_NORMAL = 0,
+ LB_FB_ORIENTATION_BOTTOM_UP = 1,
+ LB_FB_ORIENTATION_LEFT_UP = 2,
+ LB_FB_ORIENTATION_RIGHT_UP = 3,
+};
+
struct lb_framebuffer {
uint32_t tag;
uint32_t size;
@@ -300,6 +312,7 @@ struct lb_framebuffer {
uint8_t blue_mask_size;
uint8_t reserved_mask_pos;
uint8_t reserved_mask_size;
+ uint8_t orientation;
};