diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-07-06 16:20:40 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-07-06 16:20:40 -0400 |
commit | ebaaa25de8376292b2dfc8252f5213e3a28bac70 (patch) | |
tree | 66cbb83e0dc63ccf090e5bb86c7d30927a5fa741 /arch/arm/mach-tegra | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) | |
parent | 702b0e4f2f2782962aab7d9a0a40ad68770bb1f6 (diff) |
Merge branch 'tegra/cleanup' into next/clk
Dependency for tegra/common-clk branch
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/Makefile.boot | 12 | ||||
-rw-r--r-- | arch/arm/mach-tegra/cpuidle.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-tegra/sleep.S | 29 |
4 files changed, 9 insertions, 41 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 6a113a9bb87a..7c407393cd07 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig | |||
@@ -63,7 +63,6 @@ comment "Tegra board type" | |||
63 | config MACH_HARMONY | 63 | config MACH_HARMONY |
64 | bool "Harmony board" | 64 | bool "Harmony board" |
65 | depends on ARCH_TEGRA_2x_SOC | 65 | depends on ARCH_TEGRA_2x_SOC |
66 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC | ||
67 | help | 66 | help |
68 | Support for nVidia Harmony development platform | 67 | Support for nVidia Harmony development platform |
69 | 68 | ||
@@ -71,7 +70,6 @@ config MACH_KAEN | |||
71 | bool "Kaen board" | 70 | bool "Kaen board" |
72 | depends on ARCH_TEGRA_2x_SOC | 71 | depends on ARCH_TEGRA_2x_SOC |
73 | select MACH_SEABOARD | 72 | select MACH_SEABOARD |
74 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC | ||
75 | help | 73 | help |
76 | Support for the Kaen version of Seaboard | 74 | Support for the Kaen version of Seaboard |
77 | 75 | ||
@@ -84,7 +82,6 @@ config MACH_PAZ00 | |||
84 | config MACH_SEABOARD | 82 | config MACH_SEABOARD |
85 | bool "Seaboard board" | 83 | bool "Seaboard board" |
86 | depends on ARCH_TEGRA_2x_SOC | 84 | depends on ARCH_TEGRA_2x_SOC |
87 | select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC | ||
88 | help | 85 | help |
89 | Support for nVidia Seaboard development platform. It will | 86 | Support for nVidia Seaboard development platform. It will |
90 | also be included for some of the derivative boards that | 87 | also be included for some of the derivative boards that |
diff --git a/arch/arm/mach-tegra/Makefile.boot b/arch/arm/mach-tegra/Makefile.boot index 9a82094092d7..8040345bd971 100644 --- a/arch/arm/mach-tegra/Makefile.boot +++ b/arch/arm/mach-tegra/Makefile.boot | |||
@@ -2,9 +2,9 @@ zreladdr-$(CONFIG_ARCH_TEGRA_2x_SOC) += 0x00008000 | |||
2 | params_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00000100 | 2 | params_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00000100 |
3 | initrd_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00800000 | 3 | initrd_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00800000 |
4 | 4 | ||
5 | dtb-$(CONFIG_MACH_HARMONY) += tegra-harmony.dtb | 5 | dtb-$(CONFIG_MACH_HARMONY) += tegra20-harmony.dtb |
6 | dtb-$(CONFIG_MACH_PAZ00) += tegra-paz00.dtb | 6 | dtb-$(CONFIG_MACH_PAZ00) += tegra20-paz00.dtb |
7 | dtb-$(CONFIG_MACH_SEABOARD) += tegra-seaboard.dtb | 7 | dtb-$(CONFIG_MACH_SEABOARD) += tegra20-seaboard.dtb |
8 | dtb-$(CONFIG_MACH_TRIMSLICE) += tegra-trimslice.dtb | 8 | dtb-$(CONFIG_MACH_TRIMSLICE) += tegra20-trimslice.dtb |
9 | dtb-$(CONFIG_MACH_VENTANA) += tegra-ventana.dtb | 9 | dtb-$(CONFIG_MACH_VENTANA) += tegra20-ventana.dtb |
10 | dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra-cardhu.dtb | 10 | dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30-cardhu.dtb |
diff --git a/arch/arm/mach-tegra/cpuidle.c b/arch/arm/mach-tegra/cpuidle.c index d83a8c0296f5..566e2f88899b 100644 --- a/arch/arm/mach-tegra/cpuidle.c +++ b/arch/arm/mach-tegra/cpuidle.c | |||
@@ -27,9 +27,9 @@ | |||
27 | #include <linux/cpuidle.h> | 27 | #include <linux/cpuidle.h> |
28 | #include <linux/hrtimer.h> | 28 | #include <linux/hrtimer.h> |
29 | 29 | ||
30 | #include <mach/iomap.h> | 30 | #include <asm/proc-fns.h> |
31 | 31 | ||
32 | extern void tegra_cpu_wfi(void); | 32 | #include <mach/iomap.h> |
33 | 33 | ||
34 | static int tegra_idle_enter_lp3(struct cpuidle_device *dev, | 34 | static int tegra_idle_enter_lp3(struct cpuidle_device *dev, |
35 | struct cpuidle_driver *drv, int index); | 35 | struct cpuidle_driver *drv, int index); |
@@ -64,7 +64,7 @@ static int tegra_idle_enter_lp3(struct cpuidle_device *dev, | |||
64 | 64 | ||
65 | enter = ktime_get(); | 65 | enter = ktime_get(); |
66 | 66 | ||
67 | tegra_cpu_wfi(); | 67 | cpu_do_idle(); |
68 | 68 | ||
69 | exit = ktime_sub(ktime_get(), enter); | 69 | exit = ktime_sub(ktime_get(), enter); |
70 | us = ktime_to_us(exit); | 70 | us = ktime_to_us(exit); |
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 | |||