diff options
-rw-r--r-- | conf/machine/include/imx-base.inc | 1 | ||||
-rw-r--r-- | recipes-graphics/xorg-driver/xf86-video-armada_git.bb | 46 | ||||
-rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config/use-mainline-bsp/xorg.conf | 28 |
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" | |||
30 | XSERVER_DRIVER = "xf86-video-fbdev" | 30 | XSERVER_DRIVER = "xf86-video-fbdev" |
31 | XSERVER_DRIVER_imxgpu2d = "xf86-video-imxfb-vivante" | 31 | XSERVER_DRIVER_imxgpu2d = "xf86-video-imxfb-vivante" |
32 | XSERVER_DRIVER_vf = "xf86-video-modesetting" | 32 | XSERVER_DRIVER_vf = "xf86-video-modesetting" |
33 | XSERVER_DRIVER_use-mainline-bsp = "xf86-video-armada" | ||
33 | XSERVER = "xserver-xorg \ | 34 | XSERVER = "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 @@ | |||
1 | SUMMARY = "X.org graphics driver for KMS based systems with pluggable GPU backend" | ||
2 | DESCRIPTION = "The xf86-video-armada module is a 2D graphics driver for the X Window \ | ||
3 | System as implemented by X.org, supporting these DRM KMS drivers: \ | ||
4 | \ | ||
5 | Freescale i.MX \ | ||
6 | Marvell Armada 510 (Dove) \ | ||
7 | \ | ||
8 | and 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 | " | ||
13 | LICENSE = "BSD" | ||
14 | |||
15 | require recipes-graphics/xorg-driver/xorg-driver-video.inc | ||
16 | |||
17 | DEPENDS += "libdrm-armada" | ||
18 | |||
19 | LIC_FILES_CHKSUM = " \ | ||
20 | file://README;md5=d5271074fb6ad959b7b6cfa68b4adaf0 \ | ||
21 | file://../etna_viv/LICENSE;md5=9d4853905d85f044ed013e75def30a76 \ | ||
22 | " | ||
23 | |||
24 | SRCREV_armada = "a4306d971717a2d3ea855d08c5667e02403b84fe" | ||
25 | SRCREV_etna = "f64d77abbb54433bd5de955c20afddc6eb4f4cb1" | ||
26 | SRCREV_FORMAT = "armada_etna" | ||
27 | |||
28 | PV = "0.1+git${SRCPV}" | ||
29 | |||
30 | SRC_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 | |||
35 | S = "${WORKDIR}/git" | ||
36 | |||
37 | RDEPENDS_${PN} = "xserver-xorg-module-exa \ | ||
38 | xserver-xorg-extension-dri \ | ||
39 | xserver-xorg-extension-dri2 \ | ||
40 | xserver-xorg-extension-glx \ | ||
41 | " | ||
42 | |||
43 | EXTRA_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 @@ | |||
1 | Section "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" | ||
27 | EndSection | ||
28 | |||