Hello,
I would like to understand the boot process of AM335x. There is ROM code which will be loading SPL and SPL will load the U-boot. I wanted to know the code work flow of SPL/U-boot. In SPL as per my understanding the code work flow is as follows
s_init() ---> board_init_f() -->board_init_r(). In this s_init() is calling from lowlevel_init.S and board_init_f() calling from crt0.S. But I am not able to find how the function board_init_r() is getting called up. In crt0.S, there is a section in which board_init_r() is calling but is under the macro #if !defined(CONFIG_SPL_BUILD). In our case CONFIG_SPL_BUILD is defined. So how it is getting called up ?
Whether this code work flow is same for U-boot also ?