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