1. 13 8月, 2013 4 次提交
    • J
      ARM: tegra: add LP1 suspend support for Tegra30 · e7a932b1
      Joseph Lo 提交于
      The LP1 suspend mode will power off the CPU, clock gated the PLLs and put
      SDRAM to self-refresh mode. Any interrupt can wake up device from LP1. The
      sequence when LP1 suspending:
      
      * tunning off L1 data cache and the MMU
      * storing some EMC registers, DPD (deep power down) status, clk source of
        mselect and SCLK burst policy
      * putting SDRAM into self-refresh
      * switching CPU to CLK_M (12MHz OSC)
      * tunning off PLLM, PLLP, PLLA, PLLC and PLLX
      * switching SCLK to CLK_S (32KHz OSC)
      * shutting off the CPU rail
      
      The sequence of LP1 resuming:
      
      * re-enabling PLLM, PLLP, PLLA, PLLC and PLLX
      * restoring the clk source of mselect and SCLK burst policy
      * setting up CCLK burst policy to PLLX
      * restoring DPD status and some EMC registers
      * resuming SDRAM to normal mode
      * jumping to the "tegra_resume" from PMC_SCRATCH41
      
      Due to the SDRAM will be put into self-refresh mode, the low level
      procedures of LP1 suspending and resuming should be copied to
      TEGRA_IRAM_CODE_AREA (TEGRA_IRAM_BASE + SZ_4K) when suspending. Before
      restoring the CPU context when resuming, the SDRAM needs to be switched
      back to normal mode. And the PLLs need to be re-enabled, SCLK burst policy
      be restored, CCLK burst policy be set in PLLX. Then jumping to
      "tegra_resume" that was expected to be stored in PMC_SCRATCH41 to restore
      CPU context and back to kernel.
      
      Based on the work by: Scott Williams <scwilliams@nvidia.com>
      Signed-off-by: NJoseph Lo <josephl@nvidia.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      e7a932b1
    • J
      ARM: tegra: add common LP1 suspend support · 95872f42
      Joseph Lo 提交于
      The LP1 suspending mode on Tegra means CPU rail off, devices and PLLs are
      clock gated and SDRAM in self-refresh mode. That means the low level LP1
      suspending and resuming code couldn't be run on DRAM and the CPU must
      switch to the always on clock domain (a.k.a. CLK_M 12MHz oscillator). And
      the system clock (SCLK) would be switched to CLK_S, a 32KHz oscillator.
      The LP1 low level handling code need to be moved to IRAM area first. And
      marking the LP1 mask for indicating the Tegra device is in LP1. The CPU
      power timer needs to be re-calculated based on 32KHz that was originally
      based on PCLK.
      
      When resuming from LP1, the LP1 reset handler will resume PLLs and then
      put DRAM to normal mode. Then jumping to the "tegra_resume" that will
      restore full context before back to kernel. The "tegra_resume" handler
      was expected to be found in PMC_SCRATCH41 register.
      
      This is common LP1 procedures for Tegra, so we do these jobs mainly in
      this patch:
      * moving LP1 low level handling code to IRAM
      * marking LP1 mask
      * copying the physical address of "tegra_resume" to PMC_SCRATCH41
      * re-calculate the CPU power timer based on 32KHz
      Signed-off-by: NJoseph Lo <josephl@nvidia.com>
      [swarren, replaced IRAM_CODE macro with IO_ADDRESS(TEGRA_IRAM_CODE_AREA)]
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      95872f42
    • J
      ARM: tegra: config the polarity of the request of sys clock · 444f9a80
      Joseph Lo 提交于
      When suspending to LP1 mode, the SYSCLK will be clock gated. And different
      board may have different polarity of the request of SYSCLK, this patch
      configure the polarity from the DT for the board.
      Signed-off-by: NJoseph Lo <josephl@nvidia.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      444f9a80
    • J
      ARM: tegra: add common resume handling code for LP1 resuming · 5b795d05
      Joseph Lo 提交于
      Add support to the Tegra CPU reset vector to detect whether the CPU is
      resuming from LP1 suspend state. If it is, branch to the LP1-specific
      resume code.
      
      When Tegra enters the LP1 suspend state, the SDRAM controller is placed
      into a self-refresh state. For this reason, we must place the LP1 resume
      code into IRAM, so that it is accessible before SDRAM access has been
      re-enabled.
      Signed-off-by: NJoseph Lo <josephl@nvidia.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      5b795d05
  2. 09 8月, 2013 1 次提交
    • S
      ARM: tegra: unify Tegra's Kconfig a bit more · 20984c44
      Stephen Warren 提交于
      Move all common select clauses from ARCH_TEGRA_*_SOC to ARCH_TEGRA to
      eliminate duplication. The USB-related selects all should have been
      common too, but were missing from Tegra114 previously. Move these to
      ARCH_TEGRA too. The latter fixes a build break when only Tegra114
      support was enabled, but not Tegra20 or Tegra30 support.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      20984c44
  3. 20 7月, 2013 12 次提交
  4. 16 7月, 2013 1 次提交
  5. 10 7月, 2013 1 次提交
  6. 26 6月, 2013 1 次提交
  7. 18 6月, 2013 1 次提交
  8. 07 6月, 2013 1 次提交
  9. 06 6月, 2013 5 次提交
  10. 01 6月, 2013 1 次提交
  11. 29 5月, 2013 1 次提交
  12. 23 5月, 2013 5 次提交
  13. 18 5月, 2013 2 次提交
  14. 04 5月, 2013 1 次提交
  15. 29 4月, 2013 1 次提交
  16. 23 4月, 2013 2 次提交