mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 05:33:09 +00:00
e7a932b196
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: Joseph Lo <josephl@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
asflags-y += -march=armv7-a
|
|
|
|
obj-y += common.o
|
|
obj-y += io.o
|
|
obj-y += irq.o
|
|
obj-y += fuse.o
|
|
obj-y += pmc.o
|
|
obj-y += flowctrl.o
|
|
obj-y += powergate.o
|
|
obj-y += apbio.o
|
|
obj-y += pm.o
|
|
obj-y += reset.o
|
|
obj-y += reset-handler.o
|
|
obj-y += sleep.o
|
|
obj-y += tegra.o
|
|
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20_speedo.o
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += sleep-tegra20.o
|
|
ifeq ($(CONFIG_CPU_IDLE),y)
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += cpuidle-tegra20.o
|
|
endif
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30_speedo.o
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += sleep-tegra30.o
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += pm-tegra30.o
|
|
ifeq ($(CONFIG_CPU_IDLE),y)
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += cpuidle-tegra30.o
|
|
endif
|
|
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
|
|
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
|
|
obj-$(CONFIG_TEGRA_PCI) += pcie.o
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra114_speedo.o
|
|
obj-$(CONFIG_ARCH_TEGRA_114_SOC) += sleep-tegra30.o
|
|
ifeq ($(CONFIG_CPU_IDLE),y)
|
|
obj-$(CONFIG_ARCH_TEGRA_114_SOC) += cpuidle-tegra114.o
|
|
endif
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-harmony-pcie.o
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-paz00.o
|