[oe-commits] Ulf Samuelsson : Add X-Windows support for AT91SAM9G45 LCD controller

git version control git at git.openembedded.org
Sun Oct 17 21:18:18 UTC 2010


Module: openembedded.git
Branch: master
Commit: fee7520020ac46a41382fec0b69c5501f3c21236
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=fee7520020ac46a41382fec0b69c5501f3c21236

Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date:   Sun Oct 17 23:08:11 2010 +0200

Add X-Windows support for AT91SAM9G45 LCD controller

---

 .../xserver-kdrive-1.4.0.90/at91sam9-kmode.patch   |   18 +++++++++++++++
 .../xserver-kdrive-1.4.0.90/wvga-kmode.patch       |   16 +++++++++++++
 recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb    |    2 +
 .../xserver-xorg-conf/at91sam9g45ek/xorg.conf      |   23 ++++++++++++++++++++
 4 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/recipes/xorg-xserver/xserver-kdrive-1.4.0.90/at91sam9-kmode.patch b/recipes/xorg-xserver/xserver-kdrive-1.4.0.90/at91sam9-kmode.patch
new file mode 100644
index 0000000..96d814c
--- /dev/null
+++ b/recipes/xorg-xserver/xserver-kdrive-1.4.0.90/at91sam9-kmode.patch
@@ -0,0 +1,18 @@
+diff -Nru xorg-server-1.4.0.90_orig/hw/kdrive/src/kmode.c xorg-server-1.4.0.90/hw/kdrive/src/kmode.c
+--- xorg-server-1.4.0.90_orig/hw/kdrive/src/kmode.c
++++ xorg-server-1.4.0.90/hw/kdrive/src/kmode.c
+@@ -69,6 +69,12 @@
+                   0,      0,      0,     KdSyncNegative,
+     },
+ 
++    /* at91sam9g45-ekes */
++    {   480,    272,    60,     0,                      /* VESA */
++               0,      0,     0,    KdSyncNegative, /* 31.469 */
++               0,      0,     0,     KdSyncNegative, /* 59.940 */
++    },
++
+     /* Other VESA modes */
+     { 640,    350,    85,     31500,                      /* VESA */
+                   32,     96,     192,    KdSyncPositive, /* 26.413 */
+
+
diff --git a/recipes/xorg-xserver/xserver-kdrive-1.4.0.90/wvga-kmode.patch b/recipes/xorg-xserver/xserver-kdrive-1.4.0.90/wvga-kmode.patch
new file mode 100644
index 0000000..4b6a1fc
--- /dev/null
+++ b/recipes/xorg-xserver/xserver-kdrive-1.4.0.90/wvga-kmode.patch
@@ -0,0 +1,16 @@
+--- xorg-server-1.4.0.90/hw/kdrive/src/kmode.c.orig
++++ xorg-server-1.4.0.90/hw/kdrive/src/kmode.c
+@@ -75,6 +75,13 @@
+                0,      0,     0,     KdSyncNegative, /* 59.940 */
+     },
+ 
++    /* at91sam9m10-ekes */
++    {	800,	480,	60,	0,
++	0,	0,	0,	KdSyncNegative,
++	0,	0,	0,	KdSyncNegative, 
++    },
++
++
+     /* Other VESA modes */
+     {	640,	350,	85,	31500,			    /* VESA */
+ 		    32,	    96,	    192,    KdSyncPositive, /* 26.413 */
diff --git a/recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb b/recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb
index 6f329d1..6e2457b 100644
--- a/recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb
+++ b/recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb
@@ -28,6 +28,8 @@ SRC_URI = "${XORG_MIRROR}/individual/xserver/xorg-server-${PV}.tar.bz2 \
 	file://xorg-1.4-kdrive-rotation.patch \
 	file://split_multiple_AC_SUBST.patch \
 	file://vm86_masks.patch \
+	file://at91sam9-kmode.patch \
+	file://wvga-kmode.patch \
         "
 
 S = "${WORKDIR}/xorg-server-${PV}"
diff --git a/recipes/xorg-xserver/xserver-xorg-conf/at91sam9g45ek/xorg.conf b/recipes/xorg-xserver/xserver-xorg-conf/at91sam9g45ek/xorg.conf
new file mode 100644
index 0000000..0502f87
--- /dev/null
+++ b/recipes/xorg-xserver/xserver-xorg-conf/at91sam9g45ek/xorg.conf
@@ -0,0 +1,23 @@
+Section "ServerLayout"
+    Identifier "default"
+    InputDevice "atmel-tsadcc" "CorePointer"
+EndSection
+
+Section "InputDevice"
+    Identifier "atmel-tsadcc"
+    Driver "evdev"
+    Option "Device" "/dev/input/touchscreen0"
+EndSection
+
+Section "InputDevice"
+	Driver		"mouse"
+	Identifier	"Mouse[1]"
+	Option		"Buttons"	"10"
+	Option		"Device"	"/dev/input/mice"
+EndSection
+
+Section	"InputDevice"
+	Driver		"kbd"
+	Identifier	"Keyboard[0]"
+	Option		"Protocol" "Standard"
+EndSection





More information about the Openembedded-commits mailing list