1. 20 May, 2019 1 commit
    • Leonard Crestez's avatar
      plat: imx8mq: Implement IMX_SIP_GET_SOC_INFO · 72196cbb
      Leonard Crestez authored
      The manual documents that 0x3036006c should contains the soc revision
      for imx8mq but this always reports A0. Work around this by parsing the
      ROM header and checking if OCOTP register 0x40 is stuck at 0xff0055aa.
      
      Determining this inside TF-A makes life easier for OS, see for example
      this linux discussion: https://lkml.org/lkml/2019/5/3/465
      
      
      
      The soc revision can also be useful inside TF-A itself, for example for
      the non-upstream DDR DVFS "busfreq" feature is affected by 8mq erratas.
      
      The clock for OCOTP block can be disabled by OS so only initialize soc
      revision once at boot time.
      
      Change-Id: I9ca3f27840229ce8a28b53870e44da29f63c73aa
      Signed-off-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
      72196cbb
  2. 18 Jan, 2019 4 commits
  3. 17 Jan, 2019 2 commits
    • Anson Huang's avatar
      imx: add cpu-freq SIP runtime service support · d3996c59
      Anson Huang authored
      
      
      On i.MX8QM/i.MX8QX with system controller inside, the CPU's clock
      rate is managed by SCFW(system controller firmware) and can ONLY be
      changed from secure world, so SIP runtime service is needed for
      setting CPU's clock rate, this patch adds cpu-freq SIP runtime service
      support.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      d3996c59
    • Anson Huang's avatar
      imx: add imx8qm/imx8qx SRTC SIP runtime service support · 025514ba
      Anson Huang authored
      
      
      On i.MX8QM/i.MX8QX with system controller inside, the SRTC is
      managed by SCFW(system controller firmware) and some functions
      like setting SRTC's time etc. can ONLY be requested from secure
      world, so SIP runtime service is needed for such kind of operations,
      this patch adds SRTC SIP runtime service support for i.MX8QM and
      i.MX8QX.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      025514ba