comparison loadtools/scripts/c155.init @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children 35d3f4c26b96
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 # Set WS=3 for both nCS0 and nCS1, same as the more basic Compal phones
2
3 w16 fffffb00 00A3
4 w16 fffffb02 00A3
5
6 # We need to switch the CS4/ADD22 pin from its default function of CS4
7 # to the needed ADD22, to access the 8 MiB of flash. Compal's C155/156
8 # in-flash boot code does this setting, but let's do it ourselves too.
9
10 w16 fffef006 0008
11
12 # We don't mess with the FFFF:FB10 register on C155/156, i.e., we
13 # leave the "enable boot ROM" setting established by compalstage.
14 # Unlike C139, C155 and C156 phones do have working flash mapping
15 # at 0x03000000, so we use that.