view loadtools/scripts/fic.config @ 964:a96cb97b66a2

ringtools/imy: fix duplicate definition of tdma_durations[] The bug was reported by Vadim Yanitskiy <fixeria@osmocom.org>, although the present fix is slightly different from the contributed patch: because main.c doesn't need this tdma_durations[] array at all, let's simply remove the reference to this array from main.c rather than turn it into an extern. I no longer remember my original thought flow that resulted (by mistake) in tdma_durations[] being multiply defined in main.c and durations.c. My intent might have been to define all globals in main.c and have the reference in durations.c be an extern - and I missed that extern - but without clear memory, I have no certainty. In any case, having this data array defined in the same module that fills it (durations.c) is sensible, so let's make it the new way.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 31 Aug 2023 19:38:18 +0000
parents 42ba9f015d4c
children
line wrap: on
line source

# Openmoko's GTA01/02 modem design is based on earlier Calypso phone or modem
# designs by FIC, going back to 2004 according to dated comments in OM's FLUID
# devices.txt file, and that parent design originally supported bigger flash
# chips than the ones used in mass-produced GTA01/02 units.  The latter have
# Samsung K5A3240CTM or K5A3281CTM chips populated in them (4 MiB of flash,
# 512 KiB or 1 MiB of RAM), but the PCB footprint actually fits a 16 MiB flash
# chip (Spansion S71PL129J), with the second flash chip select wired to Calypso
# nCS4.  That devices.txt file also indicates that this nCS4 wiring was used
# in FIC's 2004 design as well.
#
# This loadtool config is set up to address this maximum possibility of 16 MiB
# of flash (in this particular wiring) or any subset thereof; it may be needed
# if some early GTA01 prototype devices still had the bigger flash in them or
# if someone finds an earlier (pre-Openmoko) FIC phone or modem.

# The following parameters go into the <p command sent to the boot ROM
pll-config 4/1		# 26 MHz in, PLL&DSP @ 104 MHz, ARM @ 52 MHz
rhea-cntl 0x00		# good for all Calypso platforms

# The remaining settings are carried out via loadagent commands
init-script fic.init

# Flash global config and chip select base addresses
flash dual-8M 0x03000000 0x02800000

# Perform a Iota poweroff when we are done
exit-mode iota-off