summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-05imx8mm-evk, imx8mm-val: take changed sd/mmc spl boot order into accountMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05arm: mach-imx: hard-code emmc to mmc1 and sd to mmc2 for i.mx 8mmMarcel Ziswiler
Just like on any and all other i.MX 8 Series devices use MMC1 for eMMC and SD2 for SD card. This fixes previously reverted commit 6c6206ad1a5a ("MLK-18243-17: arm: mach-imx: fix sd to mmc1 and emmc to mmc2 for i.MX8MM"). Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05Revert "MLK-18243-17: arm: mach-imx: fix sd to mmc1 and emmc to mmc2 for ↵Marcel Ziswiler
i.MX8MM" Nope, hard-coding SD to mmc1 and eMMC to mmc2 is wrong in so many ways! This reverts commit 6c6206ad1a5a3c70118a3ecf526b0ff00088adf7.
2020-03-05net: dm: fec: Fix regulator enable when using DM_REGULATORAdam Ford
When DM_REGULATOR is enabled, the driver attempts to call regulator_autoset() which expects the regulators to be on at boot and/or always on and fails if they are not true. For a more generic approach, this patch just calls regulator_set_enable() which shouldn't have such restrictions. Fixes: ad8c43cbcafb ("net: dm: fec: Support the phy-supply binding") Signed-off-by: Adam Ford <aford173@gmail.com> Tested-by: Martin Fuzzey <martin.fuzzey@flowbird.group> Acked-by: Joe Hershberger <joe.hershberger@ni.com> (cherry picked from commit 8f1a5ac797baac5b40f93eac80a7810f0a771ecf)
2020-03-05net: dm: fec: Support the phy-supply bindingMartin Fuzzey
Configure the phy regulator if defined by the "phy-supply" DT phandle. Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group> Acked-by: Joe Hershberger <joe.hershberger@ni.com> (cherry picked from commit ad8c43cbcafbbb21efc9e26bda7a6b1e37428adc)
2020-03-05tdx-cfg-block: fix while checking for uninitialised lenMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05tdx-cfg-block: fix colibri-imx8x defineMarcel Ziswiler
Fix CONFIG_TARGET_COLIBRI_IMX8QXP vs. CONFIG_TARGET_COLIBRI_IMX8X ifdefs. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis/colibri-imx8/8x: streamline hush shell promptsMarcel Ziswiler
Just like on any of our other modules also use the module type as hush shell prompt. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis/colibri imx8/8x: unify kconfig descriptionsMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis imx8: change kconfig spellingMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05config: apalis/colibri-imx8*: Add fdt_high variable without valuePhilippe Schenker
This will actually clear the value of a variable that is potentially still existing. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05ARM: dts: imx8qxp-apalis: Remove phy-reset-post-delayPhilippe Schenker
It was decided to get rid of the extra capacitor on the reset line so this is no longer needed Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05apalis-imx8/x/colibri-imx8qxp: skip resource checkingMarcel Ziswiler
Define CONFIG_SKIP_RESOURCE_CHECING which skips the downstream proprietary resource checking preventing us from booting any kind of mainline device tree based Linux kernels. While at it also fix some indentations/whitespaces. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8/x/colibri-imx8qxp: enable device tree overlay supportStefan Agner
Enable device tree overlay support which is used in the current dtconf implementation in TorizonCore. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05configs: apalis/colibri-imx8: change bootdelay to one secondPhilippe Schenker
Use one second for the bootdelay like on all other toradex boards Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05include: apalis-imx8.h: change default devicetree filePhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05include: apalis-imx8.h: change tdxargs to defargs for pci_nomsiPhilippe Schenker
tdxargs are meant for temporary adjusting U-Boot. Use defargs that suits this purpose better. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05include: apalis-imx8.h: add default tdxargs pci=nomsiPhilippe Schenker
As we have issues with MSI enabled we will disable it in default environment. Issue: Kernel panic Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05Machine: Apalis-iMX8X: Change name from apalis-imx8qxp to apalis-imx8xPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05include: apalis-imx8qxp.h: new fdt_file name and delete earlyconPhilippe Schenker
This commit uses the correct devicetree filename and makes sure, it doesn't use earlycon by default while at it make sure to use only tabs. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05fec_mxc.c: add possibility for phy-reset-post-delayPhilippe Schenker
This adds the possibility to add a delay after a reset in DT. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05apalis-imx8qxp: initial addPhilippe Schenker
Initial board support for Apalis iMX8QXP using a copy of Colibri iMX8QXP. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05tdx-cfg-block: add Apalis-iMX8X to get_cfgblock_interactivePhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05tdx-cfg-block: Add prototype numbering and Apalis iMX8XPhilippe Schenker
Toradex will use product-id 2600 upwards as id's for prototypes. This commit adds this functionality to the config block. The Apalis iMX8X is as well added in the same commit as it is the first prototype and the first prodid in that range. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-03-05apalis-imx8/colibri-imx8x: set fdtfile since it is used by distro bootcmdStefan Agner
The environment variable fdtfile is used in include/config_distro_bootcmd.h hence we should make sure it is set by default. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8/colibri-imx8x: use proper distroboot scriptMarcel Ziswiler
Rather than using NXP proprietary boot script transition to using proper distroboot one. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8x: enable FDT relocationStefan Agner
FDT relocation disabled seems to cause issues when using TorizonCore, probably related to ramdisk. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05colibri-imx8x/apalis-imx8: converge scriptaddr for distrobootStefan Agner
Distro boot scripts require scriptaddr. Make sure it is defined to a sensible address for both Apalis iMX8 as well as Colibri iMX8X. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8/colibri-imx8qxp: integrate fastboot recoveryMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8qxp: change default device treeMarcel Ziswiler
Change default device tree to the regular one now that parallel RGB is working. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8qxp: modify default ramdisk loading addressMing Liu
The current loading address for the ramdisk images overlaps with reserved memory for the decoder_boot section of the device tree (see fsl-imx8qxp.dtsi). This generates a kernel panic early in the boot process when trying to access that memory region. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2020-03-05colibri-imx8qxp: enable env import by defaultMing Liu
Enable env import by default. It is enabled in other modules too and it is required to boot TorizonCore. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2020-03-05colibri-imx8qxp: make sure config block fdt fix-ups are calledMing Liu
Make sure the config block information are passed to the kernel using the device tree properties toradex,product-id, board-rev and serial-number. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2020-03-05colibri-imx8qxp: do not undef configs configured using KconfigMing Liu
Do not undef CMD config defines which are set by Kconfig. This allows to enable those commands using Kconfig. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2020-03-05colibri-imx8x: bootcmd_mfg, distroboot and bootm_len fixesMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05colibri-imx8qxp: move environment into first boot areaMax Krummenacher
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8: fix ramdisk relocation addressMarcel Ziswiler
Fix ramdisk relocation address to work accross all our use cases. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8: enable FDT relocationStefan Agner
FDT relocation disabled seems to cause issues when using TorizonCore, probably related to ramdisk. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8: add scriptaddr for distrobootStefan Agner
Distro boot scripts require scriptaddr. Make sure it is defined to a sensible address. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05toradex: configblock: re-sync with mainlineMarcel Ziswiler
Re-sync with mainline which fixes missing Apalis iMX8 and Colibri iMX8X SKU and their interactive handling. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8/colibri-imx8qxp: improve poc sku handlingMarcel Ziswiler
Improve QP vs. QM resp. DX vs. QXP detection based on core disable fuses. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8/colibri-imx8qxp: implement poc sku handlingMarcel Ziswiler
Implement proof of concept 1 GB resp. 2 GB vs. 2 GB resp. 4 GB DDR SKU handling based on fuses indicating SoC being i.MX 8QP resp. 8DX vs. 8QM resp. 8QXP. This overrides the newly introduced weak board_mem_get_layout() function. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05imx8: allow overriding memory layoutMarcel Ziswiler
Introduce weak function board_mem_get_layout() which allows overriding the memory layout from board code e.g. handy to do our SKU handling. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2020-03-05apalis-imx8.h: move environment into first boot areaMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-05colibri-imx8qxp: enable fastboot supportIgor Opaniuk
Enable USB fastboot support (CONFIG_FASTBOOT). Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-03-05apalis-imx8: configure automatic booting on recoveryGerard Salvatella
When booting U-Boot in recovery mode the default boot command for automatic boots is substituted by bootcmd_mfg. For tezi we want this command to source the boot script inside the boot container that the uuu utility loads. The precise load address of this script is the one used in the mkimage_imx8 utility to generate the boot container. NOTE: this change affects both tezi U-Boot as well as BSP U-Boot. Since currently only tezi is supporting recovery mode, this shouldn't be a problem. Otherwise, consider adding preprocessor safeguards. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2020-03-05apalis-imx8: enable distro boot in teziGerard Salvatella
Tezi uses Distro Boot by default. Enable it and modify the appropriate environment. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2020-03-05apalis-imx8: increase bootm loading sizeGerard Salvatella
By default bootm can load kernels of up to 5MB. Our universal kernels in imx8 are much larger than this, even when compressed. Since recovery tezi needs to load from memory, allow for larger sizes to be loaded by bootm. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2020-03-05apalis-imx8: enable env import by defaultStefan Agner
Enable env import by default. It is enabled in other modules too and it is required to boot TorizonCore. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2020-03-05apalis-imx8: make sure config block fdt fix-ups are calledStefan Agner
Make sure the config block information are passed to the kernel using the device tree properties toradex,product-id, board-rev and serial-number. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>