From b0d9cb7ae6b83317e0f4ac7e6f63a36d419541ba Mon Sep 17 00:00:00 2001 From: mason Date: Wed, 29 Mar 2023 17:47:48 +0000 Subject: [PATCH] Add OGU panel quirk --- .../linux/patches/OGU/002-panel-quirk.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 projects/Amlogic/packages/linux/patches/OGU/002-panel-quirk.patch diff --git a/projects/Amlogic/packages/linux/patches/OGU/002-panel-quirk.patch b/projects/Amlogic/packages/linux/patches/OGU/002-panel-quirk.patch new file mode 100644 index 000000000..0c40aea33 --- /dev/null +++ b/projects/Amlogic/packages/linux/patches/OGU/002-panel-quirk.patch @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2023-present Fewtarius + +diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c +index 3659f0465a72..b2b9b60a45eb 100644 +--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c ++++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c +@@ -429,7 +429,7 @@ EXPORT_SYMBOL(drm_get_panel_orientation_quirk); + /* There are no quirks for non x86 devices yet */ + int drm_get_panel_orientation_quirk(int width, int height) + { +- return DRM_MODE_PANEL_ORIENTATION_UNKNOWN; ++ return DRM_MODE_PANEL_ORIENTATION_LEFT_UP; + } + EXPORT_SYMBOL(drm_get_panel_orientation_quirk); +