blob: 38bfd7d496340707dd8734806fbd03019df1d272 [file] [log] [blame]
Nishanth Menonefee0702023-08-25 13:02:54 -05001#include <env/ti/ti_common.env>
Simon Glassc4840952023-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 Francisb912d4f2023-03-15 10:57:45 +05305
6#if CONFIG_CMD_REMOTEPROC
Simon Glassc4840952023-07-30 21:01:45 -06007#include <env/ti/k3_rproc.env>
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +05308#endif
9
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053010name_kern=Image
11console=ttyS2,115200n8
12args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000
13 ${mtdparts}
14run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
15
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053016#if CONFIG_TARGET_J721E_R5_EVM
17addr_mcur5f0_0load=0x89000000
18name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw
19#elif CONFIG_TARGET_J7200_R5_EVM
20addr_mcur5f0_0load=0x89000000
21name_mcur5f0_0fw=/lib/firmware/j7200-mcu-r5f0_0-fw
22#endif
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053023
Nishanth Menon5b3238c2023-11-04 02:21:42 -050024boot_targets=mmc1 mmc0 usb pxe dhcp
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053025boot=mmc
26mmcdev=1
27bootpart=1:2
28bootdir=/boot
29rd_spec=-
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053030
31#if CONFIG_TARGET_J7200_A72_EVM
32do_main_cpsw0_qsgmii_phyinit=1
33init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
34 gpio clear gpio@22_16
35main_cpsw0_qsgmii_phyinit=
36 if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
37 run init_main_cpsw0_qsgmii_phy;
38 fi;
39#elif CONFIG_TARGET_J721E_A72_EVM
40init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
41 gpio clear gpio@22_16
42main_cpsw0_qsgmii_phyinit=
43 if test $board_name = J721EX-PM1-SOM || test $board_name = J721EX-PM2-SOM || test $board_name = j721e; then
44 do_main_cpsw0_qsgmii_phyinit=1; else
45 do_main_cpsw0_qsgmii_phyinit=0; fi;
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#endif
50
51#if CONFIG_TARGET_J721E_A72_EVM
52rproc_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
53#endif
54
55#if CONFIG_TARGET_J7200_A72_EVM
56rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw
57#endif