1. 21 Jan, 2019 3 commits
    • Andrew F. Davis's avatar
      ti: k3: common: Use shutdown API for PSCI core poweroff · ca3d3414
      Andrew F. Davis authored
      
      
      To ensure WFI is reached before the PSC is trigger to power-down
      a processor, the shutdonw API must be used.
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      Acked-by: default avatarNishanth Menon <nm@ti.com>
      ca3d3414
    • Andrew F. Davis's avatar
      ti: k3: drivers: ti_sci: Add processor shutdown API · 72f418e0
      Andrew F. Davis authored
      
      
      This is a pseudo-API command consisting of a wait processor status
      command and a set device state command queued back-to-back without
      waiting for the System Firmware to ACK either message.
      
      This is needed as the K3 power down specification states the System
      Firmware must wait for a processor to be in WFI/WFE before powering
      it down. The current implementation of System Firmware does not provide
      such a command. Also given that with PSCI the core to be shutdown is the
      core that is processing the shutdown request, the core cannot itself wait
      for its own WFI/WFE status. To workaround this limitation, we submit
      a wait processor status command followed by the actual shutdown command.
      The shutdown command will not be processed until the wait command has
      finished. In this way we can continue to WFI before the wait command
      status has been met or timed-out and the shutdown command is processed.
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      Acked-by: default avatarNishanth Menon <nm@ti.com>
      72f418e0
    • Andrew F. Davis's avatar
      ti: k3: drivers: ti_sci: Add processor status wait API · 394977e7
      Andrew F. Davis authored
      
      
      This TI-SCI API can be used wait for a set of processor status flags to
      be set or cleared. The flags are processor type specific. This command
      will not return ACK until the specified status is met. NACK will be
      returned after the timeout elapses or on error.
      Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
      Acked-by: default avatarNishanth Menon <nm@ti.com>
      394977e7
  2. 18 Jan, 2019 37 commits