Hi igorpadykov
thank you for your reply,
i think i am not able to explain you my case properly,
i know u-boot will not fit in internal OCRAM but flow of u-boot code execution is it will start with start.S and it will call list of functions defined in init_sequence_f[] which i copied from u-boot source code and attached here.
i have few questions please answer them
in my attached file please look at these lines,
22 board_early_init_f,
59 init_baud_rate, /* initialze baudrate settings */
60 serial_init, /* serial communications setup */
61 console_init_f, /* stage 1 init of console */
80 print_cpuinfo, /* display cpu info (and speed) */
101 dram_init, /* configure available RAM banks */
118 INIT_FUNC_WATCHDOG_RESET
119 /*
120 * Now that we have DRAM mapped and working, we can
121 * relocate the code and continue running from DRAM.
122 *
123 * Reserve memory at end of RAM for (top down in that order):
124 * - area that won't get touched by U-Boot and Linux (optional)
125 * - kernel log buffer
126 * - protected RAM
127 * - LCD framebuffer
128 * - monitor code
129 * - board info struct
130 */
131 setup_dest_addr,
so,
board_early_init_f is defined in our board/freescale/mx7dsabresd/mx7dsabresd.c file where we are initializing uart pad,
uart pads are initialized in
22 board_early_init_f,
and other uart settings are done in
59 init_baud_rate, /* initialze baudrate settings */
60 serial_init, /* serial communications setup */
61 console_init_f, /* stage 1 init of console */
and cpu info are printed from
80 print_cpuinfo, /* display cpu info (and speed) */
then only DDR RAM is configured
101 dram_init, /* configure available RAM banks */
and after some other function calls finally we are relocating code execution in DDR RAM
119 /*
120 * Now that we have DRAM mapped and working, we can
121 * relocate the code and continue running from DRAM.
122 *
123 * Reserve memory at end of RAM for (top down in that order):
124 * - area that won't get touched by U-Boot and Linux (optional)
125 * - kernel log buffer
126 * - protected RAM
127 * - LCD framebuffer
128 * - monitor code
129 * - board info struct
130 */