diff options
Diffstat (limited to 'meta/packages/pcmcia-cs/files/arm/pcmcia')
| -rw-r--r-- | meta/packages/pcmcia-cs/files/arm/pcmcia | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/packages/pcmcia-cs/files/arm/pcmcia b/meta/packages/pcmcia-cs/files/arm/pcmcia new file mode 100644 index 0000000000..d5346fb13a --- /dev/null +++ b/meta/packages/pcmcia-cs/files/arm/pcmcia | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | module_id() { | ||
| 2 | awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo | ||
| 3 | } | ||
| 4 | |||
| 5 | |||
| 6 | case `awk 'BEGIN { FS=":" } /Processor/ { gsub(/ /, "", $2) ; print $2 } ' </proc/cpuinfo` in | ||
| 7 | *XScale-PXA2*) | ||
| 8 | |||
| 9 | case "`uname -r`" in | ||
| 10 | 2.4*) | ||
| 11 | PCIC=pxa_cs | ||
| 12 | ;; | ||
| 13 | 2.6*) | ||
| 14 | PCIC=pxa2xx_core | ||
| 15 | ;; | ||
| 16 | esac | ||
| 17 | ;; | ||
| 18 | *StrongARM-1100* | *StrongARM-1110*) | ||
| 19 | PCIC=sa1100_cs | ||
| 20 | ;; | ||
| 21 | *) | ||
| 22 | echo "Unable to determine PCIC value for this CPU" | ||
| 23 | exit 1 | ||
| 24 | ;; | ||
| 25 | esac | ||
| 26 | |||
| 27 | case "`uname -r`" in | ||
| 28 | 2.4*) | ||
| 29 | DS=ds | ||
| 30 | ;; | ||
| 31 | 2.6*) | ||
| 32 | DS=pcmcia | ||
| 33 | ;; | ||
| 34 | esac | ||
| 35 | |||
| 36 | case `module_id` in | ||
| 37 | "HP iPAQ H3"* | "HP iPAQ H5"*) | ||
| 38 | PCIC_EXTRA=h3600_generic_sleeve | ||
| 39 | ;; | ||
| 40 | esac | ||
