diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-10-27 10:30:12 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-10-27 10:30:12 +0000 |
commit | 266f411ff3f101392fe7f1780a9ca1ec86165417 (patch) | |
tree | 30d287b38a0617129d5297378481af9bf8f14969 /firmware/system.c | |
parent | c6acb58a82a054bf6972dd2fbf01cc5336c71216 (diff) | |
download | rockbox-266f411ff3f101392fe7f1780a9ca1ec86165417.tar.gz rockbox-266f411ff3f101392fe7f1780a9ca1ec86165417.zip |
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
Diffstat (limited to 'firmware/system.c')
-rw-r--r-- | firmware/system.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) | |||
490 | 490 | ||
491 | /* Activate Warp mode (simultaneous internal and external mem access) */ | 491 | /* Activate Warp mode (simultaneous internal and external mem access) */ |
492 | BCR |= 0x2000; | 492 | BCR |= 0x2000; |
493 | |||
494 | /* Bus state controller initializations. These are only necessary when | ||
495 | running from flash. The correct settings for player models are not | ||
496 | verified, so we only do this for the recorder. */ | ||
497 | #ifdef HAVE_RECORDING | ||
498 | WCR1 = 0x4000; /* Long wait states for CS6 (ATA), short for the rest. */ | ||
499 | WCR3 = 0x8000; /* WAIT is pulled up, 1 state inserted for CS6 */ | ||
500 | #endif | ||
493 | } | 501 | } |