diff options
Diffstat (limited to 'arch/arm/mach-tegra/sleep.S')
-rw-r--r-- | arch/arm/mach-tegra/sleep.S | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm/mach-tegra/sleep.S b/arch/arm/mach-tegra/sleep.S index 5b20197bae7f..d29b156a8011 100644 --- a/arch/arm/mach-tegra/sleep.S +++ b/arch/arm/mach-tegra/sleep.S | |||
@@ -62,32 +62,3 @@ | |||
62 | movw \reg, #:lower16:\val | 62 | movw \reg, #:lower16:\val |
63 | movt \reg, #:upper16:\val | 63 | movt \reg, #:upper16:\val |
64 | .endm | 64 | .endm |
65 | |||
66 | /* | ||
67 | * tegra_cpu_wfi | ||
68 | * | ||
69 | * puts current CPU in clock-gated wfi using the flow controller | ||
70 | * | ||
71 | * corrupts r0-r3 | ||
72 | * must be called with MMU on | ||
73 | */ | ||
74 | |||
75 | ENTRY(tegra_cpu_wfi) | ||
76 | cpu_id r0 | ||
77 | cpu_to_halt_reg r1, r0 | ||
78 | cpu_to_csr_reg r2, r0 | ||
79 | mov32 r0, TEGRA_FLOW_CTRL_VIRT | ||
80 | mov r3, #FLOW_CTRL_CSR_INTR_FLAG | FLOW_CTRL_CSR_EVENT_FLAG | ||
81 | str r3, [r0, r2] @ clear event & interrupt status | ||
82 | mov r3, #FLOW_CTRL_WAIT_FOR_INTERRUPT | FLOW_CTRL_JTAG_RESUME | ||
83 | str r3, [r0, r1] @ put flow controller in wait irq mode | ||
84 | dsb | ||
85 | wfi | ||
86 | mov r3, #0 | ||
87 | str r3, [r0, r1] @ clear flow controller halt status | ||
88 | mov r3, #FLOW_CTRL_CSR_INTR_FLAG | FLOW_CTRL_CSR_EVENT_FLAG | ||
89 | str r3, [r0, r2] @ clear event & interrupt status | ||
90 | dsb | ||
91 | mov pc, lr | ||
92 | ENDPROC(tegra_cpu_wfi) | ||
93 | |||