summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-11mmc: make UHS optionaltoradex_imx_v2017.03_4.9.51_imx8_beta2-bring_upStefan Agner
Use Kconfig to select whether UHS should be supported. This works around issues with UHS seen on Apalis Evaluation board with some SD cards. It seems that tuning fails. The exact reason is not known, but since pull-ups on the carrier board are 3.3V, and UHS requires 1.8V, UHS modes should not be used by default anyway. Inspired-by commit f99c2efe5672 ("mmc: make UHS and HS200 optional") Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-05-01apalis-imx8: boot from SD card for nowStefan Agner
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>
2018-05-01tdx-cfg-block: add Apalis iMX8 QuadMax supportStefan Agner
Add support for interactive recovery of Apalis iMX8 QuadMax config block. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-05-01toradex: configblock: add an -y parameter to 'cfgblock create’Dominik Sliwa
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>
2018-05-01toradex: configblock: initialize MMC before switching partitionStefan Agner
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
2018-05-01tdx-cfg-block: add config block supportStefan Agner
Add Toradex config block support for i.MX8QM. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-05-01tdx-cfg-block: add new SKUsStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-05-01tdx-cfg-block: add new sku'sMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-04-27apalis-imx8: add default memory layout and network optionsStefan Agner
Add default memory layout and networking options typically used on Toradex modules. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-06apalis-imx8: use eMMC as environment location/default boot deviceStefan Agner
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>
2018-02-06apalis-imx8: load HDMI firmwareStefan Agner
Extend bootcmd to also load the HDMI firmware through hdp command. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: set device tree to Apalis DT by defaultStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: remove unused GPIOsStefan Agner
Remove GPIOs used on the validation board but not required on Apalis iMX8. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: use UART1 as console UARTStefan Agner
NXP LPUART1 is used as Apalis UART1, which is the main console on our Linux BSP. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05imx8: support UART1 as console UART for Apalis iMX8Stefan Agner
Make sure we return the clock of UART1 when building for Apalis iMX8. NXP LPUART1 is used as Apalis UART1, which is typically the main console on our Linux BSP. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: fix EthernetStefan Agner
Make sure that all pins connected to the Micrel KSZ9031 PHY are muxed. Properly reset the PHY after all muxing has been applied. This makes sure that strapping is not overwritten by the SoC default mux (particularly it makes sure that CLK125_NDO is not driven low during reset). Make sure to not use CONFIG_DM_ETH as it seems to break ETH support as is. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: remove PCA9557 GPIO controllersStefan Agner
The Apalis iMX8 module does not have PCA9557 GPIO controllers on the module. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: remove unavailable peripheralsStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: fix eMMC/MMC/SD interface muxingStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: add Apalis iMX8 specific device treeStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-02-05apalis-imx8: initial addStefan Agner
Initial board support for Apalis iMX8 using a copy of NXP iMX8QM ARM2 LPDDR4 board. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-01-24MA-11226 [Android] Set active slot fail after flashing bootloaderLuo Ji
Flash bootloader will switch the mmc hwpart to boot0 partition which will cause errors when read/write blocks from user partition. Fix this bug by switching hwpart to user partition before read/write user partition every time. Change-Id: I5e3405de04e22db352efa59f0286e5c5c4697ac5 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-01-17MLK-17402 imx8qm/qxp_arm2: Reset ENET1 PHY and MAX7322 at initYe Li
Since kernel enables both ENET0 and ENET1, so change to reset ENET1 PHY and MAX7322 as well even the configuration is set to use ENET0 in u-boot. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 9ce009caf4c80fbcb31526049420d6c388494247)
2018-01-17MLK-17375 video: imx: hdp: fix "n" arg for strncmp callOliver Brown
Renaming hdpload to hdp_load for consistancy. Correcting the strncmp to use only 4 characters to match "load" argument Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2018-01-17MA-10983-1 Load HDMI firmware from u-boot.binHaoran.Wang
Load HDMI firmware from u-boot.bin instead of /system partition. Change-Id: I8945940cfe14db50c95a56b8bff2a94990a7fbaf Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2018-01-16MA-11121 [Android] Enlarge heap size to 96M Bytes for imx8Luo Ji
After align BSP uboot configuration (commit: e363a68), some vedio related operations was enabled and will take some heap space. AVB will take about 62M Bytes heap size to load both boot_a and boot_b, 64M Bytes is not enough anymore. Change-Id: I9f93cd8d32410d144a0c5a976046773fbd07a539 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-01-12MLK-17369 imx8qm/qxp: Add controls for display controller resetsOliver Brown
" commit cfdb9821531da523fd1f01536eb67c8b8451477f Author: Oliver Brown <oliver.brown@nxp.com> Date: Tue Jan 2 07:46:06 2018 -0600 dc: Add controls for display controller resets. " Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2018-01-10MLK-17357-2 lpi2c: Add bus busy error handlingYe Li
When doing "i2c dev 4; i2c probe" with ENET daughter card connected on iMX8QXP MEK board, we met a i2c bus busy issue, that the BBF of lpi2c always show busy, but the master is idle, and stop is detected (SDF set). This patch addes a handling to re-init the lpi2c master for this case. Then the issue can be worked around. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 6b4021d04c7f637fd60cf73f9cc46fdebc853790)
2018-01-10MLK-17357-1 dts: imx8qxp_mek: set the i2c mux register offset to 0Ye Li
The i2c mux PCA9646 does not have register offset. We should read/write its control register immediately following the i2c device address. Use u-boot,i2c-offset-len to set the register offset length to 0. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit e3aa5b1ea468f60b798c9eea9abf18e6019b126b)
2018-01-08MLK-17348 xhci: Reset endpoint when endpoint is haltedYe Li
When testing a poor USB disk "Transcend JetFlash XPGMC7W5 ", sometime we will get TRB TX error during getting string descriptors, then the usb process aborts due to the context state changed to halted. Actually when the endpoint context state is halted, we can send reset endpoint command to put it to stopped state, then set TR dequeue pointer for following doorbell ring to re-run it. This patch adds this error recovery mechanism. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 6a2418e2b0554045ae1e8096b22fa64da5de4d8a)
2018-01-04MA-10983 Load HDMI firmware before bootHaoran.Wang
Load HDMI firmware to make HDMI module work. The firmware stored in /system partition. Now choose the target boot slot's system partition to load the firmware. Change-Id: Icfcd5f6c8237ee0c8875317395cf86c07d53c58e Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2018-01-03MA-10967 Add append bootargs env in ubootLuo Ji
Add 'append_bootargs' to hold some paramemters which need to be appended to bootargs. Change-Id: I80f18a421dea270cc8f555fe1b2799a5eb00aadc Signed-off-by: Luo Ji <ji.luo@nxp.com>
2017-12-29MLK-17303-2 imx: 8qm: Fix ENET1 buildPeng Fan
Fix ENET1 build and enablement. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit b799894c4e56a4afee0d7c8041bd49d718d0bd35)
2017-12-29MLK-17303-1 imx: 8qxp: Fix ENET1 enablementPeng Fan
Fix build error. Correct ENET1 enablement, Define CONFIG_FEC_ENET_DEV 1, to enable ENET1 on Base board. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 2440ee9ac2c66819e1cc664bd92fb8f092544059)
2017-12-29MLK-17324 DTS: imx8qm_mek: Add USBOTG1 nodeYe Li
Since android needs the USB OTG port on base board to run fastboot, add the USBOTG1 node to imx8qm mek DTS, so that the OTG can work on reworked board. Tested-by: Chen Guoyin <guoyin.chen@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit f347ebae3610c41f9b6eec33baff485192547761)
2017-12-22MLK-17278 imx8qxp_mek: Enable USB OTG port on base boardYe Li
The USB OTG port on MEK base board is not enabled at default, due to the default design connects it to M2 connector for BT/WIFI. Since most boards have reworked it, we enable it to support both host and device mode in u-boot. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit d43ad95777d28baf3ae33c7cd09e605a12641e13)
2017-12-20MLK-17254: imx8qxp: configs: change the NAND ENV offset to avoid overlapHan Xu
There is the 8M block sized NAND chip on QXP board, the previous 64MB u-boot environment offset overlapped with the boot image location. Changed the offset from 64MB to 120MB to avoid the overlap. Signed-off-by: Han Xu <han.xu@nxp.com> (cherry picked from commit e08d69114cc77fa1b261a2870219a2ad48e389b8)
2017-12-20MLK-17262 video: Fix build break when CONFIG_VIDEO_IMX_HDP_LOAD is not selectedYe Li
Met build errors below when CONFIG_VIDEO_IMX_HDP_LOAD is not selected. Because the u-boot make script checks the "$(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)" for built-in target. aarch64-poky-linux-ld.bfd: cannot find drivers/video/imx/built-in.o: No such file or directory scripts/Makefile.build:359: recipe for target 'drivers/video/built-in.o' failed Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 8c81dfb83f59ceb358f91564b9d48052d3df97cb)
2017-12-20MA-10933 [Android] android daily build failedzhang sanshan
BSP add HDP firmware loading for video. android daily build for the configure is not align with BSP. align BSP uboot configure. Change-Id: I56ce146a40eeed63e71795870d48387385903f8a Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
2017-12-19MLK-17205-3 video: imx: hdp: Adding configs for HDP firmware loadingOliver Brown
Added default environment for hdp loading. Added hdp loading as default for iMX8QM ARM2 and MEK boards. Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2017-12-19MLK-17205-2 video: imx: hdp: Adding HDP firmware loading to the buildOliver Brown
Adding the HDP firmware loading to the build. Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2017-12-19MLK-17205-1 video: imx: hdp: Adding support for HDP firmware loadingOliver Brown
This adds a command to load the HDP firmware and supporting libraries. Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2017-12-19MLK-17239 mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issueHaibo Chen
When sd/mmc work at DDR mode, like HS400/HS400ES/DDR52/DDR50 mode, the actual clock rate is just half of the expected clock. This patch set the DDR_EN bit first for DDR mode, hardware divide the usdhc clock automatically, then follow the original sdr clock setting method. This patch also remove the unused variable 'is_ddr'. Acked-by: Li Ye <ye.li@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit 2f1eed596782be19eb2c14e708e6db8596876346)
2017-12-18MLK-17236 imx8qm_mek: Enable base board powerYe Li
Since SCFW switches off the base board at default, we need to turn on it in u-boot, so that perpherals on base board can work. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 3bc93fa619c29b1344002ef4d96478bf8f9a2fde)
2017-12-13MLK-17189 imx8qxp: change the USDHC_CLK_ROOT source from AVPLLHaibo Chen
Currently, the DPLL of conn ss is not stable, will cause usdhc data CRC error. So here change USDHC_CLK_ROOT source from AVPLL as a workaround. And config USDHC1_CLK_ROOT to 333MHz, USDHC2_CLK_ROOT to 200MHz. This workaround do not impact SD performance, but decrease the eMMC performance, HS400ES work clock change from 198MHz to 166MHz, read performance drop about 10%, write performance drop about 6%. Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit c573014c0bd3e5d111c7078ae03dbe1c066db3c1)
2017-12-13MLK-17076 mmc: fsl_esdhc: fix the wrong sd/mmc clock frequency settingHaibo Chen
Change the pre_div to value 1, otherwise the actual sd/mmc clock frequency is always half of the expect frequency. Acked-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit 63c48958551b1e41e716a90cc40dd143df7d2c3f)
2017-12-13MA-10872 Write vaild size of gpt image for i.MX8Luo Ji
The offset of u-boot for i.MX8 boards is 33k bytes, writing whole gpt image (34k) will break u-boot when the board is booted with SD card. This patch only write vaild part (first 17k bytes) of gpt into SD card and will keep backup gpt at the last LBA. Change-Id: Iac5d337fb11a3e3ad2a9686efbfbacf9523dae58 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2017-12-12MLK-17119 i.MX8QM DDR4 ARM2 SupportTeo Hall
Add support for DDR4 board in u-boot. Main changes are the SD card slot and ddr type Signed-off-by: Teo Hall <teo.hall@nxp.com>
2017-12-11MLK-17145 imx: mx6qpsabresd: use mx6qp.cfg for optee supportPeng Fan
Use mx6qp.cfg for optee support. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2017-12-10MLK-17143 imx8qxp: mek: add xen envPeng Fan
Add xen env, "run xenboot" to boot xen. Signed-off-by: Peng Fan <peng.fan@nxp.com>