summaryrefslogtreecommitdiff
path: root/sim-scripts/gumstix.in
blob: f7b769810d4c5c27a878e542a61c2390c569ecb8 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
#  ARM/Gumstix Support 
#

##INSERT SKYEYE SUPPORT HERE

bspSupportsDisplayAdapter="yes"
bspSupportsNIC="yes"

checkBSPFaults()
{
  bspExited_ARM
  return $?
}

bspLimit()
{
  testname=$1
  case ${testname} in
    *stackchk*)limit=5 ;;
    *fatal*)   limit=1 ;;
    *minimum*) limit=1 ;;
    *psxtime*) limit=180 ;;
    *cpuuse*)  limit=180 ;;
    *sp04*)    limit=360 ;;
    *sp19*)    limit=180 ;;
    *sp20*)    limit=180 ;;
    *)         limit=60 ;;
  esac
  echo ${limit}
}

bspTreeFile=gumstix.conf

### Generate the PSIM device tree based upon the type of application being run
bspGenerateDeviceTree()
{
cat <<EOF
cpu: pxa25x
mach: pxa_lubbock
mem_bank: map=M, type=RW, addr=0x5c000000, size=0x100000
mem_bank: map=M, type=RW, addr=0xA0000000, size=0x4000000
mem_bank: map=I, type=RW, addr=0xB0000000, size=0x100000
mem_bank: map=I, type=RW, addr=0x40000000, size=0x4C000000
#shutdown_device: addr=0xb0000000, max_ins=${limit}0000000
shutdown_device: addr=0xb0000000, max_ins=0
EOF

if [ ${enable_display_adapter} = "yes" ] ; then
  echo "lcd:state=on,type=pxa,mod=gtk"
fi

if [ ${enable_network} = "yes" ] ; then
cat <<EOF
net: base=0x40000600, size=0xff, int=16, type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
EOF
fi

if [ ${coverage} = yes ] ; then
  # Only do coverage on first megabyte of code space
  echo "code_coverage: state=on, filename=${2}.cov, start=0xA0000000, end=0xA0100000"
fi
}