1. 13 Aug, 2018 1 commit
    • Ye Li's avatar
      MLK-19157 imx8mm_evk: Disable dsi panel before booting kernel · 4d436d59
      Ye Li authored
      
      
      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: default avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit e73adc9a139f2e8bb92bda1631fa2f2391a8a5e3)
      4d436d59
  2. 08 Aug, 2018 4 commits
    • Ye Li's avatar
      MLK-19132-3 fastboot: Remove CONFIG_BCB_SUPPORT for BSP u-boot · 14e87975
      Ye Li authored
      
      
      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: default avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit 4d282a7a429876f1c1c67754a1d5c7aaaf75bb43)
      14e87975
    • Ye Li's avatar
      MLK-19132-2 fastboot: Disable BCB_SUPPORT config at default · 06de519a
      Ye Li authored
      
      
      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: default avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit 36fd8fd0d5f34d69ef9a1a3833f3f052d64a25b3)
      06de519a
    • Ye Li's avatar
      MLK-19132-1 fastboot: Use CONFIG_BCB_SUPPORT to control bcb relevant operations · 46283bf0
      Ye Li authored
      
      
      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: default avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit e64a0eedb1ea84fbdbb67630fba88b92d1b49ed2)
      46283bf0
    • Ye Li's avatar
      MLK-19159 imx8mm_evk: Fix build break for flexspi defconfig · 42d21af4
      Ye Li authored
      
      
      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: default avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit 2716f9a325681737593b3a6e79f94576a35067c2)
      42d21af4
  3. 06 Aug, 2018 1 commit
  4. 03 Aug, 2018 1 commit
  5. 27 Jul, 2018 1 commit
  6. 26 Jul, 2018 1 commit
  7. 25 Jul, 2018 1 commit
  8. 23 Jul, 2018 5 commits
  9. 20 Jul, 2018 5 commits
  10. 19 Jul, 2018 6 commits
  11. 18 Jul, 2018 5 commits
  12. 17 Jul, 2018 1 commit
  13. 16 Jul, 2018 4 commits
    • Silvano di Ninno's avatar
      Revert "MLK-18502: board:imx8mm_evk enable tzasc" · 1e8b9b31
      Silvano di Ninno authored
      with tzasc enabled, the GPU is generating AXI bus errors.
          currently reverting the patch while debuging
      
      This reverts commit 225f888b
      
      .
      Signed-off-by: default avatarSilvano di Ninno <silvano.dininno@nxp.com>
      1e8b9b31
    • zhang sanshan's avatar
      MA-12196 [Android] system can't enter recovery mode in android auto · acb99f66
      zhang sanshan authored
      
      
      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: default avatarzhang sanshan <sanshan.zhang@nxp.com>
      acb99f66
    • Luo Ji's avatar
      MA-12197 [Android] Unlock device after valid GPT is flashed · 2c5e14c8
      Luo Ji authored
      
      
      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: default avatarLuo Ji <ji.luo@nxp.com>
      2c5e14c8
    • Ye Li's avatar
      MLK-18897 imx8qm/qxp: Fix build warning in fuse driver · 8c9f2dbf
      Ye Li authored
      
      
      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: default avatarYe Li <ye.li@nxp.com>
      8c9f2dbf
  14. 13 Jul, 2018 2 commits
    • Luo Ji's avatar
      MA-12160 Check the request status in dequeue for cdns3 driver · 2dd1badb
      Luo Ji authored
      
      
      "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: default avatarLuo Ji <ji.luo@nxp.com>
      2dd1badb
    • Frank Li's avatar
      MLK-18862 imx8mm uuu can write emmc by fastboot · db9a6349
      Frank Li authored
      
      
      uuu can write sd card image to emmc
      Signed-off-by: default avatarFrank Li <Frank.Li@nxp.com>
      db9a6349
  15. 12 Jul, 2018 1 commit
    • Ye Li's avatar
      MLK-18823 mx6ul/mx6ull: Add workaround for LCDIF display when optee enabled · 85be73bb
      Ye Li authored
      
      
      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: default avatarYe Li <ye.li@nxp.com>
      85be73bb
  16. 11 Jul, 2018 1 commit
    • Frank Li's avatar
      MLK-18406 fastboot support all partition · ca96e0bd
      Frank Li authored
      
      
      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: default avatarFrank Li <Frank.Li@nxp.com>
      ca96e0bd