FreeCalypso > hg > freecalypso-sw
comparison loadtools/scripts/c155.init @ 479:fe9e620c89ff
loadtools on C155/156: use the flash mapping at 0x03000000
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Sun, 29 Jun 2014 01:26:52 +0000 |
| parents | 57c681499f48 |
| children |
comparison
equal
deleted
inserted
replaced
| 478:dac495b0d222 | 479:fe9e620c89ff |
|---|---|
| 1 # Set WS=3 for both nCS0 and nCS1, same as the more basic Compal phones | 1 # Set WS=3 for both nCS0 and nCS1, same as the more basic Compal phones |
| 2 | 2 |
| 3 w16 fffffb00 00A3 | 3 w16 fffffb00 00A3 |
| 4 w16 fffffb02 00A3 | 4 w16 fffffb02 00A3 |
| 5 | |
| 6 # We need to set the FFFF:FB10 register to map the flash (not the boot ROM) | |
| 7 # to address 0, same as the basic compal.init version; see the latter for | |
| 8 # the explanation. | |
| 9 | |
| 10 w16 fffffb10 0300 | |
| 11 | 5 |
| 12 # We need to switch the CS4/ADD22 pin from its default function of CS4 | 6 # We need to switch the CS4/ADD22 pin from its default function of CS4 |
| 13 # to the needed ADD22, to access the 8 MiB of flash. Compal's C155/156 | 7 # to the needed ADD22, to access the 8 MiB of flash. Compal's C155/156 |
| 14 # in-flash boot code does this setting, but let's do it ourselves too. | 8 # in-flash boot code does this setting, but let's do it ourselves too. |
| 15 | 9 |
| 16 w16 fffef006 0008 | 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. |
