Would be nice to add to the documentation of this function that it sends to both for the default case?  You shuld probably also put the SDRAM_BOTH_BANKS case into the switch, not just the default.