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 | |
Andrew Davis | 5e1f436 | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 10 | default_device_tree=ti/k3-j721e-common-proc-board.dtb |
Neha Malcom Francis | b912d4f | 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 | 5e1f436 | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 14 | setenv name_fdt ti/k3-j721e-common-proc-board.dtb; fi; |
Neha Malcom Francis | 3efb17a | 2023-04-14 16:33:52 +0530 | [diff] [blame] | 15 | if test $board_name = j7200; then |
Andrew Davis | 5e1f436 | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 16 | setenv name_fdt ti/k3-j7200-common-proc-board.dtb; fi; |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 17 | if test $board_name = j721e-eaik || test $board_name = j721e-sk; then |
Andrew Davis | 5e1f436 | 2023-07-14 11:22:30 +0530 | [diff] [blame] | 18 | setenv name_fdt ti/k3-j721e-sk.dtb; fi; |
Neha Malcom Francis | b912d4f | 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 | b912d4f | 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 | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 33 | |
| 34 | boot=mmc |
| 35 | mmcdev=1 |
| 36 | bootpart=1:2 |
| 37 | bootdir=/boot |
| 38 | rd_spec=- |
Neha Malcom Francis | b912d4f | 2023-03-15 10:57:45 +0530 | [diff] [blame] | 39 | |
| 40 | #if CONFIG_TARGET_J7200_A72_EVM |
| 41 | do_main_cpsw0_qsgmii_phyinit=1 |
| 42 | init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17; |
| 43 | gpio clear gpio@22_16 |
| 44 | main_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 |
| 49 | init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17; |
| 50 | gpio clear gpio@22_16 |
| 51 | main_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 |
| 61 | 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 |
| 62 | #endif |
| 63 | |
| 64 | #if CONFIG_TARGET_J7200_A72_EVM |
| 65 | rproc_fw_binaries=2 /lib/firmware/j7200-main-r5f0_0-fw 3 /lib/firmware/j7200-main-r5f0_1-fw |
| 66 | #endif |