1. 21 Oct, 2020 1 commit
  2. 25 May, 2020 5 commits
  3. 18 Apr, 2019 1 commit
  4. 11 Apr, 2019 5 commits
  5. 10 Apr, 2019 5 commits
  6. 09 Apr, 2019 2 commits
    • Ye Li's avatar
      MLK-21400 mx6solosabre: Enable fastboot for UUU support · 5cc3fbe2
      Ye Li authored
      Enable fastboot configurations in mx6solo sabresd and sabreauto
      defconfigs to support UUU. Since the DDR size on mx6solo sabre
      boards is smaller, also change the fastboot buffer to 256MB.
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
      (cherry picked from commit c482755f)
    • Breno Lima's avatar
      MLK-21386 Revert "drivers/crypto/fsl: assign job-rings to non-TrustZone" · 625d4faf
      Breno Lima authored
      Commit 22191ac3 ("drivers/crypto/fsl: assign job-rings to
       non-TrustZone") breaks HABv4 encrypted boot support in the
      following i.MX devices:
      - i.MX6UL
      - i.MX7S
      - i.MX7D
      - i.MX7ULP
      For preparing a HABv4 encrypted boot image it's necessary to
      encapsulated the generated DEK in a blob. The blob generation
      function takes into consideration the Job Ring TrustZone
      ownership configuration (JROWN_NS) and can be only decapsulated
      by the same configuration.
      The ROM code expects DEK blobs encapsulated by the Secure World
      environments which commonly have JROWN_NS = 0.
      As U-Boot is running in Secure World we must have JROWN_NS=0
      so the blobs generated by dek_blob tool can be decapsulated
      by the ROM code.
      As NXP BSP does not requires all job-rings assigned to
      non-Secure world this commit can be safely reverted.
      This reverts commit 22191ac3.
      Reviewed-by: default avatarSilvano Di Ninno <silvano.dininno@nxp.com>
      Signed-off-by: default avatarBreno Lima <breno.lima@nxp.com>
      (cherry picked from commit 3eebc76f)
  7. 02 Apr, 2019 1 commit
  8. 01 Apr, 2019 1 commit
    • Ji Luo's avatar
      MA-14494 Support DVT AIY 1G board · f3e266d0
      Ji Luo authored
      Add support for DVT AIY 1G board, distinguish the board type
      with the board id.
        TYPE:         ID:
        Micron 1G     0x5
        HYNIX  1G     0x3
        Micron 3G     0x1
      Test: Boot on AIY 1G/3G ddr board.
      Change-Id: I3c7b6ebe8bc5d4e59917fcc3947e9ebfefc940da
      Signed-off-by: default avatarJi Luo <ji.luo@nxp.com>
  9. 29 Mar, 2019 1 commit
  10. 28 Mar, 2019 1 commit
  11. 21 Mar, 2019 1 commit
  12. 20 Mar, 2019 2 commits
    • Utkarsh Gupta's avatar
      MLK-20893: imx: in_le32 out_le32 preprocessor casting issue with addresses involving math · 2330001a
      Utkarsh Gupta authored
      The sec_in32 preprocessor is defined as follows in include/fsl_sec.h file:
      When address "a" is calculated using math for ex: addition of base address and an offset, then casting is applied only to the first address which in this example is base address.
      caam_ccbvid_reg = sec_in32(CONFIG_SYS_FSL_SEC_ADDR + CAAM_CCBVID_OFFSET)
      resolves to:
      caam_ccbvid_reg = in_le32((ulong *)(ulong)CONFIG_SYS_FSL_SEC_ADDR + CAAM_CCBVID_OFFSET)
      instead it should resolve to:
      caam_ccbvid_reg = in_le32((ulong *)(ulong)(CONFIG_SYS_FSL_SEC_ADDR + CAAM_CCBVID_OFFSET))
      Thus add parenthesis around the address "a" so that however the address is calculated, the casting is applied to the final calculated address.
      Bug introduced by commit 79e90af1 ("MLK-18044-2: crypto: caam: Fix build warnings pointer casting").
      Signed-off-by: default avatarUtkarsh Gupta <utkarsh.gupta@nxp.com>
      Reviewed-by: default avatarHoria Geanta <horia.geanta@nxp.com>
      Reviewed-by: default avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit 5d10d1ca)
    • Adrian Negreanu's avatar
      env variable to specify androidboot.storage_type · 15ecd669
      Adrian Negreanu authored
      The boota command boots an Android already written to mmc/emmc.
      It calls get_boot_device() to figure out where to look for Android;
      but when a board is booted over serial, get_boot_device() returns
      an invalid boot mode.
      Explicitly setting the storage_type will enable boota on
      a board booted over serial.
         FB: ucmd setenv storage_type emmc
         FB: ucmd boota
      Signed-off-by: default avatarAdrian Negreanu <adrian.negreanu@nxp.com>
  13. 19 Mar, 2019 3 commits
    • Haibo Chen's avatar
      MLK-21176 mmc: correct the HS400 initialization process · 8915891b
      Haibo Chen authored
      After the commit b9a2a0e2 ("mmc: Add support for downgrading
      HS200/HS400 to HS mode"), it add a parameter in mmc_set_card_speed()
      which indicates that the HS200/HS400 to HS downgrade is happening.
      During the HS400 initialization, first select to HS200, and config
      the related clock rate, then downgrade to HS mode. So here also need
      to config the downgrade value to be true, make sure in the function
      mmc_set_card_speed(), after switch to HS mode, first config the
      clock rate, then read the EXT_CSD. Otherwise read EXT_CSD in HS mode
      at wrong clock rate, e.g. 200MHz, may lead to uncertain result.
      Test on i.MX8QM MEK board, some Micron eMMC will stuck in transfer
      mode in this case, and USDHC will never get data transfer complete
      status, cause the uboot hang.
      Signed-off-by: default avatarHaibo Chen <haibo.chen@nxp.com>
      (cherry picked from commit 0ba8e1c6)
    • Marek Vasut's avatar
      mmc: Do not poll using CMD13 when changing timing · c4217568
      Marek Vasut authored
      When using CMD6 to switch eMMC card timing from HS200/HS400 to HS/legacy,
      do not poll for the completion status using CMD13, but rather wait 50mS.
      Once the card receives the CMD6 and starts executing it, the bus is in
      undefined state until both the card finishes executing the command and
      until the controller switches the bus to matching timing configuration.
      During this time, it is not possible to transport any commands or data
      across the bus, which includes the CMD13.
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Jaehoon Chung <jh80.chung@samsung.com>
      (cherry picked from commit 5dbade95)
      Signed-off-by: default avatarHaibo Chen <haibo.chen@nxp.com>
    • Marek Vasut's avatar
      mmc: Add support for downgrading HS200/HS400 to HS mode · 4c95f338
      Marek Vasut authored
      The mmc_select_mode_and_width() function can be called while the card
      is in HS200/HS400 mode and can be used to downgrade the card to lower
      mode, e.g. HS. This is used for example by mmc_boot_part_access_chk()
      which cannot access the card in HS200/HS400 mode and which is in turn
      called by saveenv if env is in the MMC.
      In such case, forcing the card clock to legacy frequency cannot work.
      Instead, the card must be switched to HS mode first, from which it can
      then be reprogrammed as needed.
      However, this procedure needs additional code changes, since the current
      implementation checks whether the card correctly switched to HS mode in
      mmc_set_card_speed(). The check only expects that the card will be going
      to HS mode from lower modes, not from higher modes, hence add a parameter
      which indicates that the HS200/HS400 to HS downgrade is happening. This
      makes the code send the switch command first, reconfigure the controller
      next and finally perform the EXT_CSD readback check. The last two steps
      cannot be done in reverse order as the card is already in HS mode when
      the clock are being switched on the controller side.
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Jaehoon Chung <jh80.chung@samsung.com>
      (cherry picked from commit 523f6136)
      Signed-off-by: default avatarHaibo Chen <haibo.chen@nxp.com>
  14. 18 Mar, 2019 3 commits
  15. 15 Mar, 2019 1 commit
    • Ye Li's avatar
      MLK-21158 imx8mm: Add workaround for arm timer stopped issue · 47096e53
      Ye Li authored
      When switching ARM root clock source from ARM PLL to 24M OSC,
      found the ARM timer may stop on few chips during stress reboot test.
      The system counter is still increasing, but ARM timer is stopped.
      Add a workaround that switch ARM clock source from ARM PLL to
      Sys PLL2 500M clock instead of 24M OSC. Stress reboot test is
      passed on all failed chips.
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      (cherry picked from commit 74770228)
  16. 14 Mar, 2019 4 commits
    • Luo Ji's avatar
      MA-14379 [coverity] Resource leak (RESOURCE_LEAK) · 9d6623f1
      Luo Ji authored
      Fix coverity issue: CID 2970630: Resource leak (RESOURCE_LEAK)
      leaked_storage: Variable cdns going out of scope leaks the storage
      it points to.
      Memory allocated by devm_kzalloc() won't be freed automatically in
      u-boot, free the memory manually here.
      Test: Coverity scan pass.
      Change-Id: I3000a2385941cef3b8b7e01611cfdc999971a4ca
      Signed-off-by: default avatarLuo Ji <ji.luo@nxp.com>
    • Luo Ji's avatar
      MA-14374 [coverity] Fix coverity issues in fsl_avbkey.c · dfdf60c6
      Luo Ji authored
      Fix coverity issues as:
        CID 5899697: Dereference before null check (REVERSE_INULL)
        CID 3616594: Unchecked return value (CHECKED_RETURN)
        CID 3616598: Resource leak (RESOURCE_LEAK)
        CID 3616591: Resource leak (RESOURCE_LEAK)
      Test: Coverity scan pass.
      Change-Id: I70abb41c3cd825c6eec43dc7e5baec716ae46680
      Signed-off-by: default avatarLuo Ji <ji.luo@nxp.com>
    • Luo Ji's avatar
      MA-14370 [coverity] Buffer not null terminated · 682826b3
      Luo Ji authored
      Fix coverity issue:
        CID 43787: Buffer not null terminated (BUFFER_SIZE_WARNING)
        buffer_size_warning: Calling strncpy with a maximum size argument
        of 32 bytes on destination array sdev.name of size 32 bytes might
        leave the destination string unterminated.
      Test: Coverity scan pass.
      Change-Id: Ib10e631bab893cb9cd1484082229f806b02849ba
      Signed-off-by: default avatarLuo Ji <ji.luo@nxp.com>
    • Luo Ji's avatar
      MA-14322 [coverity] Uninitialized scalar variable · 026360c2
      Luo Ji authored
      Fix coverity issue: CID 1477258: Uninitialized scalar variable (UNINIT)
      uninit_use_in_call: Using uninitialized value txbuf when calling __fswab32.
      Test: Coverity scan pass.
      Change-Id: If57f70c272ef49a6636a59ae3b5dcc5430fd1753
      Signed-off-by: default avatarLuo Ji <ji.luo@nxp.com>
  17. 13 Mar, 2019 1 commit
  18. 12 Mar, 2019 2 commits
    • Ji Luo's avatar
      MA-14318-4 Support dual bootloader for xen · d3ddc197
      Ji Luo authored
      Add defconfig file to support dual bootloader for xen.
      Test: build and boot on imx8qm_mek.
      Change-Id: I21e372b71a9b25e4cbf71cf7f41cfd87296b9afe
      Signed-off-by: default avatarJi Luo <ji.luo@nxp.com>
    • Ye Li's avatar
      MLK-21103 imx8: Fix build break on ARM2 SPL · c20b7761
      Ye Li authored
      Meet the build error below with ARM2 SPL defconfig
      arch/arm/mach-imx/imx8/image.c: In function ‘spl_nor_get_uboot_base’:
      arch/arm/mach-imx/imx8/image.c:224:13: error: ‘CONFIG_SYS_UBOOT_BASE’
      undeclared (first use in this function)
      if (end <= CONFIG_SYS_UBOOT_BASE)
      The root cause is we did not add SPL NOR support for ARM2 SPL, but
      the codes still use the CONFIG_SYS_UBOOT_BASE.
      Fix the issue by adding SPL device support config for each device
      relevant function.
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
      (cherry picked from commit a96fd317)