add DDR calibration routine to dram_init().

Note that you *must* have DEBUG on at the moment for it to work
due to a timing quirk in the calibration routine.