# HG changeset patch # User Michael Spacefalcon # Date 1403080721 0 # Node ID 57c681499f489be95de32f0a77d22d555fbae6b4 # Parent 3a46728e054b20f8b17c2fc79a3752521550d1b4 loadtools/scripts/c155.{config,init}: created diff -r 3a46728e054b -r 57c681499f48 loadtools/scripts/c155.config --- /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 diff -r 3a46728e054b -r 57c681499f48 loadtools/scripts/c155.init --- /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