xref: /OK3568_Linux_fs/buildroot/boot/mxs-bootlets/barebox_ivt.bd (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// STMP378x ROM command script to load and run U-Boot
2
3sources {
4	power_prep="./power_prep/power_prep";
5	sdram_prep="./boot_prep/boot_prep";
6	barebox="./barebox";
7}
8
9section (0) {
10
11	//----------------------------------------------------------
12	// Power Supply initialization
13	//----------------------------------------------------------
14
15	load power_prep;
16	load ivt (entry = power_prep:_start) > 0x8000;
17	hab call 0x8000;
18
19	//----------------------------------------------------------
20	// SDRAM initialization
21	//----------------------------------------------------------
22
23	load sdram_prep;
24        load ivt (entry = sdram_prep:_start) > 0x8000;
25        hab call 0x8000;
26	//----------------------------------------------------------
27	//  Load and call u_boot - ELF ARM image
28	//----------------------------------------------------------
29
30        load barebox;
31        load ivt (entry = barebox:start) > 0x8000;
32	hab call 0x8000;
33
34}
35