summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-08MLK-19159 imx8mm_evk: Fix build break for flexspi defconfigYe Li
The flexspi defconfig uses CONFIG_ENV_IS_IN_SPI_FLASH not CONFIG_ENV_IS_IN_MMC. So when fastboot is enabled for flexspi, the build break happens. drivers/usb/gadget/built-in.o: In function `board_fastboot_setup': /home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/f_fastboot.c:1539: undefined reference to `mmc_get_env_dev' drivers/usb/gadget/built-in.o: In function `_fastboot_setup_dev': /home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/f_fastboot.c:1260: undefined reference to `mmc_get_env_dev' drivers/usb/gadget/built-in.o: In function `get_single_var': /home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/f_fastboot.c:2935: undefined reference to `mmc_get_env_dev' drivers/usb/gadget/built-in.o: In function `bcb_rw_block': /home/leyoen/Workspace/uboot-imx/drivers/usb/gadget/bcb.c:120: undefined reference to `mmc_get_env_dev' Fix the issue by decoupling mmc_get_env_dev function with CONFIG_ENV_IS_IN_MMC Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 2716f9a325681737593b3a6e79f94576a35067c2)
2018-08-06MLK-19135: enable fastboot for i.MX8MM flexspi u-bootHan Xu
enable fastboot for i.MX8MM flexspi u-boot Signed-off-by: Han Xu <han.xu@nxp.com> (cherry picked from commit ea221c08862666926e613f649359905400773d9c)
2018-08-03MLK-19101 usb: gadget: update os_desc_config when add configJun Li
Always use the new added config for os_desc_config to fix cdev-> os_desc_config may miss set in case we restart usb gadget driver. Signed-off-by: Li Jun <jun.li@nxp.com> (cherry picked from commit e8efb32e9b7a4fe45c7f21e86052c7f5bcdb6695)
2018-07-27MLK-19079 DTS: imx8qm/qxp: Change thermal zone alert temperatureYe Li
Set the alert temperature = critical temperature - 20C, to avoid looping the temperature at 85C Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-26MLK-19049 mx6qsabreauto: Fix kernel NAND boot issue in bootargsYe Li
When enabling NAND boot, the ubi.mtd should be set to 6 because the one mtdpart is added for tee. Also the MFG_NAND_PARTITION is duplicated in mx6qsabreauto.h and mx6sabre_common.h. We can remove it from mx6qsabreauto.h, since only the sabreauto board have NAND. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-25MLK-19045 imx8mm_evk: enable the dispmix & mipi phy power domainBai Ping
dispmix & mipi phy power domain must be enabled before doing any config for lcfif and dsi. Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-07-23MLK-19011-2 configs: imx8qm_mek: add jailhouse boot envPeng Fan
Add jailhouse boot env. run `jh_netboot` or `jh_mmcboot` to boot Linux. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-07-23MLK-19011-1 configs: imx8qxp_mek: add jailhouse boot envPeng Fan
Add jailhouse boot env. Use `run jh_netboot` or `jh_mmcboot` to boot Linux. Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-07-23ARM: adjust arm-smccc code for use in U-BootMasahiro Yamada
Adjust ARM SMC Calling Convention code for U-Boot: - Replace the license block with SPDX - Change path to asm-offsets.h - Define UNWIND() as no-op - Add Kconfig entry - Add asm-offsets Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> (cherry picked from commit c54bcf6805cc6762cb998751b8e005f39ee1dad1)
2018-07-23ARM: import arm-smccc code from Linux 4.11-rc6Masahiro Yamada
Imports ARM SMC Calling Convention code from Linux 4.11-rc6. The files have been copied as follows: [Linux] [U-Boot] arch/arm/kernel/smccc-call.S -> arch/arm/cpu/armv7/smccc-call.S arch/arm64/kernel/smccc-call.S -> arch/arm/cpu/armv8/smccc-call.S arch/arm/include/asm/opcodes* -> arch/arm/include/asm/opcodes* include/linux/arm-smccc.h -> include/linux/arm-smccc.h Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> (cherry picked from commit c2da86f39ed6cbccccc2736bdc421fd606734232)
2018-07-23MA-12219 [Android] Fix build errors for imx8mmLuo Ji
Android build use different tool chain(gcc 4.9) with yocto(gcc 6.2), 'for' loop initial declarations are not supported in C90, define the variable first before use it. Test: build pass for imx8mm_evk. Change-Id: Idf9a9f21626a02e2e679d2e74410378cd143c3f1 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-20MLK-18996 mx7ulp_evk: Fix build break on some defconfigsYe Li
We have add a kconfig for northwest mipi dsi driver in MLK-18945, need to enable it in all mx7ulp evk defconfigs, otherwise they will get build errors. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-20MLK-18431-03 imx8mm_evk: use the more generic dram init flow on imx8mm evkBai Ping
Refact the lpddr4 init flow on i.MX8MM EVK board. board level only need to provide the necessary dram init related parameter. Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-07-20MLK-18431-02: add a more generic dram init flow for imx8mBai Ping
the dram init is board related. But there is still some common part can be reused on different board. The basic flow is common for all the board. only the DDRC and DDR PHY config register setting is different on different board. So extract the LPDDR4 init common flow to make it more generic. baord level only need to provide the DDRC and PHY config register parameter to the common code to finish the dram init. the same method can be use for DDR4. will be added later. Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-07-20MLK-18431-01 imx8mm: move the spl bss base to ocram 0x910000Bai Ping
Move the SPL bss and malloc base to OCRAM 0x910000. OCRAM_S will be reserved for dram low power purpose. Signed-off-by: Bai Ping <ping.bai@nxp.com>
2018-07-20MA-12218 [Android] Fix evk_7ulp build errorLuo Ji
Add mipi display config CONFIG_IMX_NORTHWEST_MIPI_DSI for evk_7ulp to align with bsp team. Test: build pass for evk_7ulp. Change-Id: I82a15d8874585ad02668cc6afadc43199797e9e1 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-19MLK-18926-3 ARM64: dts: fsl-imx8mq: correct usdhc pad SRE settingHaibo Chen
According to RM, usdhc 100MHz pad setting need to set SRE(slew rate field) to 0x01(Medium Frequency Slew Rate 100MHz), usdhc 200MHz pad setting need to set SRE to 0x11(Max Frequency Slew Rate 200MHz). Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-07-18MLK-18945-10 imx8mm_evk: Add splash screen support for MIPI DSIYe Li
Add board level codes for enabling splash screen on imx8mm EVK. We support two different display connecting to MIPI DSI miniSAS interfaces: 1. MIPI2HDMI daughter card (default) 2. RM67191 OLED panel Users can set "panel" env vairable to "MIPI2HDMI" or "RM67191_OLED" to switch them after reboot. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-18MLK-18945-9 imx8mm: Update SOC codes to support LCDIFYe Li
Enable the video PLL (594Mhz) and clocks in displaymix. Add the LCDIF clock set interface to change its dot clock rate. Update registers header file for LCDIF base address. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-18MLK-18945-8 video: mxsfb: Update LCDIF driver for sec_mipi_dsi on iMX8MMYe Li
Update LCDIF driver for integrating with samsung mipi dsi controller on iMX8MM platform. The changes include: 1. Fix build warning for ARM64 platform. 2. Change max outstanding transactions req to 16 for better performance on system bus. 3. Set ENABLE signal to active low for valid data transfer. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-18MLK-18945-7 video: Add mipi panel driver RM67191Ye Li
Add a mipi dsi panel driver for RM67191 panel which is attached to mipi dsi controller. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-18MLK-18945-6 video: Add driver sec_mipi_dsim for mipi dsi on iMX8MM and iMX7DYe Li
Add new mipi dsi driver sec_mipi_dsim to support the samsung mipi dsi used on iMX8MM and iMX7D platforms. This driver implements the interfaces required by mipi dsi bridge. Users can use mipi dsi bridge common APIs to access it. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-17MLK-18945-5 mx7ulp_evk: Update board codes for mipi displayYe Li
Setup the mipi_dsi_northwest driver and register a the HX8363 panel device to mipi dsi bridge in board codes. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-17MLK-18945-4 video: mxsfb: Update LCDIF driver to use dsi bridgeYe Li
Remove the functions for northwest driver and HX8363 driver, change to use mipi dsi bridge interfaces. The mipi_dsi_northwest driver setup and hx8363 init will move to board level codes. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-17MLK-18945-3 video: Update mipi panel driver HX8363Ye Li
Update the HX8363 mipi panel to use new mipi dsi bridge interfaces to register a panel device and send command packets. So this panel driver can decouple with mipi_dsi_northwest driver. A new header file mipi_dsi_panel.h is added for all panel init functions declare. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-17MLK-18945-2 video: Update mipi dsi northwest to implement bridge interfaceYe Li
Update the mipi_dsi_northwest driver to implement mipi dsi bridge interfaces and register it as a bridge controller. Users can call bridge common interfaces to access the northwest driver, don't need to call its private driver functions. We also add a kconfig entry for this driver, the name is changed to CONFIG_IMX_NORTHWEST_MIPI_DSI Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-17MLK-18945-1 video: Add mipi dsi bridge driverYe Li
Add a mipi dsi bridge driver to abstract mipi dsi interfaces for mipi panel and display controller drivers. So for panel and display conntroller drivers, they can use same functions to access mipi dsi controller. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-16MLK-18934 usb: fastboot: Remove CONFIG_BOOTLOADER_OFFSET_xxx configurationsYe Li
We can get the bootimage SD/MMC offset at runtime according to the SOC type and version. No need to use CONFIG_BOOTLOADER_OFFSET_33K and CONFIG_BOOTLOADER_OFFSET_32K any longer, so remove them. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-16Revert "MLK-18502: board:imx8mm_evk enable tzasc"Silvano di Ninno
with tzasc enabled, the GPU is generating AXI bus errors. currently reverting the patch while debuging This reverts commit 225f888b0960f817fc96842e35f48c7e2d4213d3. Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
2018-07-16MA-12196 [Android] system can't enter recovery mode in android autozhang sanshan
CONFIG_CMD_RUN is set to n which do not suppert "run". use getenv to pass boot cmd to bootcmd Change-Id: I3866786758b8dd16b2685ec157e8322daa304374 Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
2018-07-16MA-12197 [Android] Unlock device after valid GPT is flashedLuo Ji
Unlocked device maybe locked when gpt overlay changed, unlock the device after valid gpt is flashed, erase the userdata to ensure safety. Test: device unlocked after valid gpt flashed. Change-Id: I7b0306606c632b7dc5668ea1ff8aad63428f278f Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-15MLK-18897 imx8qm/qxp: Fix build warning in fuse driverYe Li
Get such warning below in fuse driver, due to a u32 pointer is converted to ulong then passed as ulong pointer. This is dangerous when assigning value to the memory where ulong pointer points to. So use a intermediate variable to hand over value. Also fix the indenting issue in this patch. arch/arm/cpu/armv8/imx8/fuse.c: In function ‘fuse_sense’: arch/arm/cpu/armv8/imx8/fuse.c:33:25: warning: passing argument 3 of ‘call_imx_sip_ret2’ makes pointer from integer without a cast [-Wint-conversion] (unsigned long)val, 0, 0); ^ In file included from ./arch/arm/include/asm/arch/sys_proto.h:7:0, from arch/arm/cpu/armv8/imx8/fuse.c:13: ./arch/arm/include/asm/imx-common/sys_proto.h:94:15: note: expected ‘long unsigned int *’ but argument is of type ‘long unsigned int’ unsigned long call_imx_sip_ret2(unsigned long id, unsigned long reg0, unsigned long *reg1, unsigned long reg2, unsigned long reg3); Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-13MA-12160 Check the request status in dequeue for cdns3 driverLuo Ji
"fastboot reboot bootloader" fails to transmit "OKAY" back to host on imx8qm because fastboot_tx_write_str() will dequeue the IN request first before queue it, cdns3 usb driver will always invoke the complete callback in dequeue, so if we are going to do_reset() in the complete callback, the device will reboot before we can transmit "OKAY" back to host in queue. Check the request status in dequeue first before invoke the complete callback, this is basically ported from kernel. Test: No error messages when run "fastboot reboot bootloader" on imx8qm_mek. Change-Id: I085df3bd0f37480b8636585cc1068d5fcae331c1 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-12MLK-18862 imx8mm uuu can write emmc by fastbootFrank Li
uuu can write sd card image to emmc Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-07-11MLK-18823 mx6ul/mx6ull: Add workaround for LCDIF display when optee enabledYe Li
In optee enabled defconfig, the trust zone is enabled in DCD. On iMX6UL/ULL, there is IC limitation that LCDIF master access can only be non-secure, because PL301 hard code the m_3/4/5 to non-secure masters. It causes LCDIF fails to fetch data from memory. This patch adds a workaround to change trust zone Region 0 attribute to allow both secure and non-secure read/write. So it permits the LCDIF master access to memory. Since optee will configure Region 0 by itself, this should not introduce problem to optee. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-11MLK-18406 fastboot support all partitionFrank Li
uuu can write to any position of mmc sdps: boot -f ../mkimage_imx8dv/imx-mkimage/iMX8QX/flash.bin FB: ucmd setenv fastboot_dev mmc FB: ucmd setenv mmcdev ${emmc_dev} FB: ucmd mmc dev ${emmc_dev} FB: flash -raw2sparse all xx.sdcard Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-07-11MLK-18854 imx8mm_evk: Fix build break for imx8mm evk flexspi defconfigYe Li
The CONFIG_USB_GADGET is removed from header file and must add to defconfig, but imx8mm_evk_fspi_defconfig is not udpated. Thus it causes build break. Fix the issue and add other missed configs. Since the fastboot does not support flexspi, we don't enable it. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-07-09MLK-18793 imx8mq: config: add jailhouse envPeng Fan
Add jailhouse env. Currently need to pass clk_ignore_unused to bootargs to avoid linux root cell shutdown clocks used by inmates. If only want a minimal clk being on in inmates, the clks could be added in clk_inits_on in linux kernel drivers/clk/imx/clk-imx8mq.c Signed-off-by: Peng Fan <peng.fan@nxp.com>
2018-07-09MA-12163 [Android] Fix imx8mm build errorLuo Ji
CONFIG_USB_GADGET was removed in imx8mm_evk.h, add it to imx8mm_evk_android_defconfig. Also add CONFIG_SDP_LOADADDR to support uuu. Change-Id: Ie8b50b2acadb2779024c7ac7fd0ead65d7189476 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-06MLK-18707-2 iMX8M enable fastboot as defaultFrank Li
uuu will use fastboot command to write emmc Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-07-06MLK-18707-1: SDP: use CONFIG_SDP_LOADADDR as default load addressFrank Li
if SDP_WRITE and SDP_JUMP addr is zero, use CONFIG_SDP_LOADADDR as default address Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-07-06[iot] Enable A/B dual bootloader for imx8mLuo Ji
Open configs to enable A/B dual bootloader feature for imx8m. Test: A/B dual bootloader feature works on imx8m. Change-Id: Ia0ef8ca6957ec6288ceee3fe9065532a96c1f772 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-06[iot] Verify single slot in boota for dual bootloaderLuo Ji
A/B switch logic will be moved to SPL stage if dual bootloader feature is enable, in such case, we just need to verify single slot which is selected in SPL stage. Test: verify and boot ok for imx8m. Change-Id: Iafe0d2d4aea1c178551940808416eec4a3547259 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-06[iot] Support dual bootloader in SPLLuo Ji
Move the A/B slot check to SPL, the A/B slot switch workflow is just like what we have in libavb_ab. Test: A/B select works fine on imx8m. Change-Id: Ie3d827a9be0298b491bf2bc8d48833597fd70e90 Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-06MA-11958 Fix userdata partition size overflowLuo Ji
The userdata partition size for some platforms (like imx8/imx8m) could be larger than 4GB, use "unsigned long int" to store the partition size instead of "unsigned int". Test: Get correct userdata partition size for imx8m. Change-Id: Ib626fa2c3c64dde4eba3a93ee0455f45d1286c9f Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-06[iot] [coverity] Fix null dereferenced issuesLuo Ji
Fix the null dereferenced issues from converity scan results. issue id: 3618300:Dereference after null check 3618364:Dereference after null check 3618463:Dereference after null check 3618470:Explicit null dereferenced 3618520:Dereference after null check Test: issue fixed by converity scan. Change-Id: I577ed094a1f9b493de61b84827c0e1157a4fbd2f Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-07-05MLK-18623-3 imx8mm: Set NOC clock root to 750MhzYe Li
According to ADD, the target frequency for NOC bus clock is 750Mhz, the default setting from ROM is selecting the PLL1_800M_clk as source. This patch sets the PLL3 to 750Mhz and select it as the source of NOC clock root. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-07-05MLK-18623-2 imx8mm_val: use clock API to set DRAM APB clockYe Li
Change to use clock API "clock_set_target_val" to set DRAM APB clock root for DDR4 init. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-05MLK-18623-1 imx8mm_evk: Fix NOC and NOC APB clocks issueYe Li
Some debug codes in DDR init are used, which set NOC and NOC APB clocks to 25M OSC and causes slow booting and poor performance in SPL and u-boot. Change to original codes which only set DRAM APB clock to 200Mhz and use clock API to implement it. Some trailing spaces are also trimmed in this patch. Signed-off-by: Ye Li <ye.li@nxp.com>
2018-07-04MA-12124 [Android] Fix build warnings for u-bootLuo Ji
Fix build warnings in u-boot. Change-Id: I1944657d2d89a03c0d2303a22a09538dfaa5fd2c Signed-off-by: Luo Ji <ji.luo@nxp.com>