summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/drm/libdrm
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2017-11-15 15:02:10 -0600
committerOtavio Salvador <otavio@ossystems.com.br>2017-11-16 11:09:27 -0200
commit80af5dbe0775cd9540328c8aa1630aa4f4499c29 (patch)
treeed95bd3871c3ee2ace583f7d51ea4c5593fba027 /recipes-graphics/drm/libdrm
parent9f2b57cbf8b89afe2cab9108cec5376c05e2892d (diff)
downloadmeta-freescale-80af5dbe0775cd9540328c8aa1630aa4f4499c29.tar.gz
libdrm: Extend ARM support to mx7
Apply the same xf86drm.h change made for mx6 to mx7. The recipe is already extended by using imxgpu2d as filter. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-graphics/drm/libdrm')
-rw-r--r--recipes-graphics/drm/libdrm/mx7/drm-update-arm.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-graphics/drm/libdrm/mx7/drm-update-arm.patch b/recipes-graphics/drm/libdrm/mx7/drm-update-arm.patch
new file mode 100644
index 00000000..1160cd10
--- /dev/null
+++ b/recipes-graphics/drm/libdrm/mx7/drm-update-arm.patch
@@ -0,0 +1,35 @@
1Add ARM support into xf86arm.h. This provides support for Xorg interface.
2Without this the vivante samples will hang during close requiring a reboot
3
4Upstream-Status: Pending
5
6Signed-off-by: Lauren Post <lauren.post@freescale.com>
7Signed-off-by: Evan Kotara <evan.kotara@freescale.com>
8
9diff --git a/xf86drm.h b/xf86drm.h
10--- a/xf86drm.h
11+++ b/xf86drm.h
12@@ -461,6 +461,23 @@ do { register unsigned int __old __asm("
13 : "cr0", "memory"); \
14 } while (0)
15
16+#elif defined(__arm__)
17+ #undef DRM_DEV_MODE
18+ #define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
19+
20+ #define DRM_CAS(lock,old,new,__ret) \
21+ do { \
22+ __asm__ __volatile__ ( \
23+ "1: ldrex %0, [%1]\n" \
24+ " teq %0, %2\n" \
25+ " ite eq\n" \
26+ " strexeq %0, %3, [%1]\n" \
27+ " movne %0, #1\n" \
28+ : "=&r" (__ret) \
29+ : "r" (lock), "r" (old), "r" (new) \
30+ : "cc","memory"); \
31+ } while (0)
32+
33 #endif /* architecture */
34 #endif /* __GNUC__ >= 2 */
35