annotate loadtools/scripts/c155.config @ 441:1dcc9e4b71fd

target-utils/calversion: program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Dec 2018 06:40:02 +0000
parents 2cd705c8116e
children 49ee210fc4fb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 # This configuration is for Motorola C155/156 phones. Use the "generic"
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 # compal configuration for C11x/123 and C139/140.
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 compal-stage thumb
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 # Parameters for the Calypso boot ROM;
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 # will result in the ARM core being clocked at 52 MHz as we want.
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 pll-config 4/1
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 rhea-cntl 0x00
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 # 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
13 init-script c155.init
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
437
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
15 # 8 MiB flash, accessible at 0x03000000 without the strange issue
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
16 # seen on the lower C1xx models, but the flash chip turns out to have
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
17 # partition quirks like the one on the D-Sample, so we need to
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
18 # tell fc-loadtool about it explicitly instead of using CFI.
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
19 # The actual chip in these phones is a flash+RAM MCP, but the flash part
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
20 # is exactly the same as the 28F640W30B on the D-Sample (same geometry,
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
21 # same ID codes), so we just tell fc-loadtool that it's a 28F640W30B.
2cd705c8116e loadtools: Mot C155 turns out to have the same flash partition quirks
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
22 flash 28f640w30b 0x03000000
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 # bottom boot flash, sector 0 is only 8 KiB
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 boot-reflash-hack 0x820000 0x2000
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 # 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
28 exit-mode iota-off