xserver-kdrive-common: add support for the Motorola Ezx Platform
authorMichael Lauer <mickey@vanille-media.de>
Sun, 2 Sep 2007 10:18:15 +0000 (10:18 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Sun, 2 Sep 2007 10:18:15 +0000 (10:18 +0000)
also repair formatting (please use spaces only)

packages/xserver-kdrive-common/xserver-kdrive-common/Xserver
packages/xserver-kdrive-common/xserver-kdrive-common/openmoko/Xserver

index 709d501..cd58624 100644 (file)
@@ -74,8 +74,7 @@ case `module_id` in
         *Poodle)
                 ARGS="$ARGS -dpi 100 -rgba vrgb -screen 320x240@270" ;;
         *Collie)
-                ARGS="$ARGS -dpi 100 -rgba vrgb -screen 320x240@270"
-                ;;
+                ARGS="$ARGS -dpi 100 -rgba vrgb -screen 320x240@270" ;;
         "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi")
                 ARGS="$ARGS -dpi 200 -rgba rgb" ;;
         "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi")
@@ -90,23 +89,23 @@ case `module_id` in
                 ARGS="$ARGS -dpi 142" ;;
         "HTC Universal")
                 ARGS="$ARGS -dpi 225 -screen 480x640@270" ;;
-       "ARM-IntegratorCP" | "ARM-Versatile PB")
-               ARGS="$ARGS -rgba vrgb" ;;
-       "Compulab CM-x270")
+        "ARM-IntegratorCP" | "ARM-Versatile PB")
+                ARGS="$ARGS -rgba vrgb" ;;
+        "Compulab CM-x270")
                 modprobe mbxfb
-               ARGS="$ARGS -fb /dev/fb1"
-                ;;
-        "GTA01")
+                   ARGS="$ARGS -fb /dev/fb1" ;;
+        "GTA01" | "GTA02")
                 ARGS="$ARGS -dpi 285 -screen 480x640" ;;
         "Nokia N800")
-               ARGS="$ARGS -dpi 225 -screen 800x480x16 -mouse tslib" ;;
+                ARGS="$ARGS -dpi 225 -screen 800x480x16 -mouse tslib" ;;
+        "Motorola Ezx Platform")
+                ARGS="$ARGS -dpi 170 -screen 240x320" ;;
        *)
-               # Its a device we dont know about - in which case force
-                # kdrive to use the current framebuffer geometry otherwise
-               # it will defualt to trying to achieve 1024x768
+               # It is a device we do not know about, in which case we force
+        # kdrive to use the current framebuffer geometry -- otherwise
+               # it will default to trying to achieve 1024x768
                S=`fallback_screen_arg`
-               ARGS="$ARGS -screen $S"
-               ;;
+               ARGS="$ARGS -screen $S" ;;
 esac
 
 DISPLAY=':0'
index dddced4..7c8e6d3 100644 (file)
@@ -24,8 +24,6 @@ fi
 
 . /etc/profile
 
-
-
 fallback_screen_arg() {
     geom=`fbset | grep geometry`
     w=`echo $geom | awk '{ print $2 }'`
@@ -90,23 +88,23 @@ case `module_id` in
                 ARGS="$ARGS -br -dpi 142" ;;
         "HTC Universal")
                 ARGS="$ARGS -br -dpi 225 -screen 480x640@270" ;;
-       "ARM-IntegratorCP" | "ARM-Versatile PB")
-               ARGS="$ARGS -br -rgba vrgb" ;;
-       "Compulab CM-x270")
+        "ARM-IntegratorCP" | "ARM-Versatile PB")
+                       ARGS="$ARGS -br -rgba vrgb" ;;
+        "Compulab CM-x270")
                 modprobe mbxfb
-               ARGS="$ARGS -br -fb /dev/fb1"
-                ;;
+                ARGS="$ARGS -br -fb /dev/fb1" ;;
         "GTA01" | "GTA02")
                 ARGS="$ARGS -dpi 285 -screen 480x640 -hide-cursor -root-ppm /usr/share/pixmaps/xsplash.ppm" ;;
+        "Motorola Ezx Platform")
+                ARGS="$ARGS -dpi 170 -screen 240x320 -hide-cursor -root-ppm /usr/share/pixmaps/xsplash.ppm" ;;
         "Nokia N800")
-               ARGS="$ARGS -br -dpi 225 -screen 800x480x16 -mouse tslib" ;;
-       *)
-               # Its a device we dont know about - in which case force
-                # kdrive to use the current framebuffer geometry otherwise
-               # it will defualt to trying to achieve 1024x768
-               S=`fallback_screen_arg`
-               ARGS="$ARGS -screen $S"
-               ;;
+                ARGS="$ARGS -br -dpi 225 -screen 800x480x16 -mouse tslib" ;;
+        *)
+                       # It is a device we do not know about, in which case we force
+                # kdrive to use the current framebuffer geometry -- otherwise
+                       # it will default to trying to achieve 1024x768
+                       S=`fallback_screen_arg`
+                       ARGS="$ARGS -screen $S" ;;
 esac
 
 DISPLAY=':0'