Nishanth Menon | efee070 | 2023-08-25 13:02:54 -0500 | [diff] [blame] | 1 | #include <env/ti/ti_common.env> |
Simon Glass | c484095 | 2023-07-30 21:01:45 -0600 | [diff] [blame] | 2 | #include <env/ti/mmc.env> |
| 3 | #include <env/ti/ufs.env> |
| 4 | #include <env/ti/k3_dfu.env> |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 5 | |
| 6 | #if CONFIG_CMD_REMOTEPROC |
Simon Glass | c484095 | 2023-07-30 21:01:45 -0600 | [diff] [blame] | 7 | #include <env/ti/k3_rproc.env> |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 8 | #endif |
| 9 | |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 10 | name_kern=Image |
| 11 | console=ttyS2,115200n8 |
| 12 | args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 |
| 13 | ${mtdparts} |
| 14 | run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} |
| 15 | |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 16 | #if CONFIG_TARGET_J721E_R5_EVM |
| 17 | addr_mcur5f0_0load=0x89000000 |
| 18 | name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw |
| 19 | #elif CONFIG_TARGET_J7200_R5_EVM |
| 20 | addr_mcur5f0_0load=0x89000000 |
| 21 | name_mcur5f0_0fw=/lib/firmware/j7200-mcu-r5f0_0-fw |
| 22 | #endif |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 23 | |
Nishanth Menon | 5b3238c | 2023-11-04 02:21:42 -0500 | [diff] [blame] | 24 | boot_targets=mmc1 mmc0 usb pxe dhcp |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 25 | boot=mmc |
| 26 | mmcdev=1 |
| 27 | bootpart=1:2 |
| 28 | bootdir=/boot |
| 29 | rd_spec=- |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 30 | |
| 31 | #if CONFIG_TARGET_J7200_A72_EVM |
| 32 | do_main_cpsw0_qsgmii_phyinit=1 |
| 33 | init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17; |
| 34 | gpio clear gpio@22_16 |
| 35 | main_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 |
| 40 | init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17; |
| 41 | gpio clear gpio@22_16 |
| 42 | main_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 |
| 52 | rproc_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 |
| 56 | rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw |
| 57 | #endif |