summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/include/imx-base.inc1
-rw-r--r--recipes-graphics/xorg-driver/xf86-video-armada_git.bb46
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf28
3 files changed, 75 insertions, 0 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 6f3b39c2..b876b500 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -30,6 +30,7 @@ PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
30XSERVER_DRIVER = "xf86-video-fbdev" 30XSERVER_DRIVER = "xf86-video-fbdev"
31XSERVER_DRIVER_imxgpu2d = "xf86-video-imxfb-vivante" 31XSERVER_DRIVER_imxgpu2d = "xf86-video-imxfb-vivante"
32XSERVER_DRIVER_vf = "xf86-video-modesetting" 32XSERVER_DRIVER_vf = "xf86-video-modesetting"
33XSERVER_DRIVER_use-mainline-bsp = "xf86-video-armada"
33XSERVER = "xserver-xorg \ 34XSERVER = "xserver-xorg \
34 xf86-input-evdev \ 35 xf86-input-evdev \
35 ${XSERVER_DRIVER}" 36 ${XSERVER_DRIVER}"
diff --git a/recipes-graphics/xorg-driver/xf86-video-armada_git.bb b/recipes-graphics/xorg-driver/xf86-video-armada_git.bb
new file mode 100644
index 00000000..4caebb11
--- /dev/null
+++ b/recipes-graphics/xorg-driver/xf86-video-armada_git.bb
@@ -0,0 +1,46 @@
1SUMMARY = "X.org graphics driver for KMS based systems with pluggable GPU backend"
2DESCRIPTION = "The xf86-video-armada module is a 2D graphics driver for the X Window \
3System as implemented by X.org, supporting these DRM KMS drivers: \
4\
5 Freescale i.MX \
6 Marvell Armada 510 (Dove) \
7\
8and GPU drivers: \
9 Vivante libGAL (Armada only) \
10 Etnaviv (Armada and i.MX) with galcore kernel driver \
11 Etnaviv (Armada and i.MX) with etnaviv DRM kernel driver \
12"
13LICENSE = "BSD"
14
15require recipes-graphics/xorg-driver/xorg-driver-video.inc
16
17DEPENDS += "libdrm-armada"
18
19LIC_FILES_CHKSUM = " \
20 file://README;md5=d5271074fb6ad959b7b6cfa68b4adaf0 \
21 file://../etna_viv/LICENSE;md5=9d4853905d85f044ed013e75def30a76 \
22 "
23
24SRCREV_armada = "a4306d971717a2d3ea855d08c5667e02403b84fe"
25SRCREV_etna = "f64d77abbb54433bd5de955c20afddc6eb4f4cb1"
26SRCREV_FORMAT = "armada_etna"
27
28PV = "0.1+git${SRCPV}"
29
30SRC_URI = " \
31 git://git.arm.linux.org.uk/cgit/xf86-video-armada.git;branch=unstable-devel;protocol=http;name=armada \
32 git://github.com/laanwj/etna_viv.git;protocol=https;name=etna;destsuffix=etna_viv \
33 "
34
35S = "${WORKDIR}/git"
36
37RDEPENDS_${PN} = "xserver-xorg-module-exa \
38 xserver-xorg-extension-dri \
39 xserver-xorg-extension-dri2 \
40 xserver-xorg-extension-glx \
41 "
42
43EXTRA_OECONF = "--disable-etnaviv \
44 --disable-vivante \
45 --with-etnaviv-source=${WORKDIR}/etna_viv \
46 "
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf
new file mode 100644
index 00000000..b6f83469
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf
@@ -0,0 +1,28 @@
1Section "Device"
2 Identifier "Driver0"
3 Screen 0
4 Driver "armada"
5
6# Support hotplugging displays?
7 Option "Hotplug" "TRUE"
8
9# Support hardware cursor if available?
10 Option "HWCursor" "TRUE"
11
12# Use GPU acceleration?
13 Option "UseGPU" "TRUE"
14
15# Provide Xv interfaces?
16 Option "XvAccel" "TRUE"
17
18# Prefer overlay for Xv (TRUE for armada-drm, FALSE for imx-drm)
19 Option "XvPreferOverlay" "TRUE"
20
21# Which accelerator module to load (automatically found if commented out)
22 Option "AccelModule" "etnadrm_gpu"
23 Option "AccelModule" "etnaviv_gpu"
24
25# Support DRI2 interfaces?
26 Option "DRI" "TRUE"
27EndSection
28