summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/kukui/mainboard.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2021-09-01 16:27:58 -0700
committerJulius Werner <jwerner@chromium.org>2021-09-02 21:43:11 +0000
commit1f84b2c02597ef7a373478cc97caf07c69f1ae3a (patch)
tree18df8236084383006a3a10b42a8631609e4d582b /src/mainboard/google/kukui/mainboard.c
parent14bb6f5dab90500c7d37b06f0588123bd4c58ffd (diff)
downloadcoreboot-1f84b2c02597ef7a373478cc97caf07c69f1ae3a.tar.gz
coreboot-1f84b2c02597ef7a373478cc97caf07c69f1ae3a.tar.bz2
coreboot-1f84b2c02597ef7a373478cc97caf07c69f1ae3a.zip
drivers/mipi: Make orientation a property of the mainboard, not panel
It doesn't make sense to store the orientation field directly in the panel information structure, which is supposed to be reuseable between different boards. The thing that determines orientation is how that panel is built into the board in question, which only the board itself can know. The same portrait panel could be rotated left to be used as landscape in one board and rotated right to be used as landscape in another. This patch moves the orientation field out of the panel structure back into the mainboards to reflect this. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: If2b716aa4dae036515730c12961fdd8a9ac34753 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57324 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/kukui/mainboard.c')
-rw-r--r--src/mainboard/google/kukui/mainboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index 4affa1631c68..9357b6746889 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -176,7 +176,7 @@ static bool configure_display(void)
mtk_ddp_mode_set(edid);
struct fb_info *info = fb_new_framebuffer_info_from_edid(edid, 0);
if (info)
- fb_set_orientation(info, panel->s->orientation);
+ fb_set_orientation(info, panel->orientation);
return true;
}