Skip to content

Commit d78a7f8

Browse files
biwenliJagdish Gediya
authored and
Jagdish Gediya
committed
configs: ls2080aqds: support distro boot
Add support of distro boot for ls2080aqds Signed-off-by: Biwen Li <[email protected]>
1 parent 8c65af7 commit d78a7f8

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

include/configs/ls2080aqds.h

+31-2
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,30 @@ unsigned long get_board_ddr_clk(void);
399399
"kernelheader_size=0x40000\0" \
400400
"BOARD=ls2088aqds\0" \
401401
"mcmemsize=0x70000000 \0" \
402+
"scriptaddr=0x80000000\0" \
403+
"scripthdraddr=0x80080000\0" \
402404
IFC_MC_INIT_CMD \
405+
BOOTENV \
406+
"boot_scripts=ls2088aqds_boot.scr\0" \
407+
"boot_script_hdr=hdr_ls2088aqds_bs.out\0" \
408+
"scan_dev_for_boot_part=" \
409+
"part list ${devtype} ${devnum} devplist; " \
410+
"env exists devplist || setenv devplist 1; " \
411+
"for distro_bootpart in ${devplist}; do " \
412+
"if fstype ${devtype} " \
413+
"${devnum}:${distro_bootpart} " \
414+
"bootfstype; then " \
415+
"run scan_dev_for_boot; " \
416+
"fi; " \
417+
"done\0" \
418+
"boot_a_script=" \
419+
"load ${devtype} ${devnum}:${distro_bootpart} " \
420+
"${scriptaddr} ${prefix}${script}; " \
421+
"env exists secureboot && load ${devtype} " \
422+
"${devnum}:${distro_bootpart} " \
423+
"${scripthdraddr} ${prefix}${boot_script_hdr} " \
424+
"&& esbc_validate ${scripthdraddr};" \
425+
"source ${scriptaddr}\0" \
403426
"nor_bootcmd=echo Trying load from nor..;" \
404427
"cp.b $kernel_addr $load_addr " \
405428
"$kernel_size ; env exists secureboot && " \
@@ -445,21 +468,27 @@ unsigned long get_board_ddr_clk(void);
445468
#endif /* CONFIG_SECURE_BOOT */
446469

447470
#ifdef CONFIG_TFABOOT
471+
#define BOOT_TARGET_DEVICES(func) \
472+
func(USB, usb, 0) \
473+
func(MMC, mmc, 0) \
474+
func(SCSI, scsi, 0) \
475+
func(DHCP, dhcp, na)
476+
#include <config_distro_bootcmd.h>
448477
#define SD_BOOTCOMMAND \
449478
"env exists mcinitcmd && env exists secureboot "\
450479
"&& mmcinfo && mmc read $load_addr 0x3600 0x800 " \
451480
"&& esbc_validate $load_addr; " \
452481
"env exists mcinitcmd && run mcinitcmd " \
453482
"&& mmc read 0x80d00000 0x6800 0x800 " \
454483
"&& fsl_mc lazyapply dpl 0x80d00000; " \
455-
"run sd_bootcmd; " \
484+
"run distro_bootcmd;run sd_bootcmd; " \
456485
"env exists secureboot && esbc_halt;"
457486

458487
#define IFC_NOR_BOOTCOMMAND \
459488
"env exists mcinitcmd && env exists secureboot "\
460489
"&& esbc_validate 0x5806C0000; env exists mcinitcmd "\
461490
"&& fsl_mc lazyapply dpl 0x580d00000;" \
462-
"run nor_bootcmd; " \
491+
"run distro_bootcmd;run nor_bootcmd; " \
463492
"env exists secureboot && esbc_halt;"
464493
#endif
465494

0 commit comments

Comments
 (0)