Skip to content
Snippets Groups Projects
  1. Oct 28, 2019
  2. Oct 25, 2019
    • Lokesh Vutla's avatar
      spl: dm_mmc: Initialize only the required mmc device · e21fa672
      Lokesh Vutla authored
      
      In SPL, all the available mmc devices gets initialized during boot.
      This might not work in cases where clocks are not available for
      certain mmc devices(other than boot device) and the support for
      enabling device might not be ready.
      
      Texas Instruments' K3 J721E device having a central system controller
      (dmsc) is one such example falling in this category. Below is the
      sequence for the failing scenario:
      - ROM comes up in SD mode and loads SPL by just initialing SD card.
      - SPL loads dmsc firmware from SD Card.
      Since ROM has enabled SD, SPL need not enable the SD, just need
      to re initialize the card. But SPL is trying to initialize other MMC
      instances which are in disabled state. Since dmsc firmware is not yet
      available, devices cannot be enabled. So in SPL, initialize only the
      mmc device that is needed.
      
      Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
      Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
      e21fa672
Loading