summaryrefslogtreecommitdiffstats
path: root/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0001-Set-screen-resolution-for-ft5x06_ts-based-on-selecte.patch
blob: 02a1e33a8442284e7d90982ea40627759cc02d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 3c3c3284727076f4ae751bfc9cadb222423c9a4b Mon Sep 17 00:00:00 2001
From: Samuli Piippo <samuli.piippo@theqtcompany.com>
Date: Wed, 13 Jan 2016 08:55:41 +0200
Subject: [PATCH] Set screen resolution for ft5x06_ts based on selected display

---
 board/boundary/nitrogen6x/6x_bootscript-yocto-3.14.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/board/boundary/nitrogen6x/6x_bootscript-yocto-3.14.txt b/board/boundary/nitrogen6x/6x_bootscript-yocto-3.14.txt
index f6bf2f5..427d837 100644
--- a/board/boundary/nitrogen6x/6x_bootscript-yocto-3.14.txt
+++ b/board/boundary/nitrogen6x/6x_bootscript-yocto-3.14.txt
@@ -130,6 +130,12 @@ if itest.s "x" != "x${disable_msi}" ; then
 	setenv bootargs ${bootargs} pci=nomsi
 fi;
 
+if test "hannstar" = "${fb_lvds}" || test "hannstar" = "${fb_lvds2}"  ; then
+    setenv bootargs ${bootargs} ft5x06_ts.screenres=1024,600
+elif test "hannstar7" = "${fb_lvds}" || test "hannstar7" = "${fb_lvds2}"  ; then
+    setenv bootargs ${bootargs} ft5x06_ts.screenres=1280,800
+fi
+
 if itest.s "x" != "x${disable_giga}" ; then
 	setenv bootargs ${bootargs} fec.disable_giga=1
 fi