diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2019-08-06 08:29:52 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-08-08 03:18:35 +0000 |
commit | 87f265b210e02a7aefb6da0bae61c2b0d9239a3e (patch) | |
tree | 1edba4e3dbd67b562053e2f167fd6b75a48d5018 /src/include | |
parent | 0ecdf3e5361414bd345f414e922b57ffdd60e898 (diff) | |
download | coreboot-87f265b210e02a7aefb6da0bae61c2b0d9239a3e.tar.xz |
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/include')
-rw-r--r-- | src/include/edid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/edid.h b/src/include/edid.h index d567115744..e5f7d98926 100644 --- a/src/include/edid.h +++ b/src/include/edid.h @@ -17,6 +17,7 @@ #define EDID_H #include <stdint.h> +#include "commonlib/coreboot_tables.h" enum edid_modes { EDID_MODE_640x480_60Hz, @@ -107,6 +108,7 @@ int decode_edid(unsigned char *edid, int size, struct edid *out); void edid_set_framebuffer_bits_per_pixel(struct edid *edid, int fb_bpp, int row_byte_alignment); void set_vbe_mode_info_valid(const struct edid *edid, uintptr_t fb_addr); +void set_vbe_framebuffer_orientation(enum lb_fb_orientation orientation); int set_display_mode(struct edid *edid, enum edid_modes mode); #endif /* EDID_H */ |