summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-29apalis-imx8: forward port to 2018.03toradex_imx_v2018.03_4.14.62_1.0.0_beta-bringupMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-11-29colibri-imx8qxp: forward port to 2018.03Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-11-29apalis-imx8.c: fix typoMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit cba518b4bbe4b9dfccb21ffe3cd0929c1a420719)
2018-11-29pf8100: add pmic fusing commandMax 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> (cherry picked from commit 582a98a218dab6ac5a13ebd1cbd7a16e4b8305f3)
2018-11-29scfw: add additional controls for pmic i2c accessMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 6c2303c6419943e7c81f8ec385c60050a090c7ac)
2018-11-29colibri-imx8qxp: synchronize with imx8qxp-mek from beta2Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 6557f1c6c8f5c5e6a5585459ab77e3d994ffff81)
2018-11-29colibri-imx8qxp: move debug uart to lpuart3Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 969f430f983d602afd83b6dd75b299e51463eae9)
2018-11-29colibri-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> (cherry picked from commit 62f0f03e1acb4bb6b0fcca8d4e9bd4d2df04ad33)
2018-11-29Makefiles: 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> (cherry picked from commit 72d2432e6fd3166fa45204b5515e04ae1524088e)
2018-11-29tdx-cfg-block.c: correct colibri imx8 stringMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 200ed432e13e93c4c094031fe4d4481998227139)
2018-11-29apalis-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> (cherry picked from commit 68a2be9b6247eaf5ac577082d8d5c0c930d37132)
2018-11-29apalis-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) (cherry picked from commit 1d7c4df41d20cb2447a6512de42475f8d754c905)
2018-11-29tdx-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) (cherry picked from commit b15393500e633a40319c5f8cf3ad02010f4acddd)
2018-11-29toradex: 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) (cherry picked from commit 31091506e79e4924f47bc20b1830d6beef9bd1d7)
2018-11-29toradex: 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) (cherry picked from commit 79d3008acaebc0d33ba8fc21ffe46f058416d4a3) Conflicts: board/toradex/common/tdx-cfg-block.c
2018-11-29tdx-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) (cherry picked from commit ae31e946da33510a352795de09aa1c0ea9fc8280)
2018-11-29tdx-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) (cherry picked from commit efc8eb53cc3184c88d4b76459cd585fcd594e118)
2018-11-29tdx-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) (cherry picked from commit 2cb9fd05afebb14e594a27cb33c19919f39fd142)
2018-11-29apalis-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) (cherry picked from commit 3bf49ccc73b2685eb965bcd61907bcffab3f3fd3)
2018-11-29apalis-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) (cherry picked from commit f7bc9e4e18a15e44bc0a06afe0abaddb03f4e9c0)
2018-11-29apalis-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) (cherry picked from commit cad9542ed852cee3d3dd0b6c25a36a0de6f22c29)
2018-11-29apalis-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) (cherry picked from commit 6ceb16bf22088785c53d751328347f0b6579fafe)
2018-11-29apalis-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) (cherry picked from commit b0cabfcfd6d5abd3f1a9d429acf3f44d5c76bb1d)
2018-11-29apalis-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) (cherry picked from commit 7bbe1708e0cebf3432c234ea74f8d6fb632a023b)
2018-11-29imx8: 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) (cherry picked from commit d248c3d4c39c24b6f66972f4076cf72b2a5ece1f) Conflicts: arch/arm/cpu/armv8/imx8/clock.c, file moved
2018-11-29apalis-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) (cherry picked from commit 6f24c637fd7725a27249d6a950f587134f30b97c)
2018-11-29apalis-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) (cherry picked from commit 69d385444efa79d2909f772c4a4b404d1bd7274d)
2018-11-29apalis-imx8: remove unavailable peripheralsStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 6c6ac6c8a0107947a9c0952eee65a015c66043a0) (cherry picked from commit 41602d51fd56396a2647734c530a389d099ee47b) (cherry picked from commit 73fe13597170f39d943d5dbc67c2416506cf7997)
2018-11-29apalis-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) (cherry picked from commit 649afbe0aec4089112772a49a7e6f7d34c3741a7)
2018-11-29apalis-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) (cherry picked from commit ae70d02213beabcd60853f655e2ff9849375c45c)
2018-11-29apalis-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) (cherry picked from commit 0b7feded806717b4292615373ed6c018324b8ef5) Conflicts: arch/arm/cpu/armv8/imx8/Kconfig, file moved
2018-10-15MLK-19945 mx6dq: hab: Fix chip version in hab.h codeBreno Lima
Since commit 8891410c729b ("MLK-19848 mx6dq: Fix chip version issue for rev1.3") it's not possible to call the HAB API functions on i.MX6DQ SoC Rev 1.3: Authenticate image from DDR location 0x12000000... undefined instruction pc : [<412c00dc>] lr : [<8ff560bc>] reloc pc : [<c8b6d0dc>] lr : [<178030bc>] sp : 8ef444a8 ip : 126e8068 fp : 8ff59aa8 r10: 8ffd51e4 r9 : 8ef50eb0 r8 : 006e8000 r7 : 00000000 r6 : 126ea01f r5 : 0000002b r4 : 126e8000 r3 : 412c00dd r2 : 00000001 r1 : 00000001 r0 : 00000063 Flags: nzCv IRQs off FIQs off Mode SVC_32 Resetting CPU ... resetting ... The hab.h code is defining the HAB API base address according to the old SoC revision number, thus failing when calling the HAB API authenticate_image() function. Fix this issue by using mx6dq rev 1.3 instead of mx6dq rev 1.5. Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit adc4d93e6e1726f111e86ca74fb76215215dbc86)
2018-10-12MLK-19907 imx8m: ddr4: Update the refresh_mode settingBai Ping
Update the refresh_mode setting. Clear the RFSHCTL3.refresh_mode bit to set it to normal_mode. Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit dac64635e978fb73ecbe83016a307be6ac7d5f0d)
2018-10-12MLK-19904 imx8mm_ddr4_evk: Update the mr value settingBai Ping
Update the DDR4 MR value on i.MX8MM DDR4 EVK board. Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0db8f9bc6ee7e087515573f79bc406edf9b36f9f)
2018-10-11MLK-19848 mx6dq: Fix chip version issue for rev1.3Ye Li
According to iMX6DQ RM, the minor field (low 8 bits) in DIGPROG is not aligned on silicon revision 1.3. So update get_cpu_rev to correct the revision. 0x00630002 Silicon revision 1.2 0x00630005 Silicon revision 1.3 0x00630006 Silicon revision 1.6 Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 8891410c729bfa604467440919a9709fea76e47c)
2018-10-12MLK-19890 configs: imx8qm_mek: create partition before loading hdmi firmwarePeng Fan
After loading hdmi firmware, create partition, HDMI power domain will be off, this will cause HDMI firmware being lost. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0681ed943c1a00012a8f15e104048f48f2e1fcbe)
2018-10-12MLK-19882 imx8qm/qxp: introduce dom0fdt_file envPeng Fan
Introduce dom0fdt_file env to let user could change the dom0 dtb file. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 3d99b1667943658dafd4c3f5d98bab027aab9346)
2018-10-11MLK-19876 imx: hab: Enable hab.c to authenticate additional images in open ↵Breno Lima
configuration Currently it's not possible to authenticate additional boot images in HAB open configuration. The hab.c code is checking if the SEC_CONFIG[1] fuse is programmed prior to calling the hab_authenticate_image() API function. Users cannot check if their additional boot images has been correctly signed prior to closing their device. Enable hab.c to authenticate additional boot images in open mode so HAB events can be retrieved through get_hab_status() function. Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 15d3e93bd16b5375f4dbf525ce61f0912ece4c0b)
2018-10-11MA-13048 [AUTO] Support program rpmb key with fastboot commandJi Luo
Add fastboot command "fastboot oem set-rpmb-key" to program the rpmb key which should be staged first. Usage: 1. fastboot stage my-rpmb-key.bin 2. fastboot oem set-rpmb-key Test: rpmb key programed successfully on imx8qxp. Change-Id: I95474a6367eb8ef0db16bb38680975b8c45b84f1 Signed-off-by: Ji Luo <ji.luo@nxp.com> (cherry picked from commit 557981f3ace1f11f1483668dd97076e6c3f1d1cc)
2018-10-12MA-13050-5 [Android] support evs on mek-8qxp boardzhang sanshan
camera sometime can't been open once run M4 image. ISI-CH0 probe funtion is not called when meet issue. The root cause is: M4 image set assign resource SC_R_ISI_CH0 into m4 partition when open camera in m4 side. Uboot will call update_fdt_with_owned_resources to check the pd in current dts node. it will call sc_rm_is_resource_owned to check the pd whether in other partition, If yes, it will delete the dts node. uboot delete isi_0 node whose pd is SC_R_ISI_CH0. add CONFIG_SKIP_RESOURCE_CHECING to skip checking resource when load dtb. Change-Id: Ibf79c0bb9bc133bd7e395be57ca4a1f2ca5cf75a Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
2018-10-11MLK-19894: i.MX6ULL: config: enable fastboot for qspi configHan Xu
enable fastboot for uuu in i.MX6ULL 14x14 QSPI config Signed-off-by: Han Xu <han.xu@nxp.com> (cherry picked from commit ef7693982cc357e4f17b4b6e34b45084169dd925)
2018-10-11MLK-19881 imx8mq_arm2: Fix SPL issue to support uuuYe Li
The codes in imx8mq ARM2 SPL still return back to ROM when booting from usb serial download. This is old way to support mfgtool not uuu. Update the codes to support uuu when SPL SDP is enabled. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit ad4444fe64dcfe18da49b8bf4fa2e97100ffd936)
2018-10-10MLK-19766 imx7ulp: enable uuu support in optee configShenwei Wang
Enabled fastboot relating macros in optee config to support uuu. Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com> Reviewed-by: Frank Li <frank.li@nxp.com>
2018-10-10MLK-19869-2 imx6: fix mmc_get_boot_dev issue when booting from USBYe Li
The mmc_get_boot_dev reads from SRC SBMR register. When booting with USB serial download, this function does not return correctly. Because SBMR won't reflect the USB boot. The patch adds USB boot checking to this function to fix the issue. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0d2071347211095a89dbb9c7e7d960cb8187c677)
2018-10-10MLK-19869-1 imx6: improve the is_boot_from_usb implementationYe Li
Currently the is_boot_from_usb is checking the USB PHY Powerdown bit. This way has a defect that if we run any usb function in u-boot the checking will always return true. This patch improves the way to avoid such problem above. A new arch-specific flag is added to indicate if it is USB boot. We check the USB PHY PWD bit at early of boot stage then set that flag. So any following calling of is_boot_from_usb will return correct value. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 0efb6ecdb9a40fdbccc3fd7ce69eb31cd82c9ab8)
2018-10-10MLK-19623: change hdmi keep-alive check mechanismLaurentiu Palcu
The current keep-alive check mechanism uses a static variable that is initialized to 0. When the function is first called, it may happen to catch the 8-bit keep-alive counter right when it overflows, hence returning BUSY. This patch will keep checking the counter for 10us, every 1us, but it will immediately return if the keep-alive counter changed. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com> (cherry picked from commit a809d62f2060cf2e907257806bebf688ffc8c924)
2018-10-10MLK-19722-8 doc: imx: Improve i.MX documentation namingBreno Lima
There is no need to have README in all i.MX documents name. Remove README from i.MX docs name and add .txt file extension. Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 49f36f64066b6cd9ac23d08b2b7af63b5ed9717d)
2018-10-10MLK-19722-7 doc: imx: misc: Reorganize miscellaneous documentationBreno Lima
The Serial Download Protocol feature is availible in various i.MX SoCs. Move README.sdp document to imx/misc directory. Signed-off-by: Breno Lima <breno.lima@nxp.com> (cherry picked from commit 39eed8d1444c6cfe8f8a75959a322205b41f5807)
2018-10-10MLK-19722-6 doc: imx: hab: Reorganize High Assurance Boot documentationBreno Lima
The current High Assurance Boot document README.mxc_hab include details for the following features in a single file: - HAB Secure Boot - HAB Encrypted Boot Split HAB documentation in a specific directory for a cleaner documentation structure, subsequent patches will include more content in HAB documentation. Signed-off-by: Breno Lima <breno.lima@nxp.com> (cherry picked from commit d2d545d78899e191f2d5c0f1b9b429db2de840ac)
2018-10-10MLK-19722-5 doc: imx: Reorganize i.MX SoC common documentationBreno Lima
The following documents describe device details according to the i.MX family: - README.imx25 - README.imx27 - README.imx5 - README.imx6 - README.mxs Move all device common related document to doc/imx/common for a better directory structure. Signed-off-by: Breno Lima <breno.lima@nxp.com> (cherry picked from commit 2098487e28507e64f54ff0ce8d3826ff6e2936c0)