blob: ef973548a53391d9552a98972daed03bf2c538c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/bash
# this script uses the BOARD_ID set from checkFru.sh and provides the NAME,
# PRODID, and EEPROM_FRU values for this platform
decode_board_id() {
if grep -q 'CPU part\s*: 0xb76' /proc/cpuinfo; then
# AST2500
if [ -f $fruFile -a -f $prodIDFile -a $BOARD_ID -ne 0 ]; then
exit 0
fi
case $BOARD_ID in
12) NAME="D50TNP1SB"
PRODID="0x99";;
40) NAME="CooperCity"
PRODID="0x9d";;
42) NAME="WilsonCity"
PRODID="0x91";;
44) NAME="WilsonCityM"
PRODID="0x91";;
45) NAME="WilsonCity"
PRODID="0x91";;
60) NAME="M50CYP2SB2U"
PRODID="0x98";;
62) NAME="WilsonPoint"
PRODID="0x9a";;
16) EEPROM_FRU=true
PRODID="0xA1";;
1) EEPROM_FRU=true
PRODID="0xA5";;
0) EEPROM_FRU=true
PRODID="0xA0";;
esac
fi
}
|