Age | Commit message (Collapse) | Author |
|
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>
|
|
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)
|
|
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>
|
|
These are now configured out of the device tree.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Fused modules boot from eMMC rather than SD card.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Clean-up board file.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Clean-up configuration moving some stuff from include header file to
Kconfig defconfig.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
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>
|
|
Change the top-level compatible to use common toradex,apalis-imx8 notation.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Adjust copyright/licensing headers e.g. universally using SPDX license
identifier.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
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>
|
|
Fix USB device aka UMS as well as USB host functionality.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
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>
|
|
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>
|
|
Fused modules boot from eMMC rather than SD card.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Clean-up board file synching with i.MX 8QuadXPlus MEK board one as
well.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Clean-up configuration moving some stuff from include header file to
Kconfig defconfig.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Clean-up device tree syncing with Linux one as well.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Fix top-level compatible to use common toradex,colibri-imx8qxp notation.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
Adjust copyright/licensing headers e.g. universally using SPDX license
identifier.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|
|
This also enables pullups on the uart forceoff pins.
The UART transceivers on an Iris carrier board can be disabled by
controlling SODIMM pins 102 and/or 104. Make sure that the pins by
default have pullups to have the debug UART working.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit eb0ed0e4283385700db1e5080d78f9a2684f98a5)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 3a5cc1cf85b8e22da78d794a2d71c03490f500b6)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit cba518b4bbe4b9dfccb21ffe3cd0929c1a420719)
(cherry picked from commit 5721e405c34985f5faa1e6ff4e0d3ca32dffa6e5)
|
|
Note that this requires the SCFW in a version which provides access
to the PMIC I2C. Something which the regular SCFW should not do.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 582a98a218dab6ac5a13ebd1cbd7a16e4b8305f3)
(cherry picked from commit 906059a7abf413bc165101812fb916743dd8eee7)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 6c2303c6419943e7c81f8ec385c60050a090c7ac)
(cherry picked from commit 7e0886f0a114bf3e81294a5b392855548a3081e8)
Conflicts:
arch/arm/include/asm/mach-imx/sci/types.h
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 6557f1c6c8f5c5e6a5585459ab77e3d994ffff81)
(cherry picked from commit 6efbcb8cd6740e60fc53f9033d60cc27f62b3c74)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 969f430f983d602afd83b6dd75b299e51463eae9)
(cherry picked from commit 2963361493e0f3df76f3a25202a56a76e69fd63f)
|
|
Initial board support for Colibri iMX8QXP using a copy of Apalis iMX8.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 62f0f03e1acb4bb6b0fcca8d4e9bd4d2df04ad33)
(cherry picked from commit be14c3ea1850e2614883c86b62fd1c3a1828eac2)
|
|
This is taken from the soc.mak makefile. It relies on an OE deploy dir with
the relevant boot binaries. See mx8_boot_img/Makefile for where the
mkimage-imx8 and the various boot binaries are taken from.
use 'make flash.bin' to build U-Boot and then build the boot image.
To flash use:
dd if=flash.bin of=${SDCARD} conv=notrunc seek=33 bs=1K
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 72d2432e6fd3166fa45204b5515e04ae1524088e)
(cherry picked from commit fe7b38897ec1339e77cf80b409f659019a76fb71)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 200ed432e13e93c4c094031fe4d4481998227139)
(cherry picked from commit ba4474ab3cf4ff30ebcfa58b15b5f95746346d07)
|
|
U-Boot in the current 4.9.123 form freezes when initalizing HSIO.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 68a2be9b6247eaf5ac577082d8d5c0c930d37132)
(cherry picked from commit e819b0c2d5790ce7b0c2bfc0501eb6e79e98db16)
|
|
Current samples are strapped to boot from SD card by default. Also
make sure that the default U-Boot environment boots from SD card.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 67cf06ee02ba39a93fbfd4ed2e82509ec86ba53e)
(cherry picked from commit 82ffe3f0c08c9c4f8e988e1402dc814b71e3be92)
(cherry picked from commit 1d7c4df41d20cb2447a6512de42475f8d754c905)
(cherry picked from commit bfaf217291cbe34381ce5d5e9a63a700d211c48d)
|
|
Add support for interactive recovery of Apalis iMX8 QuadMax
config block.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 70cf26d9f5edcb6de6b2b70f1bf6a821e46be3dd)
(cherry picked from commit afc3024a826e61dc0ecc5d55b8dea96544ca9487)
(cherry picked from commit b15393500e633a40319c5f8cf3ad02010f4acddd)
(cherry picked from commit 5ada977a2dd9240d2dd071468d310af79379abfd)
|
|
Add an optional -y parameter to 'cfgblock create’ to simplify
automation.
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit d909b68d7f9da189a16e3ead0a6454b715201e23)
(cherry picked from commit ace5cf96413d3c736148dcecd1481e4249b7c5f1)
(cherry picked from commit 31091506e79e4924f47bc20b1830d6beef9bd1d7)
(cherry picked from commit 674ffe96fb6d9264f2e9019c8d26fce5fb3588e3)
|
|
If the module is in serial downloader mode, we do no longer read the
environment from eMMC. Therefor, the eMMC is unitialized when trying
to read the config block. Use mmc_init to initialize the selected
MMC device before using it.
Note: In case the MMC has already been initialized, the mmc_init
detects that and returns immediately.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Conflicts:
board/toradex/common/configblock.c
(cherry picked from commit 0520b532d77d238be8015d3041a95188e47945cc)
(cherry picked from commit 3cb5f6450c39678a6361620bd45c423a503895cd)
(cherry picked from commit 79d3008acaebc0d33ba8fc21ffe46f058416d4a3)
Conflicts:
board/toradex/common/tdx-cfg-block.c
(cherry picked from commit cdcc3a8660fa4254d6d3ca6932a7cd599c0f1662)
|
|
Add Toradex config block support for i.MX8QM.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 18426b50681e6cd64ab5977f0ba84efd3f7c4495)
(cherry picked from commit c6d0e1042170d273a5b5434abe867213155d5582)
(cherry picked from commit ae31e946da33510a352795de09aa1c0ea9fc8280)
(cherry picked from commit 0798437c661ef3ca11f84fb45b4cce5b7ac145d9)
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit c97ae21d2e87f673e7f249f30df154b2bf5472fa)
(cherry picked from commit e82aab70ddcc0ea46e342980648fd23e69396b94)
(cherry picked from commit efc8eb53cc3184c88d4b76459cd585fcd594e118)
(cherry picked from commit f06fc58f6e30607475dab127cdaa525417022c36)
|
|
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 3f5807fa41c1744f6d4a9f0b702fb01a31fd73a7)
(cherry picked from commit 77471afdd9b663b775a2d2a1acc383767268e343)
(cherry picked from commit 2cb9fd05afebb14e594a27cb33c19919f39fd142)
(cherry picked from commit e351d2f491361f678d71f34c3857fb09775a12dd)
|
|
Add default memory layout and networking options typically used
on Toradex modules.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 261060112cc55c25e672f6b73374d2a80e00a2e4)
(cherry picked from commit 26db8b3fd1ad8bac8921f0ac11cb29364dc1bbaf)
(cherry picked from commit 3bf49ccc73b2685eb965bcd61907bcffab3f3fd3)
(cherry picked from commit f6cbf3f9c591646cd1f89b86d7dd5c7902269df8)
|
|
Use USDHC1 which is eMMC to store U-Boot environment and as default
root device for Linux.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 65b8faac518e90ba1b53013e4639e2cd41e6bf2f)
(cherry picked from commit 5b235d487dea79976597368d2edac64c1b468e4c)
(cherry picked from commit f7bc9e4e18a15e44bc0a06afe0abaddb03f4e9c0)
(cherry picked from commit a90ba0b545e88c0182ee0c9033020d952fd54aff)
|
|
Extend bootcmd to also load the HDMI firmware through hdp
command.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 41ef3986ae21dc6fcc4355ab53ccc809d80d361e)
(cherry picked from commit 94d78f51638f4ab3519b845c4fbffe92865cc5b3)
(cherry picked from commit cad9542ed852cee3d3dd0b6c25a36a0de6f22c29)
(cherry picked from commit 331fc0f28dc6b3a4938c66a5788041e527eabc8b)
|
|
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 04e7012224b6971972cb76415980c835a2ba9654)
(cherry picked from commit 0759efaef277ff5e0583a4808593a36d7de0353d)
(cherry picked from commit 6ceb16bf22088785c53d751328347f0b6579fafe)
(cherry picked from commit c5844221c59cda20f645ae83352944ffa570c3f1)
|