FreeCalypso > hg > freecalypso-sw
annotate loadtools/scripts/compal.config @ 669:b3def8c01572
gsm-fw/include/condat: gprs.h and macdef.h imported from g23m/condat/com/inc
(LoCosto version)
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 28 Sep 2014 16:56:27 +0000 |
parents | d8a120647649 |
children |
rev | line source |
---|---|
383
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 # This configuration is intended to be applicable to all of C11x, C123, |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 # C139 and C140. The "plain" version of compalstage selected below |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 # should work for all C11x/123; it will also work on C139/140 phones |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 # that had the simpler boot code flashed into them, as will be used for |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 # FreeCalypso. When running loadtools with this config on C139/140 |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 # phones that still have the "official" fw in them, one will need to |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 # specify -h compal -c 1003 to use the inefficient ~15 KiB version of |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 # compalstage. |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 compal-stage plain |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 # Whether we are breaking in through compalstage (as above) or through |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 # tfc139, the re-enabled Calypso boot ROM is used to load our loadagent |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 # into IRAM. The boot ROM will autodetect the Calypso input clock as |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 # 26 MHz (physical reality) when entered through compalstage, or as |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 # 13 MHz when entered through tfc139 - the latter results from the |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 # original fw setting bit 7 in the FFFF:FD02 register (VTCXO_DIV2), |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 # which the boot ROM does not clear. |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 # |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 # However, the following configuration will result in the ARM core |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 # being clocked at 52 MHz in both cases. |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 pll-config 4/1 |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 rhea-cntl 0x00 |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 # The remaining settings are carried out via loadagent commands |
326363ba5bf4
loadtools: compal.config and compal.init created
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 init-script compal.init |
392
134c047c1269
loadtools: Iota poweroff on Compal targets
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
383
diff
changeset
|
28 |
402
582b5052c86d
loadtools/scripts/compal.config: added flash cfi-4M 0
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
392
diff
changeset
|
29 # Flash: use CFI autodetection, 4 MiB max |
582b5052c86d
loadtools/scripts/compal.config: added flash cfi-4M 0
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
392
diff
changeset
|
30 # mapped at 0, see compal.init for the explanation |
582b5052c86d
loadtools/scripts/compal.config: added flash cfi-4M 0
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
392
diff
changeset
|
31 flash cfi-4M 0 |
582b5052c86d
loadtools/scripts/compal.config: added flash cfi-4M 0
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
392
diff
changeset
|
32 |
417
d8a120647649
loadtools/scripts/compal.config: boot-reflash-hack enabled
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
402
diff
changeset
|
33 boot-reflash-hack 0x820000 0x10000 |
d8a120647649
loadtools/scripts/compal.config: boot-reflash-hack enabled
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
402
diff
changeset
|
34 |
392
134c047c1269
loadtools: Iota poweroff on Compal targets
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
383
diff
changeset
|
35 # Perform a Iota poweroff when we are done |
134c047c1269
loadtools: Iota poweroff on Compal targets
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
383
diff
changeset
|
36 exit-mode iota-off |