summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2023-02-22misc: uclass: Fix compile errorFrancesco Dolcini
Add #include <dm/ofnode.h> to fix the following compiler error +In file included from drivers/pinctrl/nxp/pinctrl-scu.c:11: +include/misc.h:87:25: error: unknown type name 'ofnode' + 87 | int misc_init_by_ofnode(ofnode node); + | ^~~~~~ Upstream-Status: Inappropriate [other] The fixed commit is present only on the downstream TI branch, therefore there is nothing to send to upstream denx repository. We might think about sending this patch to TI in the future. Fixes: 9d9fd0a3b18f ("misc: uclass: Introduce misc_init_by_ofnode") Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2023-02-21board: toradex: add verdin am62 supportMarcel Ziswiler
This adds initial support for the Toradex Verdin AM62 Quad 1GB WB IT V1.0A module. They are strapped to boot from their on-module eMMC. U-Boot supports booting from the on-module eMMC, or, via separate verdin-am62_r5_usbdfu_defconfig from USB DFU based recovery mode. Upstream-Status: Pending Initial U-Boot to be used for bring-up and validation of the V1.0 design, we'll decide on the step forward to mainline this once the bring-up and validation will be done. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2023-02-21board: toradex: drop colibri pxa270 supportMarcel Ziswiler
The Colibri PXA270 has been end-of-life since quite a while and would require more and more maintenance (e.g. DM conversions). Upstream-Status: Backport [fc102c87c11dfd52039326534ff831d3edd8340d] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2023-02-21toradex: apalis-imx8x: drop support for apalis imx8xDenys Drozdov
Drop Apalis iMX8X platform as it never left sample state and is no longer supported. Upstream-Status: Backport [47bcc0d056aa243a31d2a1edb44bdcd155f5335b] Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2023-01-17include: configs: Update env for selecting right dtbSinthu Raja
Now that single defconfig shall be used for booting J721S2 EVM and AM68 SK, the default device tree will not work for selecting dtb for kernel. Update the findfdt env to select right dtb based on board_name env variable. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
2023-01-11include: configs: am62ax_evm.h: Add DFU argumentsBryan Brattlof
Add DFU arguments to environment settings Signed-off-by: Bryan Brattlof <bb@ti.com> Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-01-11configs: am62ax_evm_a53_defconfig: Enable eMMC related configsVignesh Raghavendra
Enable eMMC related configs to support booting from eMMC Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-01-11include: am62x_evm: Fix u-boot find_fdt function to identify skevmNishanth Menon
Don't depend on default_device_tree variable as the only scheme to detect the board name. Signed-off-by: Nishanth Menon <nm@ti.com>
2023-01-05include: configs: am62ax_evm.h: Add remote proc boot supportHari Nagalla
Enable remote proc boot support for MCU R5F core and main domain C7x DSP cores from u-boot. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2022-12-16include: configs: am62ax_evm: Enable FIT_ARGS for am62ax devicesJudith Mendez
Enable FIT_ARGS, which will export default value for variables needed to load fitImage at u-boot prompt. Signed-off-by: Judith Mendez <jm@ti.com>
2022-12-16include: configs: am62ax_evm: fix linux boot image loadingJudith Mendez
Increase SYS_BOOTM_LEN to 64MB for fixing error when booting linux kernel image. Signed-off-by: Judith Mendez <jm@ti.com>
2022-12-01configs: introduce configs for the am62aBryan Brattlof
Introduce the minimum configs, only SD-MMC and UART boot related settings, to serve as a good starting point for the am62a as we add more functionality. Signed-off-by: Bryan Brattlof <bb@ti.com>
2022-12-01arm: mach-k3: am62a: introduce auto-generated SoC dataBryan Brattlof
Introduce the auto-generated clock tree and power domain data needed to attach the am62a into the power-domain and clock frameworks of uboot Signed-off-by: Bryan Brattlof <bb@ti.com>
2022-12-01arm: dts: introduce am62a7 dtbs from linux kernelBryan Brattlof
Introduce the basic am62a7 SoC dtbs from the linux kernel along with the new am62a specific pinmux definition that we will use to generate the dtbs for the u-boot-spl and u-boot binaries Co-developed-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Bryan Brattlof <bb@ti.com>
2022-12-01include: configs: am62x: add init_${boot} into distrocmdBryan Brattlof
When removing the bootcmd from the defconfigs the 'run init_${boot}' was left out leaving us without a rootfs to boot into. Add 'init_${boot}' back into the distro_bootcmd Fixes: 5079ccd243fb3 ("configs: am62x_evm_a53: remove bootcmd from defconfig") Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Bryan Brattlof <bb@ti.com>
2022-11-29configs: am62x_evm: Add dtbo supportGuillaume La Roque
- Add support of device tree overlay for Android to support CSI camera, LVDS screen, HDMI Audio output. - Support for multiple dtbo indices. This assumes that the `dtbo_index` env variable is a space-separated list of indices. Example: => env set dtbo_index "0 2" Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-11-29configs: am62: include android command when android boot image enabledGuillaume La Roque
Include Android stuff only if android boot image support was enabled to not have always all bootcmd define in u-boot env and specially in r5 spl u-boot. Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-11-24configs: am62x_evm_a53: remove bootcmd from defconfigGuillaume La Roque
After commit to enable HS mode android boot was broken. So remove bootcmd from defconfig to use distrocmd from config file Fixes: 767a83a972ce ("configs: am62x: Enable config option for am62x HS EVM") Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-11-24include: configs: am62x_evm: add a persist partitionSafae Ouajih
Add a persist partition in android partition table. This partition is needed for keymaster/gatekeeper support with OPTEE-OS. Signed-off-by: Safae Ouajih <souajih@baylibre.com> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-11-21mtd: spi-nor-core: Add fixups for Cypress s25hl-t/s25hs-tDhruva Gole
Commit 1c3dd193b5ba76da9d5b2b422d04605321a91c94 upstream. The nor->ready() and spansion_sr_ready() introduced earlier in this series are used for multi-die package parts. The nor->quad_enable() sets the volatile QE bit on each die. The nor->erase() is hooked if the device is not configured to uniform sectors, assuming it has 32 x 4KB sectors overlaid on bottom address. Other configurations, top and split, are not supported at this point. Will submit additional patches to support it as needed. The post_bfpt/sfdp() fixes the params wrongly advertised in SFDP. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Signed-off-by: Dhruva Gole <d-gole@ti.com>
2022-11-21mtd: spi-nor-core: Add Cypress manufacturer ID in set_4byteDhruva Gole
Commit 72151ad10f8dcc3c86084259b227a7d70cc79473 upstream. Cypress chips support SPINOR_OP_EN4B(B7h) to enable 4-byte addressing mode. Cypress chips support B8h to disable 4-byte addressing mode instead of SPINOR_OP_EX4B(E9h). This patch defines new opcode and updates set_4byte() to support enable/disable 4-byte addressing mode for Cypress chips. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Signed-off-by: Dhruva Gole <d-gole@ti.com>
2022-11-21mtd: spi-nor-core: Read status by Read Any RegisterDhruva Gole
Commit d2d79895da1b80275fe0ffd84d697519c73c924d upstream. The spansion_sr_ready() reads status register 1 by Read Any Register commnad. This function is called from Flash specific hook with die address and dummy cycles to support multi-die package parts from Spansion/Cypress. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Signed-off-by: Dhruva Gole <d-gole@ti.com>
2022-11-21mtd: spi-nor-core: Add the ->ready() hookDhruva Gole
Commit 24b1e2c690fb953a3a981a282e37de5a0f1a98b1 upstream. For dual/quad die package devices from Spansion/Cypress, the device's status needs to be checked by reading status registers in all dies, by using Read Any Register command. To support this, a Flash specific hook that can overwrite the legacy status check is needed. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Signed-off-by: Dhruva Gole <d-gole@ti.com>
2022-11-21mtd: spi-nor-core: Add support for volatile QE bitDhruva Gole
Commit a4aa9b7522dc67745795c1e2a76115a616da00ea upstream. Some of Spansion/Cypress chips support volatile version of configuration registers and it is recommended to update volatile registers in the field application due to a risk of the non-volatile registers corruption by power interrupt. This patch adds a function to set Quad Enable bit in CFR1 volatile. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Signed-off-by: Dhruva Gole <d-gole@ti.com>
2022-11-21mtd: spi-nor-core: Add support for Read/Write Any RegisterDhruva Gole
Commit 2d20f344858265722452d06fe7a5f86ca736b86d upstream. Some of Spansion/Cypress chips support Read/Write Any Register commands. These commands are mainly used to write volatile registers and access to the registers in second and subsequent die for multi-die package parts. The Read Any Register instruction (65h) is followed by register address and dummy cycles, then the selected register byte is returned. The Write Any Register instruction (71h) is followed by register address and register byte to write. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Signed-off-by: Dhruva Gole <d-gole@ti.com>
2022-11-21mtd: spi-nor: Add Cypress manufacturer IDDhruva Gole
commit c32bfe0cd9bb0d72cbce990b8676367c6236a621 upstream. This patch adds Cypress manufacturer ID (34h) definition. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Signed-off-by: Dhruva Gole <d-gole@ti.com>
2022-11-18configs: am62x: add android support for AM62-LP-SKGuillaume La Roque
Check board_name value to select device tree in dtb.img for AM62-LP-SK board. Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-11-08include: configs: am62x_evm: Move BSS and Stack sectionKamlesh Gurudasani
Move BSS section just after the 8kb space reserved for ROM info to keep map compact and save space. Move stack, global data and heap section from OCSRAM to HSMSRAM. OCSRAM is being firewalled by ROM, unless TIFS opens up concerned firewall, r5 can't access it. r5 was trying to access the OCSRAM before tifs was opening it, hence a firewall exception was occurring. Delaying the access to OCSRAM was solving the issue, but was increasing boot up time, so moving stack and heap to HSMSRAM In GP devices, we never faced this issue because nothing is firewalled. Reduce size of BSS section to fit the stack and heap section in HSM SRAM Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
2022-09-29include: configs: am62x_evm: Enable FIT_ARGS for am62x devicesKamlesh Gurudasani
Enable FIT_ARGS, which will export default value for variables needed to load fitImage at u-boot prompt. Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
2022-09-22configs: change default firmware images nameManorit Chawdhry
Kernel uses the current firmware image names which would break the loading of remoteproc firmware images in Kernel if replaced with signed images. Changes default firmware image names to keep compatibility with kernel remoteproc subsystem. Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com> Acked-by: Andrew Davis <afd@ti.com>
2022-09-12dma: Transfer dma_ops should use DMA address typesAndrew Davis
DMA operations should function on DMA addresses, not virtual addresses. Although these are usually the same in U-Boot, it is more correct to be explicit with our types here. Signed-off-by: Andrew Davis <afd@ti.com>
2022-09-08dt-bindings: pinctrl: k3: Introduce pinmux definitions for J784S4Hari Nagalla
Add pinctrl macros for J784S4 SoC. These macro definitions are similar to that of J721E, but adding new definitions to avoid any naming confusions in the soc dts files. checkpatch insists the following error exists: ERROR: Macros with complex values should be enclosed in parentheses However, we do not need parentheses enclosing the values for this macro as we do intend it to generate two separate values as has been done for other similar platforms. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2022-09-08dt-bindings: ti-serdes-mux: Add defines for J784S4 SoCHari Nagalla
There are 4 instances of SERDES modules, with each instance supporting 4 lanes. Signed-off-by: Hari Nagalla <hnagalla@ti.com> Signed-off-by: Matthew Ranostay <mranostay@ti.com>
2022-09-08power: domain: ti: Add support for J784S4 SoCHari Nagalla
Add support for J784S4 SoC. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2022-09-08clk: clk-k3: Add Support for J784S4 SoCHari Nagalla
Add support for J784S4 SoC. Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2022-09-08arm: K3: Add basic support for J784S4 SoC definitionHari Nagalla
Add basic support for J784S4 SoC definition Signed-off-by: Hari Nagalla <hnagalla@ti.com> Signed-off-by: Apurva Nandan <a-nandan@ti.com> Signed-off-by: Bryan Bratloff <bb@ti.com> Signed-off-by: Nishant Menon <nm@ti.com>
2022-08-11power: add driver for the TPS65219 PMICNeil Armstrong
The TPS65219 I2S PMIC features 3 Buck converters and 4 linear regulators, 2 GPOs, 1 GPIO, and 3 multi-function-pin. This adds the PMIC driver, loading the regulator sub-nodes. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2022-07-06configs: am6*_evm/j721e_evm: Fix earlycon uart MMIO addressVaishnav Achath
The earlycon UART address was unintentionally modifed to uart8 from uart0 by Commit be0386826c62 ("configs: am6*_evm/j721e_evm: prevent optargs from getting overwritten") this change caused boot to break in multiple platforms, only J7AEP is configured to have the earlycon on uart8. This commit reverts the earlycon MMIO address for AM62x, AM64x, AM65x and J721E to original expected value 0x02800000 (main_uart0), this fixes the broken boot for the above platforms. Fixes: be0386826c62 ("configs: am6*_evm/j721e_evm: prevent optargs from getting overwritten") Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2022-06-27cmd: pxe: add support for FDT overlaysNeil Armstrong
Upstream commit 69076dff2284ed099cc0583e5e64bd8012d1ab5c This adds support for specifying FDT overlays in an extlinux/pxelinux configuration file. Without this, there is no simple way to apply overlays when the kernel and fdt is loaded by the pxe command. This change adds the 'fdtoverlays' keyword for a label, supporting multiple overlay files to be applied on top of the fdt specified in the 'fdt' or 'devicetree' keyword. Example: label linux kernel /Image fdt /soc-board.dtb fdtoverlays /soc-board-function.dtbo append console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait This code makes usage of a new variable called fdtoverlay_addr_r used to load the overlay files without overwritting anything important. Cc: Jernej Å krabec <jernej.skrabec@siol.net> Cc: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://lists.denx.de/pipermail/u-boot/2019-May/368388.html [robertcnelson@gmail.com: Backport to TI u-boot] Signed-off-by: Robert Nelson <robertcnelson@gmail.com> Signed-off-by: Nishanth Menon <nm@ti.com>
2022-06-27configs: am6*_evm/j721e_evm: prevent optargs from getting overwrittenMatt Ranostay
Fix issue that saved optargs was getting overwritten when 'run args_all' was called. This was a issue in all K3 based configurations and is resolved by prepending the original optargs when set with args_all. Signed-off-by: Matt Ranostay <mranostay@ti.com>
2022-06-09environment: ti: k3_dfu: Fix the combined emmc dfu env variableAswath Govindraju
Fix the dfu environment variable corresponding to flashing eMMC in devices that use combined boot flow. Fixes: 391124053315 ("configs: j721e_evm.h: Fix the dfu environment variables for eMMC and OSPI") Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
2022-06-02common: spl: spl_spi: add support for dynamic override of sf busVaishnav Achath
Currently the SPI flash to load from is defined through the compile time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this prevents the loading of binaries from different SPI flash using the same build.E.g. supporting QSPI flash boot and OSPI flash boot on J721E platform is not possible due to this limitation. This commit adds lookup functions spl_spi_boot_bus() and spl_spi_boot_cs for identifying the flash device based on the selected boot device, when not overridden the lookup functions are weakly defined in common/spl/spl_spi.c. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com> Reviewed-by: Heiko Schocher <hs@denx.de>
2022-06-02ram: k3-ddrss: Introduce ECC Functionality for full memory spaceDave Gerlach
commit f861ce90ca9538fefd76dbd1985f0c69f53e3b77 upstream Introduce ECC Functionality for full memory space as implemented in the DDRSS. The following is done to accomplish this: * Introduce a memory region "ss" to allow dt to provide DDRSS region, which is not the same as "ctl" which is the controller region. * Introduce a "ti,ecc-enable" flag which allows a memorycontroller instance to enable ecc. * Introduce functionality to properly program the DDRSS registers to enable ECC for the full DDR memory space if enabled with above flag. * Expose a k3_ddrss_ddr_fdt_fixup call to allow fixup of fdt blob to account from DDR memory that must be reserved for ECC operation. Signed-off-by: Dave Gerlach <d-gerlach@ti.com> [g-vlaev@ti.com: backport from upstream] Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
2022-06-02env: ti: boot: fix AM5 IDK, init idk_lcdKevin Hilman
The variable $idk_lcd is used in several "test" commands to select which LCD pannel to select on AM57xx IDK boards, but this variable is not set in the default environment. It turns out that using u-boot `test` command with an unset varible will always return true, e.g. => env print dummy_var ## Error: "dummy_var" not defined => if test $dummy_var = whatever; then echo true; else echo false; fi true Therefore, in a default env (with no $idk_lcd set) the findfdt_iterX checks that check $idk_lcd will *all* return true, which means the last one wins. Fix this by ensuring that $idk_lcd has a default value. Tested on am571x-idk. Fixes: LCPD-26605 Fixes: 7a7db34da08c ("board: ti: am57xx-idk: Choose the right DTB based on detected LCD Panel") Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2022-06-02mtd: spi-nor: add non-uniform sector erase support for s28hs512tVaishnav Achath
Currently only uniform sector mode erase is supported for s28hs512t and thus non-volatile configuration register(CFR3N) is being modified on each probe to set the flash in uniform sector mode, this is not recommended and is fixed upstream. This commit adds the changes on top of the backported upstream changes to support non-uniform sector erase for s28hs512t to enable non-uniform sector erase depending on the value of configuration register bit CFR3V[3]. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2022-06-02configs: j721e_evm.h: Define CONFIG_SYS_FLASH_BASEVaishnav Achath
Define CONFIG_SYS_FLASH_BASE to indicate start address of Flash memory Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2022-05-12include: configs: am62x_evm: add android bootflow supportGuillaume La Roque
Add android boot flow support for AM62X board based on misc partition to detect reboot reason and boot.img version 2 from android build system. Move on distrocmd and keep both boot (linux and android). To move on android boot flow just launch 'set_android_boot' command Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-05-12cmd: ab_select: Don't count boot-to-recovery as a boot attempt.David Anderson
The slot rollback system is intended for normal boot failures after an OTA, and therefore, we should not attempt to change slots based on a failure to boot to recovery (or any other non-normal boot sequence). Signed-off-by: Ram Muthiah <rammuthiah@google.com> Link: https://android-review.googlesource.com/c/platform/external/u-boot/+/1446441 Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-05-12include: configs: am62x_evm: fix android boot image loadingGuillaume La Roque
Increase SYS_BOOTM_LEN to 64MB for fixing error when we use boot image Aandroid. Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
2022-04-27include: configs: am62x_evm: Fix the typos in the USB MSC environment settingsAswath Govindraju
The Marcos used for USB MSC environemnt setting have AM642 instead of AM625. Therefore, fix them. Fixes: 842c6777d033 ("include: configs: am62x_evm: Add env variables for booting to kernel using USB MSC device") Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>