Nishanth Menon | bf9c61a | 2023-08-25 13:02:54 -0500 | [diff] [blame] | 1 | #include <env/ti/ti_common.env> |
Simon Glass | 5e541a0 | 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 | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 5 | |
| 6 | #if CONFIG_CMD_REMOTEPROC |
Simon Glass | 5e541a0 | 2023-07-30 21:01:45 -0600 | [diff] [blame] | 7 | #include <env/ti/k3_rproc.env> |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 8 | #endif |
| 9 | |
Andrew Davis | d8ea68d | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 10 | default_device_tree=ti/k3-j721e-common-proc-board.dtb |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 11 | findfdt= |
| 12 | setenv name_fdt ${default_device_tree}; |
| 13 | if test $board_name = j721e; then |
Andrew Davis | d8ea68d | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 14 | setenv name_fdt ti/k3-j721e-common-proc-board.dtb; fi; |
Neha Malcom Francis | 77df85c | 2023-04-14 16:33:52 +0530 | [diff] [blame] | 15 | if test $board_name = j7200; then |
Andrew Davis | d8ea68d | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 16 | setenv name_fdt ti/k3-j7200-common-proc-board.dtb; fi; |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 17 | if test $board_name = j721e-eaik || test $board_name = j721e-sk; then |
Andrew Davis | d8ea68d | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 18 | setenv name_fdt ti/k3-j721e-sk.dtb; fi; |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 19 | setenv fdtfile ${name_fdt} |
| 20 | name_kern=Image |
| 21 | console=ttyS2,115200n8 |
| 22 | args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 |
| 23 | ${mtdparts} |
| 24 | run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} |
| 25 | |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 26 | #if CONFIG_TARGET_J721E_R5_EVM |
| 27 | addr_mcur5f0_0load=0x89000000 |
| 28 | name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw |
| 29 | #elif CONFIG_TARGET_J7200_R5_EVM |
| 30 | addr_mcur5f0_0load=0x89000000 |
| 31 | name_mcur5f0_0fw=/lib/firmware/j7200-mcu-r5f0_0-fw |
| 32 | #endif |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 33 | |
Nishanth Menon | 437765b | 2023-11-04 02:21:42 -0500 | [diff] [blame] | 34 | boot_targets=mmc1 mmc0 usb pxe dhcp |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 35 | boot=mmc |
| 36 | mmcdev=1 |
| 37 | bootpart=1:2 |
| 38 | bootdir=/boot |
| 39 | rd_spec=- |
Neha Malcom Francis | fce062d | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 40 | |
| 41 | #if CONFIG_TARGET_J7200_A72_EVM |
| 42 | do_main_cpsw0_qsgmii_phyinit=1 |
| 43 | init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17; |
| 44 | gpio clear gpio@22_16 |
| 45 | main_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 |
| 50 | init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17; |
| 51 | gpio clear gpio@22_16 |
| 52 | main_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 |
| 62 | 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 |
| 63 | #endif |
| 64 | |
| 65 | #if CONFIG_TARGET_J7200_A72_EVM |
| 66 | rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw |
| 67 | #endif |