The process of initializing ddr and other things on Cortex-A9

Good afternoon!

I work with Cortex-A9 and try to load the primary bootloader through the JTAG ARM-USB-TINY-H. For download, I need to know the sequence of entries in the registers to initialize the ddr, pll,uart. Where can I find the source to see all this?