blob: 8cc8232fc131638c04f7658f39ac836402e7498b [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
Andrew Davis5e1f4362023-07-14 11:22:30 +053010default_device_tree=ti/k3-j721e-common-proc-board.dtb
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053011findfdt=
12 setenv name_fdt ${default_device_tree};
13 if test $board_name = j721e; then
Andrew Davis5e1f4362023-07-14 11:22:30 +053014 setenv name_fdt ti/k3-j721e-common-proc-board.dtb; fi;
Neha Malcom Francis3efb17a2023-04-14 16:33:52 +053015 if test $board_name = j7200; then
Andrew Davis5e1f4362023-07-14 11:22:30 +053016 setenv name_fdt ti/k3-j7200-common-proc-board.dtb; fi;
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053017 if test $board_name = j721e-eaik || test $board_name = j721e-sk; then
Andrew Davis5e1f4362023-07-14 11:22:30 +053018 setenv name_fdt ti/k3-j721e-sk.dtb; fi;
Neha Malcom Francisb912d4f2023-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 Francisb912d4f2023-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 Francisb912d4f2023-03-15 10:57:45 +053033
34boot=mmc
35mmcdev=1
36bootpart=1:2
37bootdir=/boot
38rd_spec=-
Neha Malcom Francisb912d4f2023-03-15 10:57:45 +053039
40#if CONFIG_TARGET_J7200_A72_EVM
41do_main_cpsw0_qsgmii_phyinit=1
42init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
43 gpio clear gpio@22_16
44main_cpsw0_qsgmii_phyinit=
45 if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
46 run init_main_cpsw0_qsgmii_phy;
47 fi;
48#elif CONFIG_TARGET_J721E_A72_EVM
49init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;
50 gpio clear gpio@22_16
51main_cpsw0_qsgmii_phyinit=
52 if test $board_name = J721EX-PM1-SOM || test $board_name = J721EX-PM2-SOM || test $board_name = j721e; then
53 do_main_cpsw0_qsgmii_phyinit=1; else
54 do_main_cpsw0_qsgmii_phyinit=0; fi;
55 if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
56 run init_main_cpsw0_qsgmii_phy; \
57 fi;
58#endif
59
60#if CONFIG_TARGET_J721E_A72_EVM
61rproc_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
62#endif
63
64#if CONFIG_TARGET_J7200_A72_EVM
65rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw
66#endif