changeset 420:57c681499f48

loadtools/scripts/c155.{config,init}: created
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 18 Jun 2014 08:38:41 +0000
parents 3a46728e054b
children 4f8a9b2229e9
files loadtools/scripts/c155.config loadtools/scripts/c155.init
diffstat 2 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/loadtools/scripts/c155.config	Wed Jun 18 08:38:41 2014 +0000
@@ -0,0 +1,23 @@
+# This configuration is for Motorola C155/156 phones.  Use the "generic"
+# compal configuration for C11x/123 and C139/140.
+
+compal-stage thumb
+
+# Parameters for the Calypso boot ROM;
+# will result in the ARM core being clocked at 52 MHz as we want.
+
+pll-config 4/1
+rhea-cntl 0x00
+
+# The remaining settings are carried out via loadagent commands
+init-script c155.init
+
+# Flash: use CFI autodetection, 8 MiB max
+# mapped at 0, see compal.init for the explanation
+flash cfi-8M 0
+
+# bottom boot flash, sector 0 is only 8 KiB
+boot-reflash-hack 0x820000 0x2000
+
+# Perform a Iota poweroff when we are done
+exit-mode iota-off
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/loadtools/scripts/c155.init	Wed Jun 18 08:38:41 2014 +0000
@@ -0,0 +1,16 @@
+# Set WS=3 for both nCS0 and nCS1, same as the more basic Compal phones
+
+w16 fffffb00 00A3
+w16 fffffb02 00A3
+
+# We need to set the FFFF:FB10 register to map the flash (not the boot ROM)
+# to address 0, same as the basic compal.init version; see the latter for
+# the explanation.
+
+w16 fffffb10 0300
+
+# We need to switch the CS4/ADD22 pin from its default function of CS4
+# to the needed ADD22, to access the 8 MiB of flash.  Compal's C155/156
+# in-flash boot code does this setting, but let's do it ourselves too.
+
+w16 fffef006 0008