With a modicum of effort we might be able to disassemble, study, and learn what that ddr_init
is doing. Shouldn’t be too hard, because DDR clock rates are typically round decimal numbers like 400MHz, 600MHz, etc. Getting the data sheet from the DRAM chips on board would also give clues, perhaps even sample code from vendor’s Application Notes.