[meta-xilinx] [PATCH 01/20] linux/config: Add config fragments for Xilinx DRM
Jason Wu
jason.wu.misc at gmail.com
Mon Apr 11 06:23:06 PDT 2016
Enable Xilinx DRM support and also set up CMA size to 40MB support various
pixel formats and Ubuntu rootfs.
Signed-off-by: Jason Wu <jason.wu.misc at gmail.com>
---
.../linux/config/xilinx-common/features/drm/drm-xilinx.cfg | 13 +++++++++++++
.../linux/config/xilinx-common/features/drm/drm-xilinx.scc | 4 ++++
2 files changed, 17 insertions(+)
create mode 100644 recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.cfg
create mode 100644 recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.scc
diff --git a/recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.cfg b/recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.cfg
new file mode 100644
index 0000000..2ca111d
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.cfg
@@ -0,0 +1,13 @@
+# CMA
+CONFIG_CMA=y
+CONFIG_DMA_CMA=y
+CONFIG_CMA_SIZE_MBYTES=40
+CONFIG_CMA_SIZE_SEL_MBYTES=y
+CONFIG_CMA_ALIGNMENT=8
+
+# DRM
+CONFIG_DRM=y
+CONFIG_DRM_XILINX=y
+
+# frame buffer console
+CONFIG_FRAMEBUFFER_CONSOLE=y
\ No newline at end of file
diff --git a/recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.scc b/recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.scc
new file mode 100644
index 0000000..849963a
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/drm/drm-xilinx.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable Xilinx DRM support"
+define KFEATURE_COMPATIBILITY board
+
+kconfig hardware drm-xilinx.cfg
\ No newline at end of file
--
1.9.1
More information about the meta-xilinx
mailing list