summaryrefslogtreecommitdiff
path: root/board/ti/am64x
AgeCommit message (Collapse)Author
2024-03-21board: ti: am6*x: evm: Fix up incorrect RAM size for AM62A and AM62PSanthosh Kumar K
The fixup_memory_node() does no change in AM64, AM62A and AM62P when ECC is not enabled. Instead, it causes an issue of fixing up the RAM size as 2GB instead of 4GB and 8GB for AM62A and AM62P because the fix up is done by the R5 SPL and R5 being a 32-bit processor, the gd->bd->bi_dram[bank].start and gd->bd->bi_dram[bank].size values are restricted to 32-bits. So, remove the fixup_memory_node() from spl_perform_fixups() in AM64, AM62A and AM62P's evm files. Fixes: 410888e38c7e ("board: ti: Pull redundant DDR functions to a common location and Fixup DDR size when ECC is enabled") Signed-off-by: Santhosh Kumar K <s-k6@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
2024-03-21board: ti: am64x: Set fw_storage_interface and fw_dev_part ENVsMD Danish Anwar
When ICSSG driver is enabled (CONFIG_TI_ICSSG_PRUETH=y) set fw_storage_interface and fw_dev_part env variables. These variables need be set appropriately in order to load differnet ICSSG firmwares needed for ICSSG driver. By default the storage interface is mmc and the partition is 1:2. User can modify this based on their needs. Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
2024-03-21board: ti: Pull redundant DDR functions to a common location and Fixup DDR ↵Santhosh Kumar K
size when ECC is enabled As there are few redundant functions in board/ti/*/evm.c files, pull them to a common location of access to reuse and include the common file to access the functions. Call k3-ddrss driver through fixup_ddr_driver_for_ecc() to fixup the device tree and resize the available amount of DDR, if ECC is enabled. Otherwise, fixup the device tree using the regular fdt_fixup_memory_banks(). Modify fixup_ddr_driver_for_ecc() to make the function agnostic to the number of DDR controllers present. Signed-off-by: Santhosh Kumar K <s-k6@ti.com> Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2024-03-21board: ti: am64: Support TMDS64EVMRoger Quadros
The TMDS64EVM [1] ships with AM64X SR2.0 HS-FS chip and a slightly different board name in the board information EEPROM header. Support this board. [1] https://www.ti.com/tool/TMDS64EVM Gets rid of below message at boot "Unidentified board claims AM64-EVM in eeprom header" Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
2023-11-24environment: ti: k3_dfu_combined.env: add dfu_alt_info_nandRoger Quadros
Copy this over from k3_dfu.env. Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-11-24environment: ti: am64x: Fix mtdids and mtdpartsRoger Quadros
mtdids and mtdparts defined in nand.env are not suitable for am64x-evm. Define its own here. We deliberately don't define spi.nor partitions here as it causes mtdparts and dfu to fail till user has done "sf probe" command. This is because NOR flash is not auto probed by u-boot. Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-11-24board: ti: am64: select NAND overlay if HSE card presentRoger Quadros
Since we are using overlay for A53 SPL and A53 u-boot the SPL must select the NAND overlay from the FIT image if HSE card is present. Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-10-18env: ti: am64x: set rproc_fw_binariesHari Nagalla
Set remote proc FW binaries for u-boot loading of remote cores. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2023-07-06board: ti: am64x: am64x.env: set fdtfile env variableKamlesh Gurudasani
Set fdtfile env variable, needed for fitImage booting. Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
2023-07-06board: ti: am64x: am64x.env: Switch to combined image dfu argsVignesh Raghavendra
AM64 support combined image flow with both first stage firmware having full SYSFW, hence needs a bigger space for tiboot3.bin, switch to combined image DFU args accordingly Fixes: d670b22bce5e ("include: configs: am64x_evm: Change to using .env") Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-07-06board: ti: am64x: Add HSE NAND card detection supportRoger Quadros
Add expansion card detection support. Add NAND card detection support. am64-sk EVM doesn't support daughtercards so let's restrict daughtercard probing to am64-evm. Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-07-05board: ti: am64x: Recognize AM64-HSEVMRoger Quadros
AM64-HSEVM is AM64-GPEVM with High Security Device. Gets rid of "Unidentified board claims AM64-HSEVM in eeprom header". Fixes NAND card detection on AM64-HSEVM. Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-07-05board: ti: yaml: Update YAML configsNeha Malcom Francis
Update sec-cfg.yaml as well as the YAML schema to the latest security configuration. Also update tifs-rm-cfg.yaml for J784S4 to the latest resource management configuration. Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-06-05env: ti: mmc.env: Move mmc related args to common placeVignesh Raghavendra
All K3 SoCs use same set of args to load kernel for MMC. So move this to common place to avoid duplication. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-05-26board: ti: rm-cfg: Modify rm-cfg.yamlNeha Malcom Francis
Modify rm-cfg.yaml to ensure it is latest and can boot to kernel. Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-05-25am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.imgNeha Malcom Francis
Support added for HS and GP boot binaries for AM64x. tiboot3.bin, tispl.bin and u-boot.img: For HS-SE devices tiboot3.bin_fs, tispl.bin and u-boot.img: For HS-FS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices Note that the bootflow followed by AM64x requires: tiboot3.bin: * R5 SPL * R5 SPL dtbs * sysfw * board-cfg * pm-cfg * sec-cfg * rm-cfg tispl.bin: * ATF * OPTEE * A53 SPL * A53 SPL dtbs u-boot.img: * A53 U-Boot * A53 U-Boot dtbs Signed-off-by: Neha Malcom Francis <n-francis@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-05-25am64x: yaml: Add board configs for AM64xNeha Malcom Francis
Added YAML configs for AM64xx Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-05-22environment: ti: Make get_fdt_mmc commonAndrew Davis
Since get_fdt_mmc is common, factor it out into mmc.env and remove it from each platform env file. Use it in mmcloados but keep loadfdt defined in case it is still used by some external uEnv.txt script. Signed-off-by: Andrew Davis <afd@ti.com>
2023-05-09environment: ti: Prefix ARM64 DTB names with directoryAndrew Davis
In Linux the ARM64 DTSs are stored in vendor directories to help organize the files and prevent naming collisions. The deployed DTBs will mirror this and so the vendor prefix should be added to the variable used to locate these files. Suggested-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Andrew Davis <afd@ti.com>
2023-04-12include: configs: am64x_evm: Change to using .envNikhil M Jain
Move to using .env file for setting up environment variables for am64x. Signed-off-by: Nikhil M Jain <n-jain1@ti.com> Reviewed-By: Devarsh Thakkar <devarsht@ti.com> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
2023-04-06board: ti: am64x: Add support for AM64B SKJudith Mendez
The AM64x SR2.0 SK board uses "AM64B-SKEVM" as the EEPROM identifier. This board is similar to the AM64x SKEVM except that it has a new PMIC that will be enabled in the future and consequently could use a different device tree file in the future. For now we treat the board same as an AM64x SK. Signed-off-by: Judith Mendez <jm@ti.com> Acked-by: Andrew Davis <afd@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-04-04board: ti: Kconfig: Correct invalid Kconfig syntaxNeha Malcom Francis
commit 54ff4eeb59dd7f1b4141cdfdc1126d85fb03751f upstream. Kconfig does not support using 'select' to select a 'choice'. A choice can be configured by either setting the choice symbol to 'y' in a configuration file or by setting a 'default' of the choice. In board/ti/*/Kconfig the SOC_K3_* choice is already set to 'y' in their corresponding configs/*_defconfig file. So remove selecting it. Signed-off-by: Neha Malcom Francis <n-francis@ti.com> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
2022-06-28spl: Move SPL_LDSCRIPT defaults to one placeTom Rini
We want to keep all of the default values for SPL_LDSCRIPT in the same place both for overall clarity as well as not polluting unrelated config files. Signed-off-by: Tom Rini <trini@konsulko.com>
2022-06-03board: ti: am64x: Update MAINTAINERSDave Gerlach
Move maintainership of TI AM64x boards to Vignesh. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2022-04-04board: ti: am64x: Account for DDR size fixups if ECC is enabledDave Gerlach
Call into k3-ddrss driver to fixup device tree and resize the available amount of DDR if ECC is enabled. A second fixup is required from A53 SPL to take the fixup as done from R5 SPL and apply it to DT passed to A53 U-boot, which in turn passes this to the OS. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2022-04-04board: ti: am64x: Use fdt functions for ram and bank initDave Gerlach
Use the appropriate fdtdec_setup_mem_size_base and fdtdec_setup_bank_size calls in dram_init and dram_bank_init to pull these values from DT, where they are already available, instead of hardcoding them. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2022-01-15board: ti: am64x: Init DRAM size in R5/A53 SPLVignesh Raghavendra
Call dram_init_banksize() from spl_board_init() otherwise TFTP download fails due to lmb_get_free_size() not able to find unreserved region due to lack of DRAM size info. Required to support Ethernet boot on AM64x. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2021-09-10board: ti: am64x: Add support for fixing dr_mode while booting from USBAswath Govindraju
Fix the dr_mode in the U-Boot device tree blob, by reading the mode field from the USB Boot Configuration fields. The dr_mode will only be fixed when booting from USB. Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
2021-09-09MAINTAINERS: Update ARM TI entryLokesh Vutla
Move TI maintainership to Tom. Updated with the following commands: find ./ -name MAINTAINERS | xargs sed -i s/"Lokesh Vutla <lokeshvutla@ti.com>"/"Tom Rini <trini@konsulko.com>"/g Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Nishanth Menon <nm@ti.com> Acked-by: Tom Rini <trini@konsulko.com>
2021-08-02global: Convert simple_strtoul() with hex to hextoul()Simon Glass
It is a pain to have to specify the value 16 in each call. Add a new hextoul() function and update the code to use it. Add a proper comment to simple_strtoul() while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
2021-06-09board: ti: am64x: Set the core voltage of USB PHY to 0.85VAswath Govindraju
Set the core voltage of USB PHY in AM64x to 0.85V in spl_board_init(). Signed-off-by: Aswath Govindraju <a-govindraju@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Link: https://lore.kernel.org/r/20210604163043.12811-5-a-govindraju@ti.com
2021-05-12board: ti: am64x: Parse MAC address from board EEPROMVignesh Raghavendra
Parse MAC addresses from EEPROM and set them in the env. This is needed to get MAC address for additional ethernet ports on the EVM. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2021-05-12configs: am64x_evm_a53: Enable support for reading eepromLokesh Vutla
Enable relevant configs for reading eeprom data and updating env variables. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2021-05-12board: ti: am64x: Add support for detecting multiple device treesLokesh Vutla
Update the board_fit_config_name_match() to choose the right dtb. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2021-05-12board: ti: am64x: Enable support for reading EEPROM in R5 SPLLokesh Vutla
Include the relevant configs to enable support for reading EEPROM in R5SPL. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2021-05-12board: ti: am64x: Add support for reading eeprom dataLokesh Vutla
I2C EEPROM data contains the board name and its revision. Add support for: - Reading EEPROM data and store a copy at end of SRAM - Updating env variable with relevant board info - Printing board info during boot. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2021-05-12arm: mach-k3: am642: Add support for triggering ddr init from SPLDave Gerlach
In SPL, DDR should be made available by the end of board_init_f() so that apis in board_init_r() can use ddr. Adding support for triggering DDR initialization from board_init_f(). Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2021-05-12configs: am64x_evm_a53: Add Initial supportDave Gerlach
Add initial A53 defconfig support for AM64x SoCs. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2021-05-12configs: am64x_evm_r5: Add Initial supportDave Gerlach
Add initial R5 defconfig support for AM64x SoCs. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2021-05-12board: ti: am64x: Add board support for am64x evmDave Gerlach
Add board specific initialization for am64x based boards. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>