summaryrefslogtreecommitdiffstats
path: root/meta-fsl-extras/recipes/u-boot/u-boot-boundary/0001-Add-support-for-KOE-tx31d200vm0baa-display.patch
blob: 0343f0627dd5cfbddb6fb7351cafa15fb99f83c6 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
From 554d219b3485402c6992abc0aa32c74e8f251876 Mon Sep 17 00:00:00 2001
From: Samuli Piippo <samuli.piippo@theqtcompany.com>
Date: Thu, 11 Feb 2016 10:17:51 +0200
Subject: [PATCH] Add support for KOE tx31d200vm0baa display

Used for the cluster demo
---
 arch/arm/include/asm/imx-common/fbpanel.h    | 27 +++++++++++++++++++++++++++
 board/boundary/nitrogen6_max/nitrogen6_max.c |  1 +
 board/boundary/nitrogen6sx/nitrogen6sx.c     |  1 +
 board/boundary/nitrogen6x/nitrogen6x.c       |  1 +
 4 files changed, 30 insertions(+)

diff --git a/arch/arm/include/asm/imx-common/fbpanel.h b/arch/arm/include/asm/imx-common/fbpanel.h
index b6f7af4..b8acdae 100644
--- a/arch/arm/include/asm/imx-common/fbpanel.h
+++ b/arch/arm/include/asm/imx-common/fbpanel.h
@@ -39,6 +39,33 @@ void fbp_enable_fb(struct display_info_t const *di, int enable);
 int fbp_detect_i2c(struct display_info_t const *di);
 void fbp_setup_display(const struct display_info_t *displays, int cnt);
 
+/* tx31d200vm0baa == koe */
+#define IMX_VD_KOE(_mode, _detect, _bus) \
+{\
+	.bus	= _bus,\
+	.addr	= 0,\
+	.pixfmt	= IPU_PIX_FMT_RGB666,\
+	.detect	= NULL,\
+	.enable	= fbp_enable_fb,\
+	.fbtype = FB_##_mode,\
+	.fbflags = 0,\
+	.mode	= {\
+		.name           = "koe",\
+		.refresh        = 60,\
+		.xres           = 1280,\
+		.yres           = 480,\
+		.pixclock       = 1000000000000ULL/((1280+80+48+32)*(480+15+2+6)*60),\
+		.left_margin    = 80,\
+		.right_margin   = 48,\
+		.upper_margin   = 15,\
+		.lower_margin   = 2,\
+		.hsync_len      = 32,\
+		.vsync_len      = 6,\
+		.sync           = FB_SYNC_EXT,\
+		.vmode          = FB_VMODE_NONINTERLACED\
+	}\
+}
+
 /* hdmi settings */
 #define IMX_VD50_1280_720M_60(_mode, _detect, _bus) \
 {\
diff --git a/board/boundary/nitrogen6_max/nitrogen6_max.c b/board/boundary/nitrogen6_max/nitrogen6_max.c
index 337e9b5..ba29aee 100644
--- a/board/boundary/nitrogen6_max/nitrogen6_max.c
+++ b/board/boundary/nitrogen6_max/nitrogen6_max.c
@@ -568,6 +568,7 @@ void board_enable_lcd(const struct display_info_t *di, int enable)
 }
 
 static const struct display_info_t displays[] = {
+	IMX_VD_KOE(LVDS, 0, 2),
 	/* hdmi */
 	IMX_VD50_1280_720M_60(HDMI, 1, 1),
 	IMX_VD50_1920_1080M_60(HDMI, 0, 1),
diff --git a/board/boundary/nitrogen6sx/nitrogen6sx.c b/board/boundary/nitrogen6sx/nitrogen6sx.c
index cdabcd8..de6582e 100644
--- a/board/boundary/nitrogen6sx/nitrogen6sx.c
+++ b/board/boundary/nitrogen6sx/nitrogen6sx.c
@@ -685,6 +685,7 @@ void board_enable_lcd(const struct display_info_t *di, int enable)
 
 
 static const struct display_info_t displays[] = {
+	IMX_VD_KOE(LVDS, 0, 2),
 	/* hdmi/lcd */
 	_IMX_VD_1280_720M_60(LCD, 1, 2, 50, 0),
 	_IMX_VD_1920_1080M_60(LCD, 0, 2, 50, 0),
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 21d6cd7..b24f2f6 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -525,6 +525,7 @@ void board_enable_lcd(const struct display_info_t *di, int enable)
 }
 
 static const struct display_info_t displays[] = {
+	IMX_VD_KOE(LVDS, 0, 2),
 	/* hdmi */
 	IMX_VD50_1280_720M_60(HDMI, 1, 1),
 	IMX_VD50_1920_1080M_60(HDMI, 0, 1),
-- 
1.9.1