Add X-Windows support for AT91SAM9G45 LCD controller
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 17 Oct 2010 21:08:11 +0000 (23:08 +0200)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 17 Oct 2010 21:13:38 +0000 (23:13 +0200)
recipes/xorg-xserver/xserver-kdrive-1.4.0.90/at91sam9-kmode.patch [new file with mode: 0644]
recipes/xorg-xserver/xserver-kdrive-1.4.0.90/wvga-kmode.patch [new file with mode: 0644]
recipes/xorg-xserver/xserver-kdrive_1.4.0.90.bb
recipes/xorg-xserver/xserver-xorg-conf/at91sam9g45ek/xorg.conf [new file with mode: 0644]

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 (file)
index 0000000..96d814c
--- /dev/null
@@ -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 (file)
index 0000000..4b6a1fc
--- /dev/null
@@ -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 */
index 6f329d1..6e2457b 100644 (file)
@@ -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 (file)
index 0000000..0502f87
--- /dev/null
@@ -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