r1767

dslinux_amadeus at dslinux.in-berlin.de dslinux_amadeus at dslinux.in-berlin.de
Tue May 22 21:42:31 CEST 2007


Author: amadeus
Date: 2007-05-22 21:42:25 +0200 (Tue, 22 May 2007)
New Revision: 1767

Log:
improve EZ5 3in1 detection

Modified: trunk/linux-2.6.x/arch/arm/mach-nds/gbaram.c
===================================================================
--- trunk/linux-2.6.x/arch/arm/mach-nds/gbaram.c	2007-05-21 20:10:45 UTC (rev 1766)
+++ trunk/linux-2.6.x/arch/arm/mach-nds/gbaram.c	2007-05-22 19:42:25 UTC (rev 1767)
@@ -320,7 +320,7 @@
 	// enable writing
 	ez_OpenNorWrite();
 
-	// detect PSRAM starting at 0x08400000
+	// detect EZ4 PSRAM starting at 0x08400000
 	if (!gba_testram(0x08000000, 256) && gba_testram(0x08400000, 256))
 		goto ez_ok;
 
@@ -331,8 +331,9 @@
 	// enable writing
 	ez_OpenNorWrite();
 
-	// detect PSRAM starting at 0x08400000
-	if (!gba_testram(0x08000000, 256) && gba_testram(0x08400000, 256))
+	// detect EZ5 3in1 PSRAM starting at 0x08400000
+	// EZ5 has mirrored PSRAM from 0x08000000 to 0x08400000
+	if (gba_testram(0x08400000, 256))
 		goto ez_ok;
 
 	// nothing found




More information about the dslinux-commit mailing list