From 9bead1c65d313eab13cadfe5082ca7692881131f Mon Sep 17 00:00:00 2001 From: Adrian Alonso Date: Wed, 24 Aug 2011 17:37:49 -0500 Subject: [PATCH] xserver-xf86-config: custom xorg.conf file for iMx targets * Custom xorg config file for iMx targets * Binds eGalaxy touchscreen to use evdev driver * Sets framebuffet to use imx driver Signed-off-by: Adrian Alonso --- .../xserver-xf86-config/xorg.conf | 45 +++++++++++++++++++ .../xserver-xf86-config_0.1.bbappend | 4 ++ 2 files changed, 49 insertions(+) create mode 100644 meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf create mode 100644 meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend diff --git a/meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf b/meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf new file mode 100644 index 00000000..bbb1f530 --- /dev/null +++ b/meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf @@ -0,0 +1,45 @@ +Section "InputDevice" + Identifier "Generic Keyboard" + Driver "kbd" + Option "XkbRules" "xorg" + Option "XkbModel" "pc105" + Option "XkbLayout" "us" +EndSection + +Section "InputDevice" + Identifier "Configured Mouse" + Driver "mouse" + Option "CorePointer" +EndSection + +Section "InputClass" + Identifier "eGalax" + MatchIsTouchscreen "on" + MatchDevicePath "/dev/input/event*" + Driver "evdev" +EndSection + +Section "Device" + Identifier "i.MX Accelerated Framebuffer Device" + Driver "imx" + Option "fbdev" "/dev/fb0" + # This option only recognized when "mxc_epdc_fb" frame buffer driver in + # use. Values are "RGB565" (default, 16-bit RGB), "Y8" (8-bit gray), + # and "Y8INV" (8-bit gray inverted). + Option "FormatEPDC" "Y8INV" +EndSection + +Section "Monitor" + Identifier "Configured Monitor" +EndSection + +Section "Screen" + Identifier "Default Screen" + Monitor "Configured Monitor" + Device "i.MX Accelerated Framebuffer Device" +EndSection + +Section "ServerLayout" + Identifier "Default Layout" + Screen "Default Screen" +EndSection diff --git a/meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend new file mode 100644 index 00000000..e6c5a53f --- /dev/null +++ b/meta-fsl-arm/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend @@ -0,0 +1,4 @@ +# Append path for freescale layer to include bsp xorg.conf +THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" + -- 2.40.1