Public
  1. Public

uboot-phytec

Public
AuthorCommitMessageCommit dateIssues
Jamie SantosJamie Santos
0f04015f6e6include: configs: pcm065: load LCD-018 overlay by defaultSigned-off-by: Jamie Santos <jsantos@phytec.com>LCD-018
Jamie SantosJamie Santos
00b2dbb6126SUBOOT-128 board: phytec: pcm065: uboot-container.cfg: config for AHAB containerAs per NXP's Linux v5.4.24_2.1.0 release, use containers so that U-Boot and ATF can be verified by SPL via AHAB. Signed-off-by: Jamie Santos <jsantos@phytec.com>SUBOOT-128
Jamie SantosJamie Santos
b4738739090SUBOOT-128 board: phytec: pcm065: imximage.cfg: config for i.MX8X boot imageSigned-off-by: Jamie Santos <jsantos@phytec.com>SUBOOT-128
Jamie SantosJamie Santos
0ac68f264d9SUBOOT-128 board: phytec: pcm065: spl: add support for SPLSigned-off-by: Jamie Santos <jsantos@phytec.com>SUBOOT-128
Jamie SantosJamie Santos
d5624527a16board: phytec: common: update files to comply with scripts/checkpatch.plSigned-off-by: Jamie Santos <jsantos@phytec.com>
Jamie SantosJamie Santos
a3b2535b0aaSUBOOT-128 board: phytec: common: add Phytec common filesBased on freescale/common from NXP's v5.4.24_2.1.0 release Signed-off-by: Jamie Santos <jsantos@phytec.com>SUBOOT-128
Christian HempChristian Hemp
944d0ea5807imx8qxp: add support for phyCORE-i.MX 8XBased on NXP's i.MX8X MEK support in their v5.4.24_2.1.0 release Additionally, adds support for: - eMMC, user LED, and some low-level functions in board/phytec/pcm065/pcm065.c - loading device tree overlays in defconfig and include/configs/pcm065.h - inverting polarity of ETH0 LEDs The following fixups from Steve Schefter have also been included: - SUBOOT-77: configs: pcm065_defconfig: Fix ...SUBOOT-77
Jamie SantosJamie Santos
563122fd8e8PCM065-71 drivers: net: phy: dp83867: add additional LED config optionsSigned-off-by: Jamie Santos <jsantos@phytec.com>PCM065-71
Peng FanPeng Fan
4979a99482fMLK-24149 arm: imx8mp: update i.MX8MP pin headerUpdate i.mx8mp pinfunc.h according to RM REV C. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit ba3bbb67f512400d9b67304d04cbfb7327fc4f35)MLK-24149
Ye LiYe Li
f229793a05fMLK-24192-3 pci: pcie_imx: Enable some LPCG clocks for iMX8Align the kernel's clocks enablement to enable the phy_per, misc_per clocks for all iMX8, and enable pciex2_per and pcie_phy_pclk for pcieb controller of iMX8QM. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 97b8d1c613f56b539328e421ba205f2221fc658e)MLK-24192
Ye LiYe Li
11ea97fb3c6MLK-24192-2 DTS: imx8qm/qxp/dxl: Update PCIE clocksUpdate PCIE clocks to align with latest v5.4 kernel, otherwise we may miss some LPCG clocks in u-boot and have potential problem if they have been disabled in kernel during partition reboot. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 76ebe2016c2ab7199cb6a6b83f8bc97fe0140549)MLK-24192
Ye LiYe Li
f3e87ac7e40MLK-24192-1 lpuart: Enable IPG clockCurrent codes only ennable the PER clock. However on iMX8 the LPUART also needs IPG clock which is an LPCG. Should not depend on the default LPCG setting. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit aa984f5f4029b743842ea7928d0af8da06b1b25d)MLK-24192
Ye LiYe Li
1f3aebcd528MLK-23820 imx8mq/mm: Add config to support secondary image bootWhen primary image boot is failed, ROM will select secondary image to boot if SIT (secondary image table) exists. However, SPL does not know the secondary boot, still loads the FIT from the position of primary image. Introduce a config to add secondary image sector offset to FIT sector offset. This config is default set to 0. Secondary image should configure it to the same value of firstSector...MLK-23820
Peng FanPeng Fan
cb72301d659MLK-24189-2 arm: imx: optee: ignore node create for xenIgnore node create for xen, currently we not have valid registers when booting in xen, it might have garbage value and cause kernel hang. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 0c6cc66b1181c72b8f9165875b9db075a1de89de)MLK-24189
Peng FanPeng Fan
fc3de802110MLK-24189-1 arm: dts: xen: drop power domain for gpio4/1gpio4/1 is handled by dom0, but shared with domu. without dropping the power domain, probe will fail. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit aad3cccd54acdbb1f96df12189be9e8bc03a3a93)MLK-24189
Peng FanPeng Fan
8809d6e036dMLK-24188-2 mmc: fsl_esdhc_imx: enable AHB/IPG clkOnly enable PER clk is not enough, we also need to enable AHB/IPG clk. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 867c5f2a706e6ee72fd263de02125c97acde89e1)MLK-24188
Peng FanPeng Fan
dd8a14dd46fMLK-24188-1 imx8: add AHB clk for SDHCAdd AHB clk for SDHC, without AHB clock, sdhc cmd will not finish. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 3ea6b86eecbfd5a1e082b86c99e411af1310afa1)MLK-24188
Han XuHan Xu
88a3952de96MLK-24185: dts: imx8qxp: include the u-boot dtsi in gpmi dtsinclude the fsl-imx8qxp-lpddr4-val-u-boot.dtsi explicitly in imx8qxp-lpddr4-val-gpmi-nand.dts, otherwise boot image failed to boot due to some power domains were not enabled. Signed-off-by: Han Xu <han.xu@nxp.com> (cherry picked from commit 06ddd9e78bcad974fc4f0f05c6dcfacf8551d2d5)MLK-24185
Ye LiYe Li
a85a22670c9MLK-24179 imx8/8x: Enable u-boot EXT4/EXT2 relevant commandsNeed these EXT filesystem commands for i.MX Debian/ubuntu distro enablement. And have enabled them on other imx8m/mx6/mx7 platforms Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit b118d558a2d68105fd9c772d18193cee9f355bbb)MLK-24179
Ye LiYe Li
d7cdfc01e3eMLK-24178 imx8: Fix build warning in sciFind below warning on some boards, because sci.h does not include log.h. Fix the issue by replacing linux/errno.h to common.h ./arch/arm/include/asm/arch/sci/sci.h: In function ‘sc_err_to_linux’: ./arch/arm/include/asm/arch/sci/sci.h:56:2: warning: implicit declaration of function ‘debug’ [-Wimplicit-function-declaration] 56 | debug("%s %d %d\n", _func_, err, ret); Signed-off-by: Ye Li <ye.li...MLK-24178
Peng FanPeng Fan
114cc2a62d5MLK-24172-2 configs: imx8qm: disable SPL DM serial for domuDisable SPL DM SERIAL for domu, there is no mmu setup, paravirtual console not work. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 63b1c6cde4368ad765f9a1d84e61aa566acd319f)MLK-24172
Peng FanPeng Fan
8f53e8699dcMLK-24172-1 imx8qm: update xen defconfig/dts for 2020.04Update xen defconfig Update dts to let xen serial could be used in early stage, but seems without mmu enabled, it output nothing. It only output data after mmu enabled. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit c1ac080ab69b27e4a66aaf10a9b801d2a3c7b8d0)MLK-24172
Ji LuoJi Luo
34b5b76b422MA-14318-1 Support dual bootloader for xenTrusty is not supported for xen so we don't need to check the keyslot package or rollback index in spl. Reassign the dram address for spl and u-boot to avoid conflicts. Support serial init functions to enable debug console in spl when xen is running. Test: Boot and A/B slot switch on imx8qm_mek. Change-Id: If6829252f1ec2e32255f951715c8747181951fd0 Signed-off-by: Ji Luo <ji.luo@nxp.com> Revie...MA-14318
Peng FanPeng Fan
5b27f2dca53MLK-20955 imx8qm: delete power-domains for lpuart0 on xenTo U-Boot on DomU, the lpuart0 is replaced with a xen paravirtual consol driver, but reused the previous lpuart node. However there is an power-domains entry in lpuart0 which will call power_domain_on and failed to probe xen paravirtual driver, because of recent change: commit 8524ca764d8f("MLK-20945-2 dm: device: Check the power up result in probe ") So remove the power-domains entry in lpuar...2 Jira Issues
Peng FanPeng Fan
161610a75c8MLK-20383 imx8qm: xen: enable dm usbEnable dm usb using the base board otg usb port for fastboot usage Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 88a1718aa7096782e9cf538e391762aaef631bb2) (cherry picked from commit 279e82b731e7671536b729934e1dc88b760ea05a) (cherry picked from commit b874dc0882e329af07de4f6bb0d01573d4e02da2)MLK-20383
Peng FanPeng Fan
6574ae694aaMLK-20373-6 imx8qm: xen: enable dm serialEnable dm serial for xen uboot. Log as below: #xl console 1 MMC: FSL_SDHC: 0 Loading Environment from <NULL>... *** Warning - bad CRC, using default environment Failed (-5) In: serial@5a060000 Out: serial@5a060000 Err: serial@5a060000 flash target is MMC:0 Fastboot: Normal Normal Boot => Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by...MLK-20373
Peng FanPeng Fan
00707e9398cMLK-20373-5 serial: serial_xen: support normal uboot consoleSupport output/input using `xl console [domid]`. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com> (cherry picked from commit 75a9833506aa13c1d5a8641c81ac951c41ced55e) (cherry picked from commit 5a495c39679b6641d369fc0c9cfdadafd8a408f6) (cherry picked from commit 6f3cc8513ac1afe0cf679422ae82c4a5930a8c64)MLK-20373
Peng FanPeng Fan
c35bf3b38c4MLK-20373-4 imx8: update mem map tableUpdate mem map table for xen uboot. xen console and some magic pages needs to be mappe as normal memory. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com> (cherry picked from commit c96a9844cd3342f6e31627ccc4f3e63544ffd78e) (cherry picked from commit 30b2d9f4a7c0cfc9b3f999f1c3a1a8c466d66a68) (cherry picked from commit 1...MLK-20373
Peng FanPeng Fan
559a70913b1MLK-20373-3 armv8: xen: introduce new hypercallsIntroduce new hypercalls Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com> (cherry picked from commit e1610fa574b20794c184e00d86c9d0f7505672f1) (cherry picked from commit 6e9e957e8d0891e4ec3bfb4b6c2bbef747eb8812) (cherry picked from commit 46a34b4456fb895786d25721b54a10e0182cb312)MLK-20373
Peng FanPeng Fan
0998baa8639MLK-20373-1 Intrdouce xen header filesIntroduce xen header files from Linux Kernel commit e2b623fbe6a3("Merge tag 's390-4.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux") Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Flynn xu <flynn.xu@nxp.com> (cherry picked from commit ddb393c45158f6114bd53c83dcd8397a6c2acbdc) (cherry picked from commit 8591f37af6345695a98216c...MLK-20373
Peng FanPeng Fan
b8c5b642432MLK-20134 imx8qm: xen: correct DRAM SIZE and loadaddrThe first DRAM BANK size should be 2GB and the load addr are 0x80080000. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 56c9ac9734a59c68cb85125b7047087d00d141e8) (cherry picked from commit fd9689b3a2bcd0de26594afa161c4e4acb4c7f58) (cherry picked from commit ee0733cca541a9a47d833e70d273268d2ed29653)MLK-20134
Peng FanPeng Fan
5974dc9e1daMLK-19552 imx8qm: xen: fix memory mapFixes 9486251ced24("MLK-19494 configs: imx8qm mek android audo: correct xen physical memory") correct text base, IPC address, memmap. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 884cada50b9a9fcda09d259cf145d87a29122cac) (cherry picked from commit 55822e16786817f843d32c1347d705c2a2a435dd) (cherry picked from commit f13108a1842a2819489975f0d0040c9c65c3856c)2 Jira Issues
Peng FanPeng Fan
be96d08d81fMLK-19494 configs: imx8qm mek android audo: correct xen physical memoryXEN tool has changed GUEST_RAM0_BASE to 2GB, since we assigned 3584M RAM to DomU, so reflect the change in configuration file. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 9486251ced24e3bf3ecbff68a8f9476e694e5bf7) (cherry picked from commit 0278b14507731b465652aa41c4a95dafa66da5d1) (cherry picked from commit 7041ded231da64df7799c0f74b14f33e2534c723)MLK-19494
Ye LiYe Li
6106514f68aMLK-18614-3 Xen: imx8qm_mek: Fix the CONFIG_FASTBOOT_USB_DEV and DTB issueBecause the Xen u-boot is using OTG port not typec port, the CONFIG_FASTBOOT_USB_DEV should set to 0 not 1. Otherwise the fastboot will fail. Remove duplicated "/dts-v1/;" from Xen DTB. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit ceaa529b34752045dcd294572c30c7c56a48abe7) (cherry picked from commit 2942cb192c0fff45307042bf60da08a30ccddaf2) (cherry picked from commit 9e8b963...MLK-18614
Peng FanPeng Fan
de4f81cd40bMLK-18577-7 imx8qm: mek: support uboot in vmWe are targeting let uboot loading images from emmc to boot android. Currently only emmc1 is enabled, so other devices are disabled. Also change memory layout according to VM layout. The memory layout needs to be samesize as what you configured in as "memory = "3584"". Add a new dts dedicated for this kind uboot, add a new defconfig to select CONFIG_XEN/CONFIG_XEN_DEBUG_SERIAL, deselect CONFI...MLK-18577
Peng FanPeng Fan
cc4ca483085MLK-18577-6 imx8: boot0: add boot headerStarting U-Boot in a XEN VM, needs a header, just like Linux Kernel. Without it, xen tool will take is as a file not supported. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 344ddf76c6de808699ab742d3c11728ca62f36ee) (cherry picked from commit d260e97be35718bea46019b7ca8666e83d0b9f01) (cherry picked from commit fa6d1e299da0f6913564dcb11c171cee69a43f8e) (cherry picked fro...MLK-18577
Peng FanPeng Fan
3afecc120b3MLK-18577-5 imx8: update soc code to support uboot in XEN VMUpdate SOC code to support U-Boot in a XEN VM. Currently we only support to boot android using uboot in a VM, so there is hardcode that using MMC1_BOOT boot. There are a few small fixes included. For the mmu configuration, the mem map is used from xen guest VM and our iomem space in vm cfg file. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 533087bc1bce0c35fead0956b06...MLK-18577
Peng FanPeng Fan
0abdd9a9bbbMLK-18577-4 serial: add simple xen debug outputAdd simple debug output when uboot runs in a VM. Needs DM_SERIAL disabled, and XEN_DEBUG_SERIAL enabled. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit b41475b83c8d7c83bd6069f4fea05d3405e81e50) (cherry picked from commit 695ae513cdf6c671cda5c32e4a2974e3119450d0) (cherry picked from commit d4189c87bbd3a5fd0abc74f7e9ce12a2f86c0de0) (cherry picked from commit 6596b48ccdfe42...MLK-18577
Peng FanPeng Fan
7b3604d96faMLK-18577-3 armv8: xen: add console write hypercallIntroduce console write hypercall to let Uboot could directly output with xen console, this needs CONFIG_VERBOSE_DEBUG enabled in xen. Because input is not a must requirement in android VM, and develop pvconsole needs more efforts, so let's use this hypercall first. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 8836c3104a1edfe542e0c1cef6690bc9d3d842a0) (cherry picked f...MLK-18577
Peng FanPeng Fan
77c8c40a605MLK-18577-2 Kconfig: Introduce CONFIG_XENIntroduce CONFIG_XEN to make U-Boot could be used as bootloader for a virtual machine. Without bootloader, we could successfully boot up android on XEN, but we need need bootloader to support A/B, dm verify and etc. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 612b2627de010db79e3dd79e912d0c6481e2ef01) (cherry picked from commit 544cd6a59b34728a18310f0a950500332ddf6c39...MLK-18577
Ji LuoJi Luo
2e5901d6540MA-17246 Remove debug log for mx7ulpRemove redundant debug log for imx7ulp. Change-Id: I6839cafe1d53ba071f97e7aa4caff7ff5d2f633c Signed-off-by: Ji Luo <ji.luo@nxp.com>MA-17246
Ye LiYe Li
8e1279fcab1MLK-24157 ulp_wdog: Fix unaligned access to cs2 regPatch "MLK-22755 mx7ulp: wdog: Wait for WDOG unlock and reconfiguration to complete", added some flags checking to WDOG driver. But the cs2 register access is wrong, should use "readb" not "readl". This is fine for some compilers (like gcc8.2, gcc9.2) which adjusts the access to "ldrb" instruction. However for old compilers (like gcc4.9), it won't fix the instruction and cause data abort. Si...2 Jira Issues
Ye LiYe Li
0f630e17a91MLK-24042-2 pci: pcie_imx: Fix iMX6Q remove issueWrong variable is check during pcie driver removing (6QP is checked but should be 6Q), so iMX6Q won't enter its handling and cause kernel PCI link failed to detect. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 0dd8cc03ecc45faaba0297c2832ff6ae307e8f30)MLK-24042
Ye LiYe Li
01823d89886MLK-24042-1 DTS: imx6qp-sdb: Fix wrong polarity of pcie reset gpioThe polarity of PCIE reset gpio is wrong in imx6qp-sdb DTS, which causes PCIE link failed to setup on iMX6QP. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 36007650ed90eac8232a93255e5dc0a3710bf0a0)MLK-24042
Ji LuoJi Luo
292b88d4d03MA-17226 Invalidate the dcache after DMA operationThe main memory contents can spontaneously come to the cache due to the speculative memory access by the CPU, this may cause coherency problem if this happens during the DMA operaion is on-going. Invalidate the dcache range after DMA opeartion but before the main memory read to avoid coherency problem. Test: reboot test. Change-Id: I93824deab9285b5478669e0a311e0b338bf02f8a Signed-off-by: Ji ...MA-17226
Ye LiYe Li
3833ec0d15eMLK-24079 imx8mp: Disable DWC3 gadget before UUU jumping to kernelWhen UUU runs acmd command to boot into kernel, the fastboot never get chance to exit, so the usb gadget is not disconnected. This causes kernel USB gadget failed to work. Re-use iMX8MQ implementation to disconnect DWC3 gadget before jumping to kernel. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Jun Li <jun.li@nxp.com> (cherry picked from commit bb8aaeb2ba407542f6cadeb2274927dd4280c0cd)MLK-24079
Ji LuoJi Luo
0d07cada378MA-17159-2 Enable bootloader menu for imx7ulpOpen configs to enable bootloader menu feature for imx7ulp. Change-Id: I788086ddaebbd3002cc58c7b8b035558533e1fa1 Signed-off-by: Ji Luo <ji.luo@nxp.com>MA-17159
Ji LuoJi Luo
d0f64bb8286MA-17159 Implement bootloader menu for imx7ulpAccording to the spec of android wear, the device MUST provides a bootloader menu for debugging purpose. This commit implements a simple bootloader menu based on imx7ulp_evk revb board, the menu will show when booting with 'VOL+' key pressed, users can press "VOL+" to choose the item, then press "ONOFF" key to confirm. Test: bootloader menu show on imx7ulp_evk revb. Change-Id: I80638a43afa17...MA-17159
Peng FanPeng Fan
2b5a5ccffc9MLK-24070 imx8dxl: rename ddr3 evk to ddr3 validationRename ddr3 evk to ddr3 validation board. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 67f56d67c3631e3f8a42e80386e38d7191cbe35c)MLK-24070
Adrian AlonsoAdrian Alonso
b92ddc44edcMLK-24069: dts: arm: imx8mm: ab2 fix enet phy addrFix fec phy addr for network support on imx8mn/imx8mn audio board 2 targets Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com> (cherry picked from commit cef3045bd7cc620051c8dd8e9248157d19b4514f)MLK-24069