SDRAM ctrl bug fixes and cleanups.