changeset 9:73e647918297

main-fchw.patch implemented
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 06 Jun 2015 05:57:32 +0000
parents 04fd47d382c7
children 8604a725d883
files patches/Makefile patches/main-fchw.patch
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/patches/Makefile	Sat Jun 06 05:24:23 2015 +0000
+++ b/patches/Makefile	Sat Jun 06 05:57:32 2015 +0000
@@ -1,6 +1,9 @@
 NEWLIBS=tpudrv-quadband.lib
 TOOL=	../tool/ti-libpatch
 
+main-fchw.lib:	../libs/main.lib main-fchw.patch
+	${TOOL} ../libs/main.lib main-fchw.patch $@
+
 tpudrv-quadband.lib:	../libs/tpudrv.lib tpudrv-quadband.patch
 	${TOOL} ../libs/tpudrv.lib tpudrv-quadband.patch $@
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/main-fchw.patch	Sat Jun 06 05:57:32 2015 +0000
@@ -0,0 +1,17 @@
+# This patch applies to the Init_Target() function in the init.obj module in
+# main.lib; it is an example of how this code will need to be patched for
+# running on our own future FreeCalypso hardware if we choose to use the same
+# Spansion S71PL129NC0 flash+pSRAM MCP as used in the Pirelli DP-L10 and use
+# the same memory timings as set by Pirelli's firmware.
+
+[init.obj]
+
+# value goes into nCS0, nCS1 and nCS3 config registers
+.text 66 A4
+# value goes into nCS2 config reg
+.text 6C A4
+
+# nop out the write into 0x02700000
+
+.text 128 C0
+.text 129 46