1. 14 Nov, 2018 1 commit
  2. 19 Oct, 2018 1 commit
  3. 16 Oct, 2018 1 commit
  4. 06 Sep, 2018 1 commit
    • Ye Li's avatar
      MLK-19465 imx8mq: Fix cpu rev issue on B0.1 chip · 8be98e93
      Ye Li authored
      We read the ROM version to determine the CPU revision before B1 chip.
      The rom version is 4 bytes word, it has major version at low byte,
      minor version at second byte.
      
      On B0.1 chip, the value is 0x1020 not 0x20, if reading the word and comparing
      with 0x20, the result is wrong.
      
      Fix the issue by only reading the lowest byte for major version.
      Signed-off-by: 's avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit 8d0812e63155cca91ecb78c630a450e7d5e5fd00)
      8be98e93
  5. 05 Sep, 2018 3 commits
  6. 03 Sep, 2018 1 commit
    • Ye Li's avatar
      MLK-19355 imx8mm: Enable sec_debug clock in SPL · c738b76a
      Ye Li authored
      ipg_stop from GPC is not connected to WDOG directly, the sec_debug clock is
      used to sample the ipg_stop from GPC. So when this clock is off, ipg_stop input
      of WDOG can’t assert, WDOG will fail to stop in DSM mode.
      Enable this clock forever in SPL, so other SW don't need to touch it.
      Signed-off-by: 's avatarYe Li <ye.li@nxp.com>
      Tested-by: 's avatarBai Ping <ping.bai@nxp.com>
      (cherry picked from commit 1da6c9b3a837d15c25086af449462d5e8b56c290)
      c738b76a
  7. 28 Aug, 2018 1 commit
    • Zhang Bo's avatar
      MA-12536[Android] Enable RTC for imx8m in uboot · b6a1a19c
      Zhang Bo authored
      Enable RTC in bootloader to avoid rtc time less than jiffies time
      when linux first bootup after RTC lose power.
      It will cause the issue as
      MA-9554[Android_6DL_SD]RTC: Sometimes the RTC reset to the initial
      time 1970 after softare reboot the first time. 40%
      
      Change-Id: I0c87180640be98a2c928a30c6949f91f4515844d
      Signed-off-by: 's avatarZhang Bo <bo.zhang@nxp.com>
      b6a1a19c
  8. 21 Aug, 2018 1 commit
  9. 16 Aug, 2018 1 commit
  10. 08 Aug, 2018 1 commit
    • 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: 's avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit 2716f9a325681737593b3a6e79f94576a35067c2)
      42d21af4
  11. 27 Jul, 2018 1 commit
  12. 23 Jul, 2018 2 commits
  13. 20 Jul, 2018 2 commits
  14. 19 Jul, 2018 3 commits
  15. 16 Jul, 2018 1 commit
    • 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: 's avatarYe Li <ye.li@nxp.com>
      8c9f2dbf
  16. 13 Jul, 2018 1 commit
  17. 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: 's avatarYe Li <ye.li@nxp.com>
      85be73bb
  18. 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: 's avatarFrank Li <Frank.Li@nxp.com>
      ca96e0bd
  19. 06 Jul, 2018 1 commit
  20. 04 Jul, 2018 3 commits
  21. 02 Jul, 2018 1 commit
  22. 26 Jun, 2018 2 commits
  23. 22 Jun, 2018 3 commits
  24. 15 Jun, 2018 1 commit
  25. 14 Jun, 2018 2 commits
  26. 13 Jun, 2018 3 commits
    • Peng Fan's avatar
      MLK-18577-7 imx8qm: mek: support uboot in vm · a4e932ca
      Peng Fan authored
      We 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 CONFIG_DM_SERIAL,
      select CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK, and disable some devices
      compared with imx8qm_mek_androidauto_defconfig.
      Signed-off-by: 's avatarPeng Fan <peng.fan@nxp.com>
      a4e932ca
    • Peng Fan's avatar
      MLK-18577-6 imx8: boot0: add boot header · 344ddf76
      Peng Fan authored
      Starting 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: 's avatarPeng Fan <peng.fan@nxp.com>
      344ddf76
    • Peng Fan's avatar
      MLK-18577-5 imx8: update soc code to support uboot in XEN VM · 533087bc
      Peng Fan authored
      Update 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.
      
      The VM use a different MU, so use a wrap for SC_IPC_CH.
      Signed-off-by: 's avatarPeng Fan <peng.fan@nxp.com>
      533087bc