See patch.
This is the result of many hours of debugging and testing; parts of the patch are based on a previous version by Elia Yehuda z4ziggy@gmail.com (hence both Signed-off-by's).
Remaining TODO list for later:
- Correctly determine/set CAS latency, use it in do_ram_command().
- Commit the BUFF_SC patch or an improved version of it; I'll gather some more sample values so we can findout whether or not those numbers are the same for all boards.
- Fix onboard VGA.
Anything I forgot?
Uwe.