From 266f411ff3f101392fe7f1780a9ca1ec86165417 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 27 Oct 2003 10:30:12 +0000 Subject: Explicit setup of the bus controller wait states. This is supposed to fix the issue when the flashed recorder hangs when recording. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3991 a1c6a512-1295-4272-9138-f99709370657 --- firmware/system.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware/system.c') diff --git a/firmware/system.c b/firmware/system.c index 056d7eb162..87d3b9dc7d 100644 --- a/firmware/system.c +++ b/firmware/system.c @@ -490,4 +490,12 @@ void system_init(void) /* Activate Warp mode (simultaneous internal and external mem access) */ BCR |= 0x2000; + + /* Bus state controller initializations. These are only necessary when + running from flash. The correct settings for player models are not + verified, so we only do this for the recorder. */ +#ifdef HAVE_RECORDING + WCR1 = 0x4000; /* Long wait states for CS6 (ATA), short for the rest. */ + WCR3 = 0x8000; /* WAIT is pulled up, 1 state inserted for CS6 */ +#endif } -- cgit v1.2.3