# HG changeset patch
# User Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
# Date 1384232010 0
# Node ID f8bb6cd4edd3e0336a786e3a7dafcce2101adffe
# Parent  5b53cad886376b08b38c11d75497d787d17f9a92
k5a3281.init (for GTA0x): set WS=3 for nCS0 like the official firmware does

diff -r 5b53cad88637 -r f8bb6cd4edd3 loadtools/scripts/k5a3281.init
--- a/loadtools/scripts/k5a3281.init	Mon Nov 11 11:06:50 2013 +0000
+++ b/loadtools/scripts/k5a3281.init	Tue Nov 12 04:53:30 2013 +0000
@@ -2,12 +2,11 @@
 # The closest datasheet that could be found is for K5A3280;
 # all current understanding of this IC is based on the latter datasheet.
 
-# The flash part of the MCP is wired to nCS0.  The access time is 70 ns
-# just like on the flash part used in the Pirelli DP-L10, so use the
-# same setting.
-w16 fffffb00 00A4
+# OsmocomBB sets WS=3 for both nCS0 and nCS1.  At first I was concerned that
+# the setting was wrong for nCS0, but I have now located the responsible
+# code in the moko11 binary (see the moko11 notes file in the
+# freecalypso-reveng Hg tree) and confirmed that the official firmware
+# runs with the same settings.  So let's do likewise.
 
-# The RAM part of this MCP (wired to nCS1 as usual) appears to be real
-# SRAM, not pSRAM like in S71PL129NC0.  The access time is advertised
-# as 55 ns, and OsmocomBB sets WS to 3.  We'll do the same.
+w16 fffffb00 00A3
 w16 fffffb02 00A3