summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-31pf8100: add pmic fusing commandColibri-iMX8QXP_fsl-image-validation_L4.9.123-20181112toradex_imx_v2017.03_4.9.123_imx8mm_ga-bring_upMax Krummenacher
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>
2018-10-31scfw: add additional controls for pmic i2c accessMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-10-31scfw: update to the 0.7 api filesMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-10-31colibri-imx8qxp: synchronize with imx8qxp-mek from beta2Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-10-31colibri-imx8qxp: move debug uart to lpuart3Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-10-31colibri-imx8qxp: initial addMax Krummenacher
Initial board support for Colibri iMX8QXP using a copy of Apalis iMX8. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-10-31Makefiles: add a i.MX8 flash.bin targetMax Krummenacher
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>
2018-10-31tdx-cfg-block.c: correct colibri imx8 stringMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-10-31apalis-imx8: config: remove pcie and sataMax Krummenacher
U-Boot in the current 4.9.123 form freezes when initalizing HSIO. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-10-08mmc: make UHS optionalStefan 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> (cherry picked from commit 83d1d48e59c84aec73b5dc7586c49505c027e7ce) (cherry picked from commit 507a0dfe023254e636b88df880f340c15edf6c4e)
2018-10-08apalis-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> (cherry picked from commit 67cf06ee02ba39a93fbfd4ed2e82509ec86ba53e) (cherry picked from commit 82ffe3f0c08c9c4f8e988e1402dc814b71e3be92)
2018-10-08tdx-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> (cherry picked from commit 70cf26d9f5edcb6de6b2b70f1bf6a821e46be3dd) (cherry picked from commit afc3024a826e61dc0ecc5d55b8dea96544ca9487)
2018-10-08toradex: 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> (cherry picked from commit d909b68d7f9da189a16e3ead0a6454b715201e23) (cherry picked from commit ace5cf96413d3c736148dcecd1481e4249b7c5f1)
2018-10-08toradex: 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 (cherry picked from commit 0520b532d77d238be8015d3041a95188e47945cc) (cherry picked from commit 3cb5f6450c39678a6361620bd45c423a503895cd)
2018-10-08tdx-cfg-block: add config block supportStefan Agner
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)
2018-10-08tdx-cfg-block: add new SKUsStefan Agner
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)
2018-10-08tdx-cfg-block: add new sku'sMax Krummenacher
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)
2018-10-08apalis-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> (cherry picked from commit 261060112cc55c25e672f6b73374d2a80e00a2e4) (cherry picked from commit 26db8b3fd1ad8bac8921f0ac11cb29364dc1bbaf)
2018-10-08apalis-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> (cherry picked from commit 65b8faac518e90ba1b53013e4639e2cd41e6bf2f) (cherry picked from commit 5b235d487dea79976597368d2edac64c1b468e4c)
2018-10-08apalis-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> (cherry picked from commit 41ef3986ae21dc6fcc4355ab53ccc809d80d361e) (cherry picked from commit 94d78f51638f4ab3519b845c4fbffe92865cc5b3)
2018-10-08apalis-imx8: set device tree to Apalis DT by defaultStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 04e7012224b6971972cb76415980c835a2ba9654) (cherry picked from commit 0759efaef277ff5e0583a4808593a36d7de0353d)
2018-10-08apalis-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> (cherry picked from commit 9a8a826591c490c0a11c4baeef31c73f482c0438) (cherry picked from commit adf5a30588c4352fc78c59b0d0c04fd43c6dad25)
2018-10-08apalis-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> (cherry picked from commit 360629c1fd6187de19d0f50feb85c725995e49cc) (cherry picked from commit 63030dac6afc51d17b04d23ce41af4788f03717e)
2018-10-08imx8: 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> (cherry picked from commit f62ce2a12e69b30c4ac6d533b6eef247916bf968) (cherry picked from commit 53afce50e18bfb12d4a1cdef9e8a8b9272893df3)
2018-10-08apalis-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> (cherry picked from commit f0a1ceb6f5e2ab3b3618190541b1e7a9fd4c1e4a) (cherry picked from commit 8f6405070189a8744c2f6a9d9a6e041554fb9046)
2018-10-08apalis-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> (cherry picked from commit c80b3bfbe693d5a8851129f4878d0cd3a7325d13) (cherry picked from commit 898ae105703cd0019a542bc0a17649339c934fa6)
2018-10-08apalis-imx8: remove unavailable peripheralsStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 6c6ac6c8a0107947a9c0952eee65a015c66043a0) (cherry picked from commit 41602d51fd56396a2647734c530a389d099ee47b)
2018-10-08apalis-imx8: fix eMMC/MMC/SD interface muxingStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit fa3d4f980a515b135778a74ce1b7476f61ef20d0) (cherry picked from commit 2ee92bc1dd56b44343079a5474d0fc4e79f28f4a)
2018-10-08apalis-imx8: add Apalis iMX8 specific device treeStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit aa830cb6a7c953ce85232b2ae951543ab1060948) (cherry picked from commit f6c37cdf31633a541078d0813ab4f59f6b80babb)
2018-10-08apalis-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> (cherry picked from commit 68e401998ba0654292b7914b85433d8453202ec8) (cherry picked from commit 6b9234fa1f5889f0eeecc6147afffbc859933c99)
2018-09-05MLK-19465 imx8mq: Fix cpu rev issue on B0.1 chipYe Li
We read the ROM version to determine the CPU revision before B1 chip. The rom version is 4 bytes word, it has major version at low byte, minor version at second byte. On B0.1 chip, the value is 0x1020 not 0x20, if reading the word and comparing with 0x20, the result is wrong. Fix the issue by only reading the lowest byte for major version. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 8d0812e63155cca91ecb78c630a450e7d5e5fd00)
2018-09-04MLK-18901-4 imx8qm/qxp: Add clocks command supportYe Li
Add "clocks" command to list clocks values for core and some peripherals on QM/QXP. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit c2c9b6487440946a52564ee20c2b1943a4085152)
2018-09-04MLK-18901-3 imx8mm: Enable mtest command for validation and EVK boardsYe Li
Enable the mtest command and add relevant configurations for tested memory range to all validation boards and EVK board. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit d92447e705ff6f077c602d340c01535ccee0ea66)
2018-09-04MLK-18901-2 imx8mq: Enable mtest command for ARM2 and EVK boardsYe Li
Enable the mtest command and add relevant configurations for tested memory range to all ARM2 boards and EVK board. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit bb3dfa130dd0af57dfe7a41869f6ecd843e6c558)
2018-09-04MLK-18901-1 imx8qm/qxp: Enable mtest command for ARM2 and MEK boardsYe Li
Enable the mtest command and add relevant configurations for tested memory range. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 4bfe6f1e7527921d9f02dbd37eea8924dd6d3336)
2018-09-04MLK-19433-3 mxc_ocotp: Disable fuse sense for imx8mq B1Ye Li
On iMX8MQ Rev B1, reading from fuse box is not allowed. The OCOTP_READ_FUSE_DATA register is tied to magic number 0xff0055aa for chip rev. So u-boot has to disable the fuse sense function for it. Signed-off-by: Ye Li <ye.li@nxp.com> Tested-by: Anson Huang <Anson.Huang@nxp.com> (cherry picked from commit da95f60611e8859eba3e7ccb715fdce4d6376774)
2018-09-04MLK-19433-2 imx8mq: Get chip rev for B1 revisionYe Li
The mscale B1 uses OCOTP_HW_OCOTP_READ_FUSE_DATA register for chip id. It returns a magic number 0xff0055aa. Update get_cpu_rev to support this way, also enable OCOTP clock to allow access OCOTP register. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 866631c2140b9352c6f74ec36d1a51fea40c0445)
2018-09-04MLK-19433-1 imx: Add macro for chip rev 2.1Ye Li
Add common CHIP_REV_2_1 for chip revision 2.1 Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit f7fc83ffb0f204d9f6ec6c77c08d23869d9ecde4)
2018-09-03MLK-19355 imx8mm: Enable sec_debug clock in SPLYe Li
ipg_stop from GPC is not connected to WDOG directly, the sec_debug clock is used to sample the ipg_stop from GPC. So when this clock is off, ipg_stop input of WDOG can’t assert, WDOG will fail to stop in DSM mode. Enable this clock forever in SPL, so other SW don't need to touch it. Signed-off-by: Ye Li <ye.li@nxp.com> Tested-by: Bai Ping <ping.bai@nxp.com> (cherry picked from commit 1da6c9b3a837d15c25086af449462d5e8b56c290)
2018-08-31MLK-19380 imx8mq_evk: update the ddr controller QoS settingTom.zheng
enhance memory controller performance and QoS setting Signed-off-by: Tom.zheng <haidong.zheng@nxp.com> Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Jian Li <jian.li@nxp.com> (cherry picked from commit ae7b37d3ed72bad542c8e77db4bbc0325180d6d2)
2018-08-28MLK-19356 fastboot: Fix ucmd issue in fastbootYe Li
After executing each ucmd, the ucmd callback function always call fastboot_setup to setup some enviroments. Because the mmc will be switched to user area by calling blk_get_dev in _fastboot_load_partitions. When running "mmc partconf" by ucmd, the PART_CONFIG EXTCSD is updated, but the part_config and hwpart variables in mmc and blk structure are not synced. So the old value will write to PART_CONFIG EXTCSD again when switch to user area. This patch changes the fastboot_setup, only load the partitions when the storage device is changed. Also force to re-init mmc before loading the partitions to sync mmc variables. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit c9cd93b25586ecd4ce9178da7b8141f60cdd9deb)
2018-08-28MA-12536[Android] Enable RTC for imx8m in ubootZhang Bo
Enable RTC in bootloader to avoid rtc time less than jiffies time when linux first bootup after RTC lose power. It will cause the issue as MA-9554[Android_6DL_SD]RTC: Sometimes the RTC reset to the initial time 1970 after softare reboot the first time. 40% Change-Id: I0c87180640be98a2c928a30c6949f91f4515844d Signed-off-by: Zhang Bo <bo.zhang@nxp.com>
2018-08-21MLK-19223 arm: imx8mm: add MXC_XXX_CLK clock map for imx common codeHaibo Chen
Now fsl_esdhc driver require the index of USDHCx_CLK_ROOT should be defined sequentially. otherwise driver may get the wrong usdhc root clock. e.g. for imx8mm, usdhc3, driver actually get the rate of I2C1_CLK_ROOT This patch add MXC_XXX_CLK, map to the real defined clock index. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> (cherry picked from commit 5cddab6e02e99a748f66e32880906aa427dc8e60)
2018-08-16MLK-18502: board:imx8mm_evk enable tzascSilvano di Ninno
Enable TZASC on i.MX 8mm. There is a need on 8MM to enable the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors. Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit d72b8baecd8495cfba990b999fe390937859ad75)
2018-08-15MA-12283-1 imx8mm_evk: Add USB releated configurations for SPLfaqiang.zhu
In order to use uuu, SPL needs USB functions. USB releated Configurations are added for imx8mm_evk. Change-Id: Ibf49ac4c8f1107b15706f752a393847b4188b344 Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
2018-08-15MA-12283 Enter fastboot mode directly if usb bootHaoran.Wang
Change bootcmd to "fastboot 0" directly when detect booted from USB. By this the u-boot which booted by uuu will enter fastboot mode and ready for the remain commands. Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2018-08-13MLK-19157 imx8mm_evk: Disable dsi panel before booting kernelYe Li
Pull down the DSI_EN gpio to disable mipi dsi panel before booting kernel. This avoids display full yellow screen before kernel mipi driver probes the device. For MIPI2HDMI card, this DSI_EN gpio is not used. So nothing impact to it. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit e73adc9a139f2e8bb92bda1631fa2f2391a8a5e3)
2018-08-08MLK-19132-3 fastboot: Remove CONFIG_BCB_SUPPORT for BSP u-bootYe Li
Remove CONFIG_BCB_SUPPORT config from BSP u-boot defconfig files. So that we can eliminate such errors during boot up: can't find partition: misc, dump the partition table idx 0, ptn 0 name='gpt' start=0 len=2048 idx 1, ptn 0 name='tos' start=0 len=2047 idx 2, ptn 0 name='all' start=0 len=7864320 idx 3, ptn 0 name='bootloader' start=2 len=4094 idx 4, ptn 1 name='mmcsdb1' start=20480 len=1024000 idx 5, ptn 2 name='mmcsdb2' start=1228800 len=6635520 cannot get the partion info for misc Cannot find partition 4080 do_raw_read failed, ret 1 read_bootctl, bcb_rw_block read failed read command failed Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 4d282a7a429876f1c1c67754a1d5c7aaaf75bb43)
2018-08-08MLK-19132-2 fastboot: Disable BCB_SUPPORT config at defaultYe Li
The BCB_SUPPORT is not needed by fastboot to support uuu, change it to disabled at default. Android header file explicitly enables this config, so there is no impact to android. Also remove the CONFIG_BCB_SUPPORT from whilelist, since we already add it in kconfig. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 36fd8fd0d5f34d69ef9a1a3833f3f052d64a25b3)
2018-08-08MLK-19132-1 fastboot: Use CONFIG_BCB_SUPPORT to control bcb relevant operationsYe Li
BSP u-boot has enabled fastboot for uuu. But the BCB is not needed. It will gives some errors during u-boot boot up. This patch uses CONFIG_BCB_SUPPORT to control bcb codes, so that BSP u-boot can disable it. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit e64a0eedb1ea84fbdbb67630fba88b92d1b49ed2)