summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2017-12-08MLK-17109-4 imx8mq_arm2: Add i.MX8MQ DDR3L and DDR4 ARM2 boards supportYe Li
Add board codes, configurations, DTS and DDR initialization codes for the DDR3L and DDR4 ARM2 boards. Supported modules - DDR3L ARM2: Two RANK DDR3L, QSPI B, eMMC/SD, RMII ENET, UART. - DDR4 ARM2: Two RANK DDR4, SD, NAND, RGMII ENET, UART. NAND read/write/erase is ok in u-boot, NAND SPL boot will be tested later when tool is ready. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
2017-12-08MLK-17109-3 mxs_nand: Add support for i.MX8MYe Li
Update the gpmi/apbh_dma/bch drivers and relevant registers for i.MX8M. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-12-08MLK-17109-2 spi_flash: Add gd25q16c to flash ids tableYe Li
The i.MX8MQ DDR3L ARM2 boards uses gd25q16c flash device, add its id to spi flash ids table. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-12-08MLK-17109-1 imx8m: clock: Add more frequencies support in dram pll init functionYe Li
Add 400Mhz, 600Mhz and 800Mhz frequencies for dram pll init function to support DDR3L/DDR4/LPDDR4. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-12-08MLK-17131 serial: lpuart: Enable RX and TX FIFOYe Li
Enable the RX and TX FIFO in LPUART driver to avoid the input lost during u-boot boot up. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
2017-12-08MLK-17127 DTS: imx8qm_mek: Update fec pad settingsYe Li
Sync the FEC1 and FEC2 pad settings with latest kernel DTS (commit a67f777dfb805fa72ffe31911a18d8c0a9683f73) Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by Fugang Duan <fugang.duan@nxp.com>
2017-12-08MLK-17086 bootm: Add authentication to optee imageYe Li
When IMX_OPTEE is enabled for secure boot, update bootm to authenticate the optee image and the kernel zImage before booting into optee. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-12-08MLK-17123 imx: fix mfgtool bootcmdPeng Fan
Fix mfgtool bootcmd error Signed-off-by: Peng Fan <peng.fan@nxp.com>
2017-12-08MLK-17093 imx8qm/qxp: enable control bit for RGMII interface RX clock delayFugang Duan
Due to RGMII interface timing requirement for imx8qm/qxp mek and arm2 board, it needs to enable RX clock delay. It should not depend on HW default status since kernel may clear the bit only on imx8qm/qxp platforms, then reboot test will cause uboot networking failed. Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2017-12-05MLK-17082-02 imx: add optee support for imx6slBai Ping
Add defconfig for tee support; Enable the TZASC support; Add env config for tee support. Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2017-12-05MLK-17082-01 imx: add optee support for imx6sllBai Ping
Add different defconfig for optee; Enable the TZASC support; Add env config for tee support. Signed-off-by: Bai Ping <ping.bai@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2017-12-04MLK-17050 imx8m: print out atf commitPeng Fan
Print out atf commit in U-Boot. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2017-12-04MLK-17055 imx8mq: evk: update DDR seting for display flickering issueJian Li
1. With this change, no flickering when LCDIF + MIPI-DSI in 720p60 single display case 2. With this change, no flickering when DCSS in 4kp60 while running 4x memtester at the same time side effect: GPU resolve performance downgrade ~20%, no obvious impact to non-resolve GPU cases. Signed-off-by: Jian Li <jian.li@nxp.com>
2017-12-03imx: imx7 Support for Manufacturing ProtectionBreno Lima
This code was originally developed by Raul Cardenas <raul.casas@nxp.com> and modified to be applied in U-Boot imx_v2017.03. More information about the initial submission can be seen in the link below: https://lists.denx.de/pipermail/u-boot/2016-February/245273.html i.MX7D has an a protection feature for Manufacturing process. This feature uses asymmetric encryption to sign and verify authenticated software handled between parties. This command enables the use of such feature. The private key is unique and generated once per device. And it is stored in secure memory and only accessible by CAAM. Therefore, the public key generation and signature functions are the only functions available for the user. The manufacturing-protection authentication process can be used to authenticate the chip to the OEM's server. Command usage: Print the public key for the device. - mfgprot pubk Generates Signature over given data. - mfgprot sign <data_address> <data_size> Signed-off-by: Raul Ulises Cardenas <raul.casas@nxp.com> Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2017-12-01MLK-17048 imx8mq_evk: Fix SD CD pad issue in SPLYe Li
The EVK board does not use external pull up resistor for SD CD pin, it requires the pad to be configured as pull up, otherwise the signal level is always low even the card is not inserted. This patch configures the pad of CD and RESET to pull up to align with kernel, although there is already a external pull up for RESET. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2017-11-30MLK-17044-3 booti: Add kernel image authentication for secure bootYe Li
When secure boot is enabled, add authenticate_image in booti to authenticate kernel image. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-11-30MLK-17044-2 HAB: Add SIP call for ARM64 platformYe Li
When current EL is not EL3, the direct calling to HAB will fail because CAAM/SNVS can't initialize at non-secure mode. In this case, we use SIP call to run the HAB in ATF. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-11-30MLK-17044-1 imx-common: Adding new argument for SIP call interfaceYe Li
Need to pass total 5 arguments for SIP HAB call, so update the interface to add new argument. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-11-29MLK-17021 imx8m: Fix thermal temp printed not aligning with kernelYe Li
The TMU calibration data in u-boot DTB is not updated, so the temperature we got in u-boot won't exceed 40C. This patch updates the TMU node with latest kernel DTB (commit ee0a9fbdca80b058c00d74c6afa70558f6c1dcc6) Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
2017-11-28MLK-17011 imx8qm/qxp: Fix wrong boot type for flexspiYe Li
The codes use the QSPI when booting from Flexspi, this cause u-boot prints out unknown device if we boot from Flexspi NOR. Signed-off-by: Ye Li <ye.li@nxp.com>
2017-11-29MLK-17018 Correct CopyrightPeng Fan
Correct Copyright Signed-off-by: Peng Fan <peng.fan@nxp.com>
2017-11-24MLK-16974 imx8m: Modify kernel DTB to limit USB to high-speed for mfgtoolYe Li
We found USB issue when using super-speed for mfgtool, temporally work around the problem to use high-speed only. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Li Jun <jun.li@nxp.com>
2017-11-22MLK-16944: imx8qm/qxp: Add leading zeros to SCFW commit hashLeonard Crestez
This fixes SCFW commits with leading zeros like 0245582bf4a58289e25c59fb0befe84923ca6742 being displayed as "245582b". Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2017-11-22MLK-16940 imx8m: Disable more HDMI and display nodes for mfgtoolYe Li
When running mfgtool, the HDMI FW won't be loaded. U-boot has to disable these new added HDMI and display relevant nodes in DTB. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
2017-11-22MLK-16939 imx8mq_evk: Change u-boot init stack address and sizeYe Li
Current u-boot init stack on mScale EVK is from 0x40f00000 to 0x41000000. This address overlays with kernel load address. When running mfgtool, the loaded kernel will be overwritten by this stack. So we change the init stack to the first 512KB DDR memory. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2017-11-22MLK-16933 imx8m: clock: set NAND_USDHC_BUS_CLK_ROOT to sys pll1 266MPeng Fan
Set NAND_USDHC_BUS_CLK_ROOT to sys pll1 266M Signed-off-by: Peng Fan <peng.fan@nxp.com>
2017-11-22MA-10703 [Android] use the usb_ep_queue for muti requestzhang sanshan
It need to send muti data through usb for fastboot commands(fastboot getcar all) this patch use usb_ep_queue to queue usb data. Change-Id: I5fd256868ac43163a21417a0634dd194e31f3eb7 Signed-off-by: Li Jun <jun.li@nxp.com>
2017-11-21MLK-16931 imx8m: hab: Fix secure boot build warningYe Li
Found HAB build warnings on mScale, those relate to ARM 64 bits conversion. arch/arm/imx-common/hab.c: In function ‘csf_is_valid’: arch/arm/imx-common/hab.c:556:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] !chk_bounds((const uint8_t *)ivt_initial->csf, ^ In file included from arch/arm/imx-common/hab.c:14:0: arch/arm/imx-common/hab.c:557:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] HAB_HDR_LEN(*(const struct hab_hdr *)ivt_initial->csf), ^ ./arch/arm/include/asm/imx-common/hab.h:177:40: note: in definition of macro ‘HAB_HDR_LEN’ ((size_t)(((const struct hab_hdr *)&(hdr))->len[0] << 8) \ ^~~ arch/arm/imx-common/hab.c:557:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] HAB_HDR_LEN(*(const struct hab_hdr *)ivt_initial->csf), ^ ./arch/arm/include/asm/imx-common/hab.h:178:41: note: in definition of macro ‘HAB_HDR_LEN’ + (size_t)((const struct hab_hdr *)&(hdr))->len[1]) ^~~ arch/arm/imx-common/hab.c:563:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] csf_hdr = (const uint8_t *)ivt_initial->csf; Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2017-11-21MLK-16930 imx6: hab: Fix secure boot build error and warningYe Li
Found secure boot build error and warning for some i.MX6 platforms without CONFIG_ROM_UNIFIED_SECTIONS defined. Fix them in this patch. In file included from arch/arm/imx-common/hab.c:14:0: arch/arm/imx-common/hab.c: In function ‘hab_rvt_report_event’: ./arch/arm/include/asm/imx-common/hab.h:152:59: error: ‘HAB_RVT_BASE_ARM64’ undeclared (first use in this function) ^ arch/arm/imx-common/hab.c:23:29: note: in expansion of macro ‘HAB_RVT_REPORT_EVENT_ARM64’ ((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT_ARM64) : \ ^ arch/arm/imx-common/hab.c:153:30: note: in expansion of macro ‘hab_rvt_report_event_p’ hab_rvt_report_event_func = hab_rvt_report_event_p; ^ ./arch/arm/include/asm/imx-common/hab.h:152:59: note: each undeclared identifier is reported only once for each function it appears in ^ arch/arm/imx-common/hab.c:23:29: note: in expansion of macro ‘HAB_RVT_REPORT_EVENT_ARM64’ ((hab_rvt_report_event_t *)HAB_RVT_REPORT_EVENT_ARM64) : \ arch/arm/imx-common/hab.c:126:23: warning: 'gd_save' defined but not used [-Wunused-variable] static volatile gd_t *gd_save; Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com>
2017-11-21MLK-16921 imx8mq_evk: Change kernel load address to 0x40480000Ye Li
The u-boot running address is 0x40200000, and the image size is larger than 512KB. If we set kernel load address to 0x40280000, when using mfgtool, the kernel loading will overwrite the u-boot image in DDR and cause u-boot crash. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2017-11-21MLK-16895 imx8: use netboot when mmcboot failPeng Fan
Use netboot when mmcboot fail. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2017-11-20MLK-16903 imx8m: Add reset_cpu to use external WDOG_B for resetYe Li
The WDT is enabled for WDOG in current u-boot reset, this cause external WDOG_B and internal WDOG_RESET_B_DEB both asserted for timeout. To avoid any unpredictable behavior, change to use the WDOG_B only. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2017-11-20MLK-16889 PCI: imx: disable the ltssm when link is downRichard Zhu
Disable the LTSSM when link is down. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
2017-11-20MLK-16899 imx8mq: evk: Add back LPDDR4 performance register settingsPeng Fan
Add back LPDDR4 performance register settings Signed-off-by: Peng Fan <peng.fan@nxp.com>
2017-11-20MLK-16880 imx8mq: evk: fix init ram spacePeng Fan
Fix init ram space. Otherwise uboot will override ATF stack space and cause unexpected issues. Signed-off-by: Peng Fan <peng.fan@nxp.com>