FreeCalypso > hg > freecalypso-tools
annotate loadtools/scripts/compal.config @ 911:7077d02ed3b1
doc/Host-tools-overview: document fc-efr2tch
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 29 Dec 2022 21:15:36 +0000 |
parents | b0f9d38bfd9e |
children |
rev | line source |
---|---|
509
49ee210fc4fb
loadtools/scripts/*.config: new flash config
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
1 # This configuration is intended to be applicable to all of C11x, C12x, |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 # C139 and C140. The "plain" version of compalstage selected below |
509
49ee210fc4fb
loadtools/scripts/*.config: new flash config
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
3 # should work for all C11x/12x; it will also work on C139/140 phones |
49ee210fc4fb
loadtools/scripts/*.config: new flash config
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
4 # that had the simpler boot code flashed into them, as we do with |
49ee210fc4fb
loadtools/scripts/*.config: new flash config
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
5 # FreeCalypso fw on these phones. When running loadtools with this config |
49ee210fc4fb
loadtools/scripts/*.config: new flash config
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
6 # on C139/140 phones that still have the official fw in them, one will need |
49ee210fc4fb
loadtools/scripts/*.config: new flash config
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
7 # to specify -h compal -c 1004 to use the inefficient ~15 KiB version of |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 # compalstage. |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 compal-stage plain |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 # Whether we are breaking in through compalstage (as above) or through |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 # tfc139, the re-enabled Calypso boot ROM is used to load our loadagent |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 # into IRAM. The boot ROM will autodetect the Calypso input clock as |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 # 26 MHz (physical reality) when entered through compalstage, or as |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 # 13 MHz when entered through tfc139 - the latter results from the |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 # original fw setting bit 7 in the FFFF:FD02 register (VTCXO_DIV2), |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 # which the boot ROM does not clear. |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 # |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 # However, the following configuration will result in the ARM core |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 # being clocked at 52 MHz in both cases. |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 pll-config 4/1 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 rhea-cntl 0x00 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 # The remaining settings are carried out via loadagent commands |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 init-script compal.init |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
509
49ee210fc4fb
loadtools/scripts/*.config: new flash config
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
29 # Flash can be 2 MiB or 4 MiB, will be autodetected, 4 MiB mapping used |
512
b0f9d38bfd9e
loadtools/scripts/compal.*: switch to 0x03000000 flash mapping
Mychaela Falconia <falcon@freecalypso.org>
parents:
509
diff
changeset
|
30 # mapped at 0x03000000 like on other targets, see updated compal.init script |
b0f9d38bfd9e
loadtools/scripts/compal.*: switch to 0x03000000 flash mapping
Mychaela Falconia <falcon@freecalypso.org>
parents:
509
diff
changeset
|
31 flash single-4M 0x03000000 |
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 boot-reflash-hack 0x820000 0x10000 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 # Perform a Iota poweroff when we are done |
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 exit-mode iota-off |