summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-23apalis-imx8: drop obsolete environment variablesMarcel Ziswiler
Drop obsolete environment variables fdt_addr, finduuid, mmcargs, mmcdev, mmcpart and panel. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-15-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: introduce setup setting setupargsMarcel Ziswiler
Introduce setup setting setupargs and move earlycon there. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-14-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: remove obsolete net usb startMarcel Ziswiler
Remove obsolete net USB start. While at it also add a comment about enabling distro-boot. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-13-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: remove obsolete SDHC related config definesMarcel Ziswiler
Remove obsolete SDHC related config defines. Nowadays, all SDHC related hardware configuration comes from the device tree. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-12-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: update spdx license identifier stringMarcel Ziswiler
Update SPDX license identifier string. While at it also update copyright period. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-11-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: enable environment bootcount limitMarcel Ziswiler
Enable optional environment bootcount limit functionality. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-10-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis/colibri-imx8/8x: remove global variable scriptOleksandr Suvorov
The distroboot script system scans boot_scripts variable and try to find and use to boot each script name mentioned there. Setting global variable "script" breaks this general mechanism of searching and running a distro boot script. Remove global variables "script" to fix working the general distro boot script mechanism. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-9-marcel@ziswiler.com/] Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis/colibri-imx8/8x: add overlay support for i.mx 8/8x-based somsOleksandr Suvorov
There is no "apply" command enabled for "fdt". Enable "apply" command to allow overlays to be applied. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-8-marcel@ziswiler.com/] Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: set bootdelayMarcel Ziswiler
Set the boot delay to one second. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-7-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: provide proper config_sys_promptIgor Opaniuk
This provides correct system prompt for U-Boot console. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-6-marcel@ziswiler.com/] Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: display build infoMarcel Ziswiler
Display build info with information about the version of SCFW, SECO and TF-A (ATF). Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-5-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: turn off lcd backlight before OS handoverMarcel Ziswiler
U-Boot typically tears down the display controller before handing control over to Linux. On LCD displays disabling pixel clock leads to a fading out effect with vertical/horizontal lines. Make sure to disable back light GPIO Apalis BKL1 before booting Linux. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-4-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: implement pcb version and soc variant handlingMarcel Ziswiler
Implement PCB version and SoC variant handling which automatically loads the correct device tree for the Linux kernel. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-3-marcel@ziswiler.com/] Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23apalis-imx8: fix booting caused by missing dm_eventMarcel Ziswiler
Without the DM_EVENT absolutely no output whatsoever and the system does not boot at all. Upstream-Status: Submitted [https://lore.kernel.org/all/20221212000930.45505-2-marcel@ziswiler.com/] Fixes: c5ef2025579e ("dm: fix DM_EVENT dependencies") Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23board: apalis-imx8: add new 8gb product variantPhilippe Schenker
Add the new Apalis iMX8 product variant 0067: Apalis iMX8 QuadMax 8GB Wi-Fi / BT IT the only difference to the product 0037 Apalis iMX8 QuadMax 4GB Wi-Fi / BT IT is the 8gb of RAM. Toradex strategy to choose the correct RAM timing in SCFW is by fuses in the user area telling which RAM timing to load. This commit makes use of this information to set the correct size of the RAM and therefore distinguish between the new 0067 and 0037 product Upstream-Status: Backport [0da8dde6343fb91628794f9772b119bc7241c8a1] Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23toradex: drop legacy nfsboot scriptIgor Opaniuk
Drop legacy nfsboot script in favor of distroboot DHCP boot. Upstream-Status: Backport [1410cba567803b66b1ac7a354f5cda0c5f0e84ec] Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-12-23toradex: set default dhcp distroboot scriptnameIgor Opaniuk
Use the same name of DHCP Distroboot script as in regular eMMC case. Upstream-Status: Backport [1377a776c3f9c8580462f42a5d078976e5eec3ee] Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-11-15Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: MA-20886 imx8ulp: Boot from recovery mode when pressing key
2022-11-15MA-20886 imx8ulp: Boot from recovery mode when pressing keyMaximus Sun
Make system enter recovery mode when user pressing "sw2" when i.MX 8ULP EVK and i.MX 8ULP EVK 9×9 board are powered on. Signed-off-by: Maximus Sun <maximus.sun@nxp.com> Change-Id: Ifc13c37fff4f6c7352161b6ad7d6014aeeafcc6d
2022-11-14Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LF-7602: Device tree fixup based on compatible string
2022-11-11LF-7602: Device tree fixup based on compatible stringKshitiz Varshney
Updated otp_crypto_key & otp_unique_key device tree fix up. Earlier, device tree fix up was based on hardcoded address, but now it's based on compatible string of crypto node:- "fsl,imx28-dcp" Signed-off-by: Kshitiz Varshney <kshitiz.varshney@nxp.com>
2022-11-11Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()
2022-11-10crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()Stefan Roese
While working on an LX2160 based board and updating to latest mainline I noticed problems using the HW accelerated hash functions on this platform, when trying to boot a FIT Kernel image. Here the resulting error message: Using 'conf-freescale_lx2160a.dtb' configuration Trying 'kernel-1' kernel subimage Verifying Hash Integrity ... sha256Error: Address arguments are not aligned CAAM was not setup properly or it is faulty error! Bad hash value for 'hash-1' hash node in 'kernel-1' image node Bad Data Hash ERROR: can't get kernel image! Testing and checking with Gaurav Jain from NXP has revealed, that this alignment check is not necessary here at all. So let's remove this check completely. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Gaurav Jain <gaurav.jain@nxp.com> Cc: dullfire@yahoo.com Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
2022-11-08Merge remote-tracking branch 'gh-nxp/lf_v2022.04' into ↵Philippe Schenker
update-to-5.15.52_2.1.0__toradex_imx_lf_v2022.04
2022-11-07Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: MA-20872 Revert "MA-18775 system will hang about 3s when boot up kernel"
2022-11-07MA-20872 Revert "MA-18775 system will hang about 3s when boot up kernel"Zhipeng Wang
The problem of the system hanging for about 3 seconds when booting the kernel is gone, so enable the 8mp early console. This reverts commit 8f897bce4cce75e7599a8ea952271eab37b1dc51. Change-Id: I5a4c32f22fc93393610f3ae99fb3ca8e0643990a
2022-10-27Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: MA-20814 add fastboot command to erase u-boot env
2022-10-27MA-20814 add fastboot command to erase u-boot envMaximus Sun
Add fastboot command "fastboot oem erase_uboot_env" to support erase u-boot env. Signed-off-by: Maximus Sun <maximus.sun@nxp.com>
2022-10-26Merge remote-tracking branch 'origin/ls_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/ls_v2022.04: LF-6627: nand drvier fixups in sdboot on ls1043ardb-pd
2022-10-26LF-6627: nand drvier fixups in sdboot on ls1043ardb-pdWeiLu
Signed-off-by: WeiLu <w.lu@nxp.com>
2022-10-26Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LFU-426: qspihdr: Coverity Issue: unchecked return value MLK-25850: imx8dxl_ddr3l_evk: change the default fdt file name
2022-10-26LFU-426: qspihdr: Coverity Issue: unchecked return valueHan Xu
fix the unchecked return value(CWE-252) issue in qspihdr tool. Signed-off-by: Han Xu <han.xu@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2022-10-26MLK-25850: imx8dxl_ddr3l_evk: change the default fdt file nameHan Xu
change the fdt file name with rpmsg postfix as the default. Signed-off-by: Han Xu <han.xu@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2022-10-25Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LF-7382: fastboot: improve emmc write speed
2022-10-25LF-7382: fastboot: improve emmc write speedFrank Li
tested at iMX8MM platfrom reduce almost half write time. (499s vs 1000s). About 1/4 improve at 8DXL platform. 100*512 = 51k, which small than emmc erase block size 64k, which may cause more page management in emmc. Increase to 4096, about 2M write to emmc each time. Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2022-10-24Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LFU-428 imx8ulp: Add warning for CAAM non-secure state failure
2022-10-24LFU-428 imx8ulp: Add warning for CAAM non-secure state failureYe Li
When booting from OEM closed part, due to OTPMK not programmed correctly, CAAM is in non-secure state. Add a warning in SPL to indicate the problem to users. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2022-10-21Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LF-7369-2 clk: imx93: update LPCG control API LF-7369-1 clk: imx: implement a clock gate driver for i.MX93
2022-10-21LF-7369-2 clk: imx93: update LPCG control APIAlice Guo
Use i.MX93 specific LPCG control API. Signed-off-by: Alice Guo <alice.guo@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2022-10-21LF-7369-1 clk: imx: implement a clock gate driver for i.MX93Alice Guo
Add a clock gate driver for i.MX93. Bit0 of LPCG_DIRECT controls the ON/OFF of LPCG when LPCG is in direct control mode. Bit[2:0] of LPCG_LPM_CUR controls the ON/OFF of LPCG when LPCG is already in CPULPM mode. Signed-off-by: Alice Guo <alice.guo@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2022-10-21Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: MA-20507-7 trusty: fix dereference null return value
2022-10-21MA-20507-7 trusty: fix dereference null return valueJi Luo
This fixes the coverity issue: 22852960 Dereference null return value. Change-Id: I8186b49eb7f248476c4b8d3c773fbd2680da8367 Signed-off-by: Ji Luo <ji.luo@nxp.com>
2022-10-19Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LF-7332 imx8/ahab: sha256: enable image verification using ARMv8 crypto extention LF-7332 armv8: SHA-256 using ARMv8 Crypto Extensions
2022-10-19Pull request #65: enable image verification using ARMv8 crypto extentionGaurav Jain
Merge in LFAC/uboot-nxp from ~NXF60555/uboot-nxp-gaurav:imx_v2022.04 to imx_v2022.04 * commit 'f3b75e3317d17180009af5c866b9a85a855a79be': LF-7332 imx8/ahab: sha256: enable image verification using ARMv8 crypto extention LF-7332 armv8: SHA-256 using ARMv8 Crypto Extensions
2022-10-19Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LFU-427 imx93: Print ELE FW version LFU-393 imx93: Add reset cause print
2022-10-19LFU-427 imx93: Print ELE FW versionYe Li
Print ELE FW version in uboot log for debug purpose Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2022-10-19LFU-393 imx93: Add reset cause printYe Li
Add reset cause print to u-boot log on i.MX93. Since the SRC GENERAL registers are read only for non-secure mode. We have to clear SRSR in secure mode (SPL) and pass the value to non-secure mode via GPR1 register. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2022-10-18LF-7332 imx8/ahab: sha256: enable image verification using ARMv8 crypto ↵Gaurav Jain
extention add support for SHA-256 secure hash algorithm using the ARM v8 SHA-256 instructions for verifying image hash. Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
2022-10-18Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04BJ DevOps Team
* origin/imx_v2022.04: LFU-423: usb: cdns3: gadget: Avoid using usb_ss after null check MLK-26034 imx6: Disable LCDIF clock before jumping to kernel
2022-10-18LFU-423: usb: cdns3: gadget: Avoid using usb_ss after null checkSherry Sun
Fix Coverity Issue 22852965, in select_ep(), usb_ss pointer is used after the null check, here use printf instead dev_err to avoid using usb_ss after null check. Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>