build/patch/kernel/rockchip-legacy/160_rockchip_gpu_touchscreen.patch
Igor Pečovnik 150ac0c2af
Remove K<4, change branches, new features (#1586)
AR-1 - Adding support category for distributions
AR-4 - Remove Allwinner legacy
AR-5 - Drop Udoo family and move Udoo board into newly created imx6 family
AR-9 - Rename sunxi-next to sunxi-legacy
AR-10 - Rename sunxi-dev to sunxi-current
AR-11 - Adding Radxa Rockpi S support
AR-13 - Rename rockchip64-default to rockchip64-legacy
AR-14 - Add rockchip64-current as mainline source
AR-15 - Drop Rockchip 4.19.y NEXT, current become 5.3.y
AR-16 - Rename RK3399 default to legacy
AR-17 - Rename Odroid XU4 next and default to legacy 4.14.y, add DEV 5.4.y
AR-18 - Add Odroid N2 current mainline
AR-19 - Move Odroid C1 to meson family
AR-20 - Rename mvebu64-default to mvebu64-legacy
AR-21 - Rename mvebu-default to mvebu-legacy
AR-22 - Rename mvebu-next to mvebu-current
AR-23 - Drop meson64 default and next, current becomes former DEV 5.3.y
AR-24 - Drop cubox family and move Cubox/Hummingboard boards under imx6
AR-26 - Adjust motd
AR-27 - Enabling distribution release status
AR-28 - Added new GCC compilers
AR-29 - Implementing Ubuntu Eoan
AR-30 - Add desktop packages per board or family
AR-31 - Remove (Ubuntu/Debian) distribution name from image filename
AR-32 - Move arch configs from configuration.sh to separate arm64 and armhf config files
AR-33 - Revision numbers for beta builds changed to day_in_the_year
AR-34 - Patches support linked patches
AR-35 - Break meson64 family into gxbb and gxl
AR-36 - Add Nanopineo2 Black
AR-38 - Upgrade option from old branches to new one via armbian-config
AR-41 - Show full timezone info
AR-43 - Merge Odroid N2 to meson64
AR-44 - Enable FORCE_BOOTSCRIPT_UPDATE for all builds
2019-11-19 23:25:39 +01:00

49 lines
1.9 KiB
Diff

From cc76c1934b5fc2603a1218425c4adbd04cff5227 Mon Sep 17 00:00:00 2001
From: jamess_huang <Jamess_Huang@asus.com>
Date: Wed, 2 Aug 2017 20:36:39 +0800
Subject: [PATCH] added the missing commit of GPU after update code base to
release-4.4
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Change-Id: Icbf9e970dce948ce5001fa944f04b7d41b9ce1af
Reviewed-on: https://tp-biosrd-v02/gerrit/80047
Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
---
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 +++
drivers/miniarm/dsi/panel-toshiba-tc358762.c | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 079e3651ae01..23f192386e5c 100755
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -1605,6 +1605,9 @@ vop_crtc_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode,
int request_clock = mode->clock;
int clock;
+ if (mode->clock >= 594000 || mode->clock <= 27500)
+ return MODE_CLOCK_RANGE;
+
if (mode->hdisplay > vop_data->max_output.width)
return MODE_BAD_HVALUE;
diff --git a/drivers/tinkerboard/dsi/panel-toshiba-tc358762.c b/drivers/tinkerboard/dsi/panel-toshiba-tc358762.c
index 6d85b0f30136..30a2ca446ea7 100755
--- a/drivers/tinkerboard/dsi/panel-toshiba-tc358762.c
+++ b/drivers/tinkerboard/dsi/panel-toshiba-tc358762.c
@@ -488,9 +488,9 @@ struct bridge_desc {
static const struct drm_display_mode tc358762_mode = {
.clock = 27448,
.hdisplay = 800,
- .hsync_start = 800 + 65,
- .hsync_end = 800 + 65 + 20,
- .htotal = 800 + 65 + 20 + 26,
+ .hsync_start = 800 + 70,
+ .hsync_end = 800 + 70 + 20,
+ .htotal = 800 + 70 + 20 + 26,
.vdisplay = 480,
.vsync_start = 480 + 7,
.vsync_end = 480 + 7 + 2,