pcmcia-cs: patch arm/pcmcia to handle 2.6 modules
authorKoen Kooi <koen@openembedded.org>
Fri, 26 Aug 2005 21:10:09 +0000 (21:10 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 26 Aug 2005 21:10:09 +0000 (21:10 +0000)
Patch courtesy Matt Reimer, closes #260

packages/pcmcia-cs/files/arm/pcmcia

index 3dc330d..d42bc84 100644 (file)
@@ -1,6 +1,14 @@
 case `awk 'BEGIN { FS=":" } /Processor/ { gsub(/ /, "", $2) ; print $2 } ' </proc/cpuinfo` in
   *XScale-PXA2*)
-    PCIC=pxa_cs
+
+    case "`uname -r`" in
+        2.4*)
+               PCIC=pxa_cs
+               ;;
+       2.6*)
+               PCIC=pxa2xx_core
+               ;;
+    esac
     ;;
   *StrongARM-1100* | *StrongARM-1110*)
     PCIC=sa1100_cs
@@ -12,6 +20,11 @@ case `awk 'BEGIN { FS=":" } /Processor/ { gsub(/ /, "", $2) ; print $2 } ' </pro
 esac
 
 if grep -q iPAQ /proc/cpuinfo; then
-  PCIC_EXTRA=h3600_generic_sleeve
+  case `module_id` in
+    "HP iPAQ H2200")
+       ;;
+    *)
+       PCIC_EXTRA=h3600_generic_sleeve
+       ;;
+  esac
 fi
-