1. 05 Sep, 2018 2 commits
  2. 21 Aug, 2018 1 commit
  3. 16 Aug, 2018 1 commit
  4. 23 Jul, 2018 2 commits
  5. 20 Jul, 2018 1 commit
    • Bai Ping's avatar
      MLK-18431-02: add a more generic dram init flow for imx8m · 220d0cc7
      Bai Ping authored
      
      
      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: default avatarBai Ping <ping.bai@nxp.com>
      220d0cc7
  6. 19 Jul, 2018 1 commit
  7. 04 Jul, 2018 2 commits
    • Yu Shan's avatar
      [iot] Check Trusty OS available before load it · 0a8e4589
      Yu Shan authored
      
      
      When SECURE_BOOT enabled, use HAB verify
      Trusty OS image or check its IVT available.
      
      If not available, bootloader consider the TOS
      lost unexpected and wipe all data on disk.
      Then enter limited fastboot mode. In this situation
      only bootloader and tos is able to flash, gpt won't
      be available for external.
      
      Change-Id: I04f037f5bd5a51f53174b5b99b2c3053182a8fcf
      Signed-off-by: default avatarHaoran.Wang <elven.wang@nxp.com>
      0a8e4589
    • Haoran.Wang's avatar
      [iot] Make dcache inner shareable · ab350892
      Haoran.Wang authored
      
      
      As u-boot use no SMP so not care shareable cache.
      But the Trusty OS will check the memory attr for
      inner shareable.
      So add the flag to mark the memory to be inner
      shareable for ARMv7 only.
      
      Change-Id: I322101d01346834aa3fad30ac788fe394336aa1a
      Signed-off-by: default avatarHaoran.Wang <elven.wang@nxp.com>
      ab350892
  8. 02 Jul, 2018 1 commit
  9. 22 Jun, 2018 1 commit
    • Ye Li's avatar
      MLK-18639-1 imx8mm: clock: Add API to enable/disable DDR bypass clock · 323b7377
      Ye Li authored
      
      
      The DRAM PLL generates clock to both DRAM controller & PHY, from 166.7MHz to 800MHz.
      So it can't be used when we need lower DDR frequency.
      The DRAM PHY supports a bypass mode to allow lower frequency operation from DDR-50 to
      DDR-666. In this mode, the PLL inside PHY is disabled, the PHY clock is provided externally
      as BypassPclk which is generated from dram_alt_clk_root.
      
      We add APIs for this bypass mode, to support frequencies for DDR-100, DDR-250 and DDR-400,
      which are needed when training DDR4.
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      323b7377
  10. 13 Jun, 2018 2 commits
  11. 17 May, 2018 1 commit
  12. 16 May, 2018 2 commits
    • Ye Li's avatar
      MLK-18322 imx8mm: Add hab suport · 1118c996
      Ye Li authored
      
      
      The imx8mm has changed the address of rvt_hab, use new address for imx8mm.
      Also enable fuse driver in SPL and update registers maps.
      
      The authentication procedure is same as imx8mq. In u-boot, the authentication
      uses SIP call to trap ATF to run HAB authenticate.
      Need to work with ATF commit:
      (commit 7a4d6f90e999ed413d520310cc199901b52b7a04)
      
      Users need to add CONFIG_SECURE_BOOT=y to imx8mm_evk_defconfig to enable
      the feature.
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Acked-by: default avatarPeng Fan <peng.fan@nxp.com>
      1118c996
    • Ye Li's avatar
      MLK-18316 imx8: Fix USBOTG disconnect when XRDC blocking is enabled · cf2143dc
      Ye Li authored
      
      
      We clean USBOTG register USBCMD if it is used in serial download mode.
      When XRDC blocking is enabled, we can't write this register directly,
      must enable the OTG power, otherwise the kernel will get SError
      exception in mfgtool.
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      cf2143dc
  13. 15 May, 2018 1 commit
  14. 11 May, 2018 1 commit
  15. 10 May, 2018 5 commits
  16. 04 May, 2018 1 commit
  17. 03 May, 2018 2 commits
  18. 18 Apr, 2018 1 commit
  19. 03 Apr, 2018 1 commit
    • Utkarsh Gupta's avatar
      MLK-17935: imx: HAB: Validate IVT before authenticating image · dabffd1b
      Utkarsh Gupta authored
      Calling csf_is_valid() with an un-signed image may lead to data abort
      as the CSF pointer could be pointing to a garbage address when accessed
      in HAB_HDR_LEN(*(const struct hab_hdr *)(ulong)ivt_initial->csf).
      
      Authenticate image from DDR location 0x80800000...
      Check CSF for Write Data command before authenticating image
      data abort
      pc : [<fff5494c>]          lr : [<fff54910>]
      reloc pc : [<8780294c>]    lr : [<87802910>]
      sp : fdf45dc8  ip : 00000214     fp : 00000000
      r10: fffb6170  r9 : fdf4fec0     r8 : 00722020
      r7 : 80f20000  r6 : 80800000     r5 : 80800000  r4 : 00720000
      r3 : 17a5aca3  r2 : 00000000     r1 : 80f2201f  r0 : 00000019
      Flags: NzcV  IRQs off  FIQs off  Mode SVC_32
      Resetting CPU ...
      
      resetting ...
      
      To avoid such errors during authentication process, validate IVT structure
      by calling validate_ivt function which checks the following values in an IVT:
      
      IVT_HEADER = 0x4X2000D1
      ENTRY != 0x0
      RES1 = 0x0
      DCD = 0x0       /* Recommended */
      SELF != 0x0     /* Absoulute address of IVT */
      CSF != 0x0
      RES2 = 0x0
      
      This commit also checks if Image's start address is 4 byte aligned.
      
      commit "0088d127
      
       MLK-14945 HAB: Check if IVT valid before authenticating image"
      removed as this patch addresses the issue.
      Signed-off-by: default avatarUtkarsh Gupta <utkarsh.gupta@nxp.com>
      dabffd1b
  20. 02 Apr, 2018 1 commit
  21. 26 Mar, 2018 1 commit
  22. 23 Mar, 2018 1 commit
  23. 13 Feb, 2018 2 commits
  24. 12 Feb, 2018 1 commit
  25. 12 Jan, 2018 1 commit
  26. 26 Dec, 2017 1 commit
  27. 21 Dec, 2017 1 commit
    • Ye Li's avatar
      MLK-17272 imx8mq_evk: Fix build warnings with usb power · 2a1812ce
      Ye Li authored
      
      
      Fix build warnings below, because the imx8m_usb_power is not declared
      
      board/freescale/imx8mq_evk/imx8m_evk.c: In function ‘board_usb_init’:
      board/freescale/imx8mq_evk/imx8m_evk.c:205:2: warning: implicit
      declaration of function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
        imx8m_usb_power(index, true);
        ^~~~~~~~~~~~~~~
      
      drivers/usb/host/xhci-imx8m.c: In function ‘xhci_hcd_init’:
      drivers/usb/host/xhci-imx8m.c:123:3: warning: implicit declaration of
      function ‘imx8m_usb_power’ [-Wimplicit-function-declaration]
         imx8m_usb_power(ctr_data[index].usb_id, false);
         ^~~~~~~~~~~~~~~
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Acked-by: default avatarPeng Fan <peng.fan@nxp.com>
      2a1812ce
  28. 13 Dec, 2017 1 commit
  29. 08 Dec, 2017 1 commit