blob: cb27bf5e2b24d78a710e616ed2e64fe61744ae3f [file] [log] [blame]
Nishanth Menonbf9c61a2023-08-25 13:02:54 -05001#include <env/ti/ti_common.env>
Simon Glass5e541a02023-07-30 21:01:45 -06002#include <env/ti/mmc.env>
3#include <env/ti/ufs.env>
4#include <env/ti/k3_dfu.env>
Neha Malcom Francisfce062d2023-03-15 10:57:45 +05305
6#if CONFIG_CMD_REMOTEPROC
Simon Glass5e541a02023-07-30 21:01:45 -06007#include <env/ti/k3_rproc.env>
Neha Malcom Francisfce062d2023-03-15 10:57:45 +05308#endif
9
Andrew Davisd8ea68d2023-07-14 11:22:30 +053010default_device_tree=ti/k3-j721e-common-proc-board.dtb
Neha Malcom Francisfce062d2023-03-15 10:57:45 +053011findfdt=
12 setenv name_fdt ${default_device_tree};
13 if test $board_name = j721e; then
Andrew Davisd8ea68d2023-07-14 11:22:30 +053014 setenv name_fdt ti/k3-j721e-common-proc-board.dtb; fi;
Neha Malcom Francis77df85c2023-04-14 16:33:52 +053015 if test $board_name = j7200; then
Andrew Davisd8ea68d2023-07-14 11:22:30 +053016 setenv name_fdt ti/k3-j7200-common-proc-board.dtb; fi;
Neha Malcom Francisfce062d2023-03-15 10:57:45 +053017 if test $board_name = j721e-eaik || test $board_name = j721e-sk; then
Andrew Davisd8ea68d2023-07-14 11:22:30 +053018 setenv name_fdt ti/k3-j721e-sk.dtb; fi;
Neha Malcom Francisfce062d2023-03-15 10:57:45 +053019 setenv fdtfile ${name_fdt}
20name_kern=Image
21console=ttyS2,115200n8
22args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000
23 ${mtdparts}
24run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
25
Neha Malcom Francisfce062d2023-03-15 10:57:45 +053026#if CONFIG_TARGET_J721E_R5_EVM
27addr_mcur5f0_0load=0x89000000
28name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw
29#elif CONFIG_TARGET_J7200_R5_EVM
30addr_mcur5f0_0load=0x89000000
31name_mcur5f0_0fw=/lib/firmware/j7200-mcu-r5f0_0-fw
32#endif
Neha Malcom Francisfce062d2023-03-15 10:57:45 +053033
Nishanth Menon437765b2023-11-04 02:21:42 -050034boot_targets=mmc1 mmc0 usb pxe dhcp
Neha Malcom Francisfce062d2023-03-15 10:57:45 +053035boot=mmc
36mmcdev=1
37bootpart=1:2
38bootdir=/boot
39rd_spec=-
Neha Malcom Francisfce062d2023-03-15 10:57:45 +053040
41#if CONFIG_TARGET_J7200_A72_EVM
42do_main_cpsw0_qsgmii_phyinit=1
43init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
44 gpio clear gpio@22_16
45main_cpsw0_qsgmii_phyinit=
46 if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
47 run init_main_cpsw0_qsgmii_phy;
48 fi;
49#elif CONFIG_TARGET_J721E_A72_EVM
50init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
51 gpio clear gpio@22_16
52main_cpsw0_qsgmii_phyinit=
53 if test $board_name = J721EX-PM1-SOM || test $board_name = J721EX-PM2-SOM || test $board_name = j721e; then
54 do_main_cpsw0_qsgmii_phyinit=1; else
55 do_main_cpsw0_qsgmii_phyinit=0; fi;
56 if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
57 run init_main_cpsw0_qsgmii_phy; \
58 fi;
59#endif
60
61#if CONFIG_TARGET_J721E_A72_EVM
62rproc_fw_binaries=2 /lib/firmware/j7-main-r5f0_0-fw 3 /lib/firmware/j7-main-r5f0_1-fw 4 /lib/firmware/j7-main-r5f1_0-fw 5 /lib/firmware/j7-main-r5f1_1-fw 6 /lib/firmware/j7-c66_0-fw 7 /lib/firmware/j7-c66_1-fw 8 /lib/firmware/j7-c71_0-fw
63#endif
64
65#if CONFIG_TARGET_J7200_A72_EVM
66rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw
67#endif