Thread (17 messages) 17 messages, 2 authors, 2013-08-06
STALE4681d
Revisions (7)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v2 [diff vs current]
  5. v2 [diff vs current]
  6. v2 current
  7. v3 [diff vs current]

[PATCH V2 5/8] ARM: tegra: add LP1 suspend support for Tegra30

From: Joseph Lo <hidden>
Date: 2013-08-06 09:47:13
Also in: linux-tegra

On Tue, 2013-08-06 at 01:53 +0800, Stephen Warren wrote:
On 08/05/2013 05:21 AM, Joseph Lo wrote:
quoted
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:
quoted
V2:
...
quoted
* modify tegra30_sdram_pad_save as suggestion
You should describe the change you made, not why you made the change.
Not everyone reading this new patch version will know/remember what
suggestions were made in response to v1, and that description above
therefore doesn't mean anything to them.
Indeed, will improve it next time.
quoted
diff --git a/arch/arm/mach-tegra/sleep-tegra30.S b/arch/arm/mach-tegra/sleep-tegra30.S
quoted
+/*
+ * tegra30_lp1_reset
+ *
+ * reset vector for LP1 restore; copied into IRAM during suspend.
+ * Brings the system back up to a safe staring point (SDRAM out of
+ * self-refresh, PLLC, PLLM and PLLP reenabled, CPU running on PLLX,
+ * system clock running on the same PLL that it suspended at), and
+ * jumps to tegra_resume to restore virtual addressing.
+ * The physical address of tegra_resume expected to be stored in
+ * PMC_SCRATCH41.
+ *
+ * NOTE: THIS *MUST* BE RELOCATED TO TEGRA_IRAM_CODE_AREA AND MUST BE FIRST.
This comment still contains the confusing "AND MUST BE FIRST" that was
in v1:-(
Oops, I only fixed it in 6/8.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help