FreeCalypso > hg > freecalypso-tools
annotate loadtools/scripts/fic.config @ 667:2772cf8435b4
CHANGES: binary protocol for flash programming operations
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 07 Mar 2020 19:43:10 +0000 |
parents | 42ba9f015d4c |
children |
rev | line source |
---|---|
564
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # Openmoko's GTA01/02 modem design is based on earlier Calypso phone or modem |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 # designs by FIC, going back to 2004 according to dated comments in OM's FLUID |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 # devices.txt file, and that parent design originally supported bigger flash |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 # chips than the ones used in mass-produced GTA01/02 units. The latter have |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 # Samsung K5A3240CTM or K5A3281CTM chips populated in them (4 MiB of flash, |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # 512 KiB or 1 MiB of RAM), but the PCB footprint actually fits a 16 MiB flash |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 # chip (Spansion S71PL129J), with the second flash chip select wired to Calypso |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 # nCS4. That devices.txt file also indicates that this nCS4 wiring was used |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 # in FIC's 2004 design as well. |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 # |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 # This loadtool config is set up to address this maximum possibility of 16 MiB |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 # of flash (in this particular wiring) or any subset thereof; it may be needed |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 # if some early GTA01 prototype devices still had the bigger flash in them or |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 # if someone finds an earlier (pre-Openmoko) FIC phone or modem. |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 # The following parameters go into the <p command sent to the boot ROM |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 pll-config 4/1 # 26 MHz in, PLL&DSP @ 104 MHz, ARM @ 52 MHz |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 rhea-cntl 0x00 # good for all Calypso platforms |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 # The remaining settings are carried out via loadagent commands |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 init-script fic.init |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 # Flash global config and chip select base addresses |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 flash dual-8M 0x03000000 0x02800000 |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 # Perform a Iota poweroff when we are done |
42ba9f015d4c
loadtools/scripts/fic.{config,init} created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 exit-mode iota-off |