2013-04-09 23:58:38 +04:00
|
|
|
asflags-y += -march=armv7-a
|
|
|
|
|
2010-01-22 03:53:02 +03:00
|
|
|
obj-y += io.o
|
2011-05-02 02:26:51 +04:00
|
|
|
obj-y += irq.o
|
2010-06-24 02:49:17 +04:00
|
|
|
obj-y += fuse.o
|
2012-01-26 01:43:28 +04:00
|
|
|
obj-y += pmc.o
|
2012-02-10 03:47:44 +04:00
|
|
|
obj-y += flowctrl.o
|
2012-06-13 17:55:47 +04:00
|
|
|
obj-y += powergate.o
|
2012-06-20 16:36:34 +04:00
|
|
|
obj-y += apbio.o
|
2012-10-31 13:41:17 +04:00
|
|
|
obj-y += pm.o
|
2013-01-04 13:32:22 +04:00
|
|
|
obj-y += reset.o
|
|
|
|
obj-y += reset-handler.o
|
2013-01-25 10:38:32 +04:00
|
|
|
obj-y += sleep.o
|
2013-02-13 21:15:50 +04:00
|
|
|
obj-y += tegra.o
|
2012-02-23 20:21:52 +04:00
|
|
|
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
2012-11-15 11:42:33 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20_speedo.o
|
2011-02-13 05:22:49 +03:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o
|
2012-10-08 04:23:57 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += sleep-tegra20.o
|
2013-08-12 13:40:05 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pm-tegra20.o
|
2012-10-31 13:41:15 +04:00
|
|
|
ifeq ($(CONFIG_CPU_IDLE),y)
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += cpuidle-tegra20.o
|
|
|
|
endif
|
2012-11-15 11:42:34 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30_speedo.o
|
2012-10-31 13:41:15 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += sleep-tegra30.o
|
ARM: tegra: add LP1 suspend support for Tegra30
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>
2013-08-12 13:40:04 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += pm-tegra30.o
|
2012-10-31 13:41:15 +04:00
|
|
|
ifeq ($(CONFIG_CPU_IDLE),y)
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += cpuidle-tegra30.o
|
|
|
|
endif
|
2012-03-03 00:58:32 +04:00
|
|
|
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
|
2010-02-22 04:46:23 +03:00
|
|
|
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
|
2010-02-11 04:13:07 +03:00
|
|
|
|
2013-03-18 15:17:34 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra114_speedo.o
|
2013-05-20 14:39:29 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_114_SOC) += sleep-tegra30.o
|
ARM: tegra: add LP1 suspend support for Tegra114
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. 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: Bo Yan <byan@nvidia.com>
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
2013-08-12 13:40:06 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_114_SOC) += pm-tegra30.o
|
2013-01-21 13:49:06 +04:00
|
|
|
ifeq ($(CONFIG_CPU_IDLE),y)
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA_114_SOC) += cpuidle-tegra114.o
|
|
|
|
endif
|
2013-10-11 13:57:30 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_124_SOC) += sleep-tegra30.o
|
2013-10-11 13:57:32 +04:00
|
|
|
ifeq ($(CONFIG_CPU_IDLE),y)
|
|
|
|
obj-$(CONFIG_ARCH_TEGRA_124_SOC) += cpuidle-tegra114.o
|
|
|
|
endif
|
2012-05-22 01:07:19 +04:00
|
|
|
|
2012-08-04 01:09:04 +04:00
|
|
|
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-paz00.o
|