1. 20 Mar, 2017 7 commits
    • Varun Wadekar's avatar
      Tegra186: update SYSCNT_FREQ to 31.25MHz · 5d74d68e
      Varun Wadekar authored
      
      
      The System Counter Frequency has been updated to 31.25MHz after
      some experiments as the previous value was too high.
      
      Change-Id: I79986ee1c0c88700a3a2b1dbff2d3f00c0c412b9
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      5d74d68e
    • Varun Wadekar's avatar
      Tegra186: relocate bl31.bin to the SYSRAM · b5ef9569
      Varun Wadekar authored
      
      
      Tegra186 has an on-die, 320KB, "System RAM" memory. Out of the total
      size, 256KB are allocated for the CPU TrustZone binaries - EL3 monitor
      and Trusted OS.
      
      This patch changes the base address for bl31.bin to the SysRAM base
      address. The carveout is too small for the Trusted OS, so we relocate
      only the monitor binary.
      
      Change-Id: Ib4b667ff2a7a619589851338f9d0bfb02078c575
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      b5ef9569
    • Varun Wadekar's avatar
      Tegra186: implement prepare_system_off handler · c7ec0892
      Varun Wadekar authored
      
      
      This patch issues the 'System Off' ARI to power off the entire
      system from the 'prepare_system_off' handler.
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      c7ec0892
    • Varun Wadekar's avatar
      Tegra186: power on/off secondary CPUs · b47d97b3
      Varun Wadekar authored
      
      
      This patch add code to power on/off the secondary CPUs on the Tegra186
      chip. The MCE block is the actual hardware that takes care of the
      power on/off sequence. We pass the constructed CPU #, depending on the
      MIDR_IMPL field, to the MCE CPU handlers.
      
      This patch also programs the reset vector addresses to allow the
      CPUs to power on through the monitor and then jump to the linux
      world.
      
      Change-Id: Idc164586cda91c2009d66f3e09bf4464de9662db
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      b47d97b3
    • Varun Wadekar's avatar
      Tegra186: SiP calls to interact with the MCE driver · bb844c1f
      Varun Wadekar authored
      
      
      This patch adds the new SiP SMC calls to allow the NS world to
      interact with the MCE hardware block on Tegra186 chips.
      
      Change-Id: I79c6b9f76d68a87abd57a940613ec070562d2eac
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      bb844c1f
    • Varun Wadekar's avatar
      Tegra186: mce: driver for the CPU complex power manager block · 7808b06b
      Varun Wadekar authored
      
      
      The CPU Complex (CCPLEX) Power Manager (Denver MCE, or DMCE) is an
      offload engine for BPMP to do voltage related sequencing and for
      hardware requests to be handled in a better latency than BPMP-firmware.
      
      There are two interfaces to the MCEs - Abstract Request Interface (ARI)
      and the traditional NVGINDEX/NVGDATA interface.
      
      MCE supports various commands which can be used by CPUs - ARM as well
      as Denver, for power management and reset functionality. Since the
      linux kernel is the master for all these scenarios, each MCE command
      can be issued by a corresponding SMC. These SMCs have been moved to
      SiP SMC space as they are specific to the Tegra186 SoC.
      
      Change-Id: I67bee83d2289a8ab63bc5556e5744e5043803e51
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      7808b06b
    • Varun Wadekar's avatar
      Tegra186: platform support for Tegra "T186" SoC · 3cf3183f
      Varun Wadekar authored
      
      
      Tegra186 is the newest SoC in the Tegra family which consists
      of two CPU clusters - Denver and A57. The Denver cluster hosts
      two next gen Denver15 CPUs while the A57 cluster hosts four ARM
      Cortex-A57 CPUs. Unlike previous Tegra generations, all the six
      cores on this SoC would be available to the system at the same
      time and individual clusters can be powered down to conserve
      power.
      
      Change-Id: Id0c9919dbf5186d2938603e0b11e821b5892985e
      Signed-off-by: default avatarWayne Lin <wlin@nvidia.com>
      Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
      3cf3183f