summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-18tdx-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>
2019-08-26apalis-imx8/colibri-imx8x: set fdtfile since it is used by distro bootcmdColibri-iMX8X_Console-Image_3.0b2.65-20190830Apalis-iMX8_Console-Image_3.0b2.65-20190830Stefan 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>
2019-08-14apalis-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>
2019-07-19colibri-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>
2019-07-19colibri-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>
2019-07-16apalis-imx8/colibri-imx8qxp: integrate fastboot recoveryMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-07-16colibri-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>
2019-07-15colibri-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>
2019-07-15colibri-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>
2019-07-15colibri-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>
2019-07-15colibri-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>
2019-07-12colibri-imx8x: bootcmd_mfg, distroboot and bootm_len fixesMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-07-11colibri-imx8qxp: move environment into first boot areaMax Krummenacher
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-07-11apalis-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>
2019-07-11apalis-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>
2019-07-11apalis-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>
2019-07-09toradex: 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>
2019-07-01apalis-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>
2019-06-28apalis-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>
2019-06-28imx8: 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>
2019-06-03apalis-imx8.h: move environment into first boot areaMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-05-14colibri-imx8qxp: enable fastboot supportIgor Opaniuk
Enable USB fastboot support (CONFIG_FASTBOOT). Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-05-10apalis-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>
2019-05-10apalis-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>
2019-05-10apalis-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>
2019-05-09apalis-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>
2019-05-09apalis-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>
2019-05-09apalis-imx8: do not undef configs configured using KconfigStefan Agner
Do not undef CMD config defines which are set by Kconfig. This allows to enable those commands using Kconfig. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-05-09Add target to generate initial environmentStefano Babic
The initial environment is linked to the u-boot binary. Modifying the environment from User Space with the env tools requires that the tools are always built together with the bootloader to be sure that they contain the initial environment in case no environment is stored into persistent storage or when a board boots with just the default environment. This makes difficult for distros to provide a general package to access the environment. A simpler way is if the tools are generic for all boards and a configuration file is given to provide the initial environment. The patch just generates the initial environment by extracting it from the compiled object. This file can then be used for tools in user space to initialize the environment. Signed-off-by: Stefano Babic <sbabic@denx.de> (cherry picked from commit bdaa73a5b3923257add182b4ab8058dbfa33421b)
2019-05-07apalis-imx8: modify default ramdisk loading addressGerard Salvatella
The current loading address for the ramdisk images overlaps with reserved memory for the decoder_boot section of the device tree (see fsl-imx8qm.dtsi). This generates a kernel panic early in the boot process when trying to access that memory region. Signed-off-by: Gerard Salvatella <gerard.salvatella@toradex.com>
2019-04-15apalis-imx8: remove board code for usdhcMax Krummenacher
These are now configured out of the device tree. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-15apalis-imx8: clean-up ethernet functionalityMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11net: dm: fec: Fix phy-reset-duration clamping and defaultsMartin Fuzzey
The DT binding says: - phy-reset-duration : Reset duration in milliseconds. Should present only if property "phy-reset-gpios" is available. Missing the property will have the duration be 1 millisecond. Numbers greater than 1000 are invalid and 1 millisecond will be used instead. However the current code: - clamps values greater than 1000ms to 1000ms rather than 1. - does not initialize the delay if the property does not exist (else clause mismatch) - returns an error if phy-reset-gpios is not defined Fix all this and simplify by using dev_read_u32_default() Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group> Acked-by: Joe Hershberger <joe.hershberger@ni.com> (cherry picked from commit 331fcabe4f9b4c7ec58d070da039f875673c9c9d) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11net: dm: fec: Fix time unit error in phy-reset-durationMartin Fuzzey
The DT binding says that phy-reset-duration is in ms, but the driver currently uses udelay(). Switch to mdelay() to fix this. Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> (cherry picked from commit 9b8b91888493d25873b835d262b89f1c4efa0df7) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11eth: dm: fec: Add gpio phy reset bindingMichael Trimarchi
Add the missing gpio phy reset binding to the gpio and reset time configuration Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> (cherry picked from commit efd0b791069af93e9d439a70d1fe2ae8994dbbfa) Conflicts: drivers/net/fec_mxc.c Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: fused modules boot from emmcMax Krummenacher
Fused modules boot from eMMC rather than SD card. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: clean-up board fileMax Krummenacher
Clean-up board file. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: clean-up configurationMax Krummenacher
Clean-up configuration moving some stuff from include header file to Kconfig defconfig. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: clean-up device treeMax Krummenacher
Clean-up device tree syncing with Linux one as well. Delete nodes not used by U-Boot. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: change top-level compatibleMax Krummenacher
Change the top-level compatible to use common toradex,apalis-imx8 notation. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11apalis-imx8: adjust copyright/licensing headersMax Krummenacher
Adjust copyright/licensing headers e.g. universally using SPDX license identifier. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11imx8 boot container: rework flash.bin generation for b0 siliconMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-11colibri-imx8qxp: dts: clean-up whitespaceMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-10colibri-imx8qxp: adjust copyright/licensing headers some moreMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-20colibri-imx8qxp: fix ethernet functionalityMarcel Ziswiler
Fix Ethernet functionality. The FEC clock on i.MX 8X really has an additional by 2 divider plus our design requires the ENET0_RCLK50M_OUT on the ENET0_RGMII_TXC pin to be turned on for the Micrel PHY. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: fix usb device/host functionalityMarcel Ziswiler
Fix USB device aka UMS as well as USB host functionality. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: print pmic information upon bootMarcel Ziswiler
In wake of future PMIC silicon version changes, make sure complete PMIC information is printed upon boot. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: default to dsihdmi device treeMarcel Ziswiler
As long as the parallel RGB interface bring-up is not completed default to dsihdmi device tree instead. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: fused modules boot from emmcMarcel Ziswiler
Fused modules boot from eMMC rather than SD card. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2019-03-20colibri-imx8qxp: clean-up board fileMarcel Ziswiler
Clean-up board file synching with i.MX 8QuadXPlus MEK board one as well. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>