diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-01-26 14:02:11 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-01-26 14:02:11 +0100 |
commit | f403da33e822855b6d13cac4f78c4756fddc4651 (patch) | |
tree | 2aa62031f9d7d052931ee7583d65562ad659e13e | |
parent | d7fb19ee901ed5dd2d138c5f413b379ef3e21426 (diff) | |
download | meta-openembedded-f403da33e822855b6d13cac4f78c4756fddc4651.tar.gz |
xf86-video-omapfb: import from OE, the yocto one is broken
See https://lists.yoctoproject.org/pipermail/poky/2011-January/002903.html
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
4 files changed, 109 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-driver/xf86-video-omapfb/0001-blacklist-tv-out.patch b/recipes-graphics/xorg-driver/xf86-video-omapfb/0001-blacklist-tv-out.patch new file mode 100644 index 000000000..5ac3b7ae9 --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-omapfb/0001-blacklist-tv-out.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 05efb061f1945425d214ff6b6050883e6d8633bf Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 26 Jan 2011 13:21:12 +0100 | ||
4 | Subject: [PATCH 1/3] blacklist tv out | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | --- | ||
8 | src/omapfb-output-dss.c | 4 ++++ | ||
9 | 1 files changed, 4 insertions(+), 0 deletions(-) | ||
10 | |||
11 | diff --git a/src/omapfb-output-dss.c b/src/omapfb-output-dss.c | ||
12 | index 6cc52de..83cb711 100644 | ||
13 | --- a/src/omapfb-output-dss.c | ||
14 | +++ b/src/omapfb-output-dss.c | ||
15 | @@ -205,6 +205,10 @@ OMAPFBDSSOutputDetect (xf86OutputPtr output) | ||
16 | if(ofb->timings[idx][0] == '\0') | ||
17 | return XF86OutputStatusDisconnected; | ||
18 | |||
19 | + // Hack to disable the tv out | ||
20 | + if (strncmp(output->name, "tv", 2) == 0) | ||
21 | + return XF86OutputStatusDisconnected; | ||
22 | + | ||
23 | return XF86OutputStatusConnected; | ||
24 | } | ||
25 | |||
26 | -- | ||
27 | 1.6.6.1 | ||
28 | |||
diff --git a/recipes-graphics/xorg-driver/xf86-video-omapfb/0002-Revert-Set-virtual-size-when-configuring-framebuffer.patch b/recipes-graphics/xorg-driver/xf86-video-omapfb/0002-Revert-Set-virtual-size-when-configuring-framebuffer.patch new file mode 100644 index 000000000..41d5f131a --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-omapfb/0002-Revert-Set-virtual-size-when-configuring-framebuffer.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 316f31253902eb3567ef62faf52b3f0a5d6b0c93 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 26 Jan 2011 13:27:20 +0100 | ||
4 | Subject: [PATCH 2/3] Revert "Set virtual size when configuring framebuffer" | ||
5 | |||
6 | This reverts commit 2653ef07883fbd1a5e7025f9300cf89b79ba429a. | ||
7 | --- | ||
8 | src/omapfb-crtc.c | 2 -- | ||
9 | 1 files changed, 0 insertions(+), 2 deletions(-) | ||
10 | |||
11 | diff --git a/src/omapfb-crtc.c b/src/omapfb-crtc.c | ||
12 | index 9aaa52f..d321a5a 100644 | ||
13 | --- a/src/omapfb-crtc.c | ||
14 | +++ b/src/omapfb-crtc.c | ||
15 | @@ -98,8 +98,6 @@ OMAPFBCrtcCommitChangeMode (xf86CrtcPtr crtc) | ||
16 | v = ofb->state_info; | ||
17 | v.xres = mode->HDisplay; | ||
18 | v.yres = mode->VDisplay; | ||
19 | - v.xres_virtual = crtc->scrn->virtualX; | ||
20 | - v.yres_virtual = crtc->scrn->virtualY; | ||
21 | v.activate = FB_ACTIVATE_NOW; | ||
22 | v.pixclock = KHZ2PICOS(mode->Clock ? mode->Clock : 56000); | ||
23 | v.left_margin = mode->HTotal - mode->HSyncEnd; | ||
24 | -- | ||
25 | 1.6.6.1 | ||
26 | |||
diff --git a/recipes-graphics/xorg-driver/xf86-video-omapfb/0003-force-plain-mode.patch b/recipes-graphics/xorg-driver/xf86-video-omapfb/0003-force-plain-mode.patch new file mode 100644 index 000000000..06eeca9d2 --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-omapfb/0003-force-plain-mode.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From b7acfade1ac15332ebfd24d4bf02b466858c8cf8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 26 Jan 2011 13:20:20 +0100 | ||
4 | Subject: [PATCH 3/3] force 'plain' mode | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | --- | ||
8 | src/omapfb-driver.c | 2 +- | ||
9 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
10 | |||
11 | diff --git a/src/omapfb-driver.c b/src/omapfb-driver.c | ||
12 | index 018e040..48aa09c 100644 | ||
13 | --- a/src/omapfb-driver.c | ||
14 | +++ b/src/omapfb-driver.c | ||
15 | @@ -326,7 +326,7 @@ OMAPFBPreInit(ScrnInfoPtr pScrn, int flags) | ||
16 | OMAPFBProbeController(ofb->ctrl_name); | ||
17 | |||
18 | /* Do we have the DSS kernel API? */ | ||
19 | - if (stat(SYSFS_DSS_DIR, &st) == 0) { | ||
20 | + if (0) { //stat(SYSFS_DSS_DIR, &st) == 0) { | ||
21 | ofb->dss = TRUE; | ||
22 | } else { | ||
23 | ofb->dss = FALSE; | ||
24 | -- | ||
25 | 1.6.6.1 | ||
26 | |||
diff --git a/recipes-graphics/xorg-driver/xf86-video-omapfb_git.bb b/recipes-graphics/xorg-driver/xf86-video-omapfb_git.bb new file mode 100644 index 000000000..85b68b17c --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-omapfb_git.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | require recipes-graphics/xorg-driver/xf86-driver-common.inc | ||
2 | |||
3 | INC_PR ?= "r15" | ||
4 | |||
5 | DESCRIPTION = "X.Org X server -- OMAP display driver" | ||
6 | PE = "1" | ||
7 | PV = "0.1.1+${PR}+gitr${SRCREV}" | ||
8 | PR = "${INC_PR}.2" | ||
9 | |||
10 | LICENSE = "MIT-X" | ||
11 | LIC_FILES_CHKSUM = "file://src/omapfb-driver.c;beginline=1;endline=30;md5=a44c2a37e04d1c2c5f0313afb493f833" | ||
12 | |||
13 | SRC_URI = "git://git.pingu.fi/xf86-video-omapfb.git;protocol=http \ | ||
14 | file://0001-blacklist-tv-out.patch \ | ||
15 | file://0002-Revert-Set-virtual-size-when-configuring-framebuffer.patch \ | ||
16 | file://0003-force-plain-mode.patch \ | ||
17 | " | ||
18 | |||
19 | SRCREV_pn-${PN} = "044617665d6737f4909aab96f91b06261dff05d2" | ||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | EXTRA_OECONF_armv7a = " --enable-neon " | ||
23 | |||
24 | # Use overlay 2 on omap3 to enable other apps to use overlay 1 (e.g. dmai or omapfbplay) | ||
25 | do_compile_prepend_armv7a () { | ||
26 | sed -i -e s:fb1:fb2:g ${S}/src/omapfb-xv.c | ||
27 | } | ||
28 | |||
29 | CFLAGS += " -I${STAGING_INCDIR}/xorg " | ||