diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 18 | ||||
-rw-r--r-- | arch/arm/mach-tegra/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-dt-tegra30.c | 62 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/common.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/irqs.h | 2 |
6 files changed, 83 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 996828d68dc0..b3d78fcd4bef 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig | |||
@@ -2,11 +2,8 @@ if ARCH_TEGRA | |||
2 | 2 | ||
3 | comment "NVIDIA Tegra options" | 3 | comment "NVIDIA Tegra options" |
4 | 4 | ||
5 | choice | ||
6 | prompt "Select Tegra processor family for target system" | ||
7 | |||
8 | config ARCH_TEGRA_2x_SOC | 5 | config ARCH_TEGRA_2x_SOC |
9 | bool "Tegra 2 family" | 6 | bool "Enable support for Tegra20 family" |
10 | select CPU_V7 | 7 | select CPU_V7 |
11 | select ARM_GIC | 8 | select ARM_GIC |
12 | select ARCH_REQUIRE_GPIOLIB | 9 | select ARCH_REQUIRE_GPIOLIB |
@@ -17,7 +14,18 @@ config ARCH_TEGRA_2x_SOC | |||
17 | Support for NVIDIA Tegra AP20 and T20 processors, based on the | 14 | Support for NVIDIA Tegra AP20 and T20 processors, based on the |
18 | ARM CortexA9MP CPU and the ARM PL310 L2 cache controller | 15 | ARM CortexA9MP CPU and the ARM PL310 L2 cache controller |
19 | 16 | ||
20 | endchoice | 17 | config ARCH_TEGRA_3x_SOC |
18 | bool "Enable support for Tegra30 family" | ||
19 | select CPU_V7 | ||
20 | select ARM_GIC | ||
21 | select ARCH_REQUIRE_GPIOLIB | ||
22 | select USB_ARCH_HAS_EHCI if USB_SUPPORT | ||
23 | select USB_ULPI if USB_SUPPORT | ||
24 | select USB_ULPI_VIEWPORT if USB_SUPPORT | ||
25 | select USE_OF | ||
26 | help | ||
27 | Support for NVIDIA Tegra T30 processor family, based on the | ||
28 | ARM CortexA9MP CPU and the ARM PL310 L2 cache controller | ||
21 | 29 | ||
22 | config TEGRA_PCI | 30 | config TEGRA_PCI |
23 | bool "PCI Express support" | 31 | bool "PCI Express support" |
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile index ced566e5cc14..d9bf7c19660e 100644 --- a/arch/arm/mach-tegra/Makefile +++ b/arch/arm/mach-tegra/Makefile | |||
@@ -11,6 +11,7 @@ obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_clocks.o | |||
11 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o | 11 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o |
12 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pinmux-tegra20-tables.o | 12 | obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pinmux-tegra20-tables.o |
13 | obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += pinmux-tegra30-tables.o | 13 | obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += pinmux-tegra30-tables.o |
14 | obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += board-dt-tegra30.o | ||
14 | obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o | 15 | obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o |
15 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 16 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
16 | obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o | 17 | obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o |
diff --git a/arch/arm/mach-tegra/board-dt-tegra30.c b/arch/arm/mach-tegra/board-dt-tegra30.c new file mode 100644 index 000000000000..f44a29cfbe2b --- /dev/null +++ b/arch/arm/mach-tegra/board-dt-tegra30.c | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/board-dt-tegra30.c | ||
3 | * | ||
4 | * NVIDIA Tegra30 device tree board support | ||
5 | * | ||
6 | * Copyright (C) 2011 NVIDIA Corporation | ||
7 | * | ||
8 | * Derived from: | ||
9 | * | ||
10 | * arch/arm/mach-tegra/board-dt-tegra20.c | ||
11 | * | ||
12 | * Copyright (C) 2010 Secret Lab Technologies, Ltd. | ||
13 | * Copyright (C) 2010 Google, Inc. | ||
14 | * | ||
15 | * This software is licensed under the terms of the GNU General Public | ||
16 | * License version 2, as published by the Free Software Foundation, and | ||
17 | * may be copied, distributed, and modified under those terms. | ||
18 | * | ||
19 | * This program is distributed in the hope that it will be useful, | ||
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
22 | * GNU General Public License for more details. | ||
23 | * | ||
24 | */ | ||
25 | |||
26 | #include <linux/kernel.h> | ||
27 | #include <linux/of.h> | ||
28 | #include <linux/of_address.h> | ||
29 | #include <linux/of_fdt.h> | ||
30 | #include <linux/of_irq.h> | ||
31 | #include <linux/of_platform.h> | ||
32 | |||
33 | #include <asm/mach/arch.h> | ||
34 | #include <asm/hardware/gic.h> | ||
35 | |||
36 | #include "board.h" | ||
37 | |||
38 | static struct of_device_id tegra_dt_match_table[] __initdata = { | ||
39 | { .compatible = "simple-bus", }, | ||
40 | {} | ||
41 | }; | ||
42 | |||
43 | static void __init tegra30_dt_init(void) | ||
44 | { | ||
45 | of_platform_populate(NULL, tegra_dt_match_table, | ||
46 | NULL, NULL); | ||
47 | } | ||
48 | |||
49 | static const char *tegra30_dt_board_compat[] = { | ||
50 | NULL | ||
51 | }; | ||
52 | |||
53 | DT_MACHINE_START(TEGRA30_DT, "NVIDIA Tegra30 (Flattened Device Tree)") | ||
54 | .map_io = tegra_map_common_io, | ||
55 | .init_early = tegra30_init_early, | ||
56 | .init_irq = tegra_dt_init_irq, | ||
57 | .handle_irq = gic_handle_irq, | ||
58 | .timer = &tegra_timer, | ||
59 | .init_machine = tegra30_dt_init, | ||
60 | .restart = tegra_assert_system_reset, | ||
61 | .dt_compat = tegra30_dt_board_compat, | ||
62 | MACHINE_END | ||
diff --git a/arch/arm/mach-tegra/board.h b/arch/arm/mach-tegra/board.h index fdec3ffa4455..628f5a8a0d9a 100644 --- a/arch/arm/mach-tegra/board.h +++ b/arch/arm/mach-tegra/board.h | |||
@@ -26,6 +26,7 @@ | |||
26 | void tegra_assert_system_reset(char mode, const char *cmd); | 26 | void tegra_assert_system_reset(char mode, const char *cmd); |
27 | 27 | ||
28 | void __init tegra20_init_early(void); | 28 | void __init tegra20_init_early(void); |
29 | void __init tegra30_init_early(void); | ||
29 | void __init tegra_map_common_io(void); | 30 | void __init tegra_map_common_io(void); |
30 | void __init tegra_init_irq(void); | 31 | void __init tegra_init_irq(void); |
31 | void __init tegra_dt_init_irq(void); | 32 | void __init tegra_dt_init_irq(void); |
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index a5c14dc304d1..8911e620c092 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c | |||
@@ -102,3 +102,9 @@ void __init tegra20_init_early(void) | |||
102 | tegra_init_cache(0x331, 0x441); | 102 | tegra_init_cache(0x331, 0x441); |
103 | } | 103 | } |
104 | #endif | 104 | #endif |
105 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC | ||
106 | void __init tegra30_init_early(void) | ||
107 | { | ||
108 | tegra_init_cache(0x441, 0x551); | ||
109 | } | ||
110 | #endif | ||
diff --git a/arch/arm/mach-tegra/include/mach/irqs.h b/arch/arm/mach-tegra/include/mach/irqs.h index 73265af4dda3..a2146cd6867d 100644 --- a/arch/arm/mach-tegra/include/mach/irqs.h +++ b/arch/arm/mach-tegra/include/mach/irqs.h | |||
@@ -25,7 +25,6 @@ | |||
25 | 25 | ||
26 | #define IRQ_LOCALTIMER 29 | 26 | #define IRQ_LOCALTIMER 29 |
27 | 27 | ||
28 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
29 | /* Primary Interrupt Controller */ | 28 | /* Primary Interrupt Controller */ |
30 | #define INT_PRI_BASE (INT_GIC_BASE + 32) | 29 | #define INT_PRI_BASE (INT_GIC_BASE + 32) |
31 | #define INT_TMR1 (INT_PRI_BASE + 0) | 30 | #define INT_TMR1 (INT_PRI_BASE + 0) |
@@ -178,6 +177,5 @@ | |||
178 | #define NR_BOARD_IRQS 32 | 177 | #define NR_BOARD_IRQS 32 |
179 | 178 | ||
180 | #define NR_IRQS (INT_BOARD_BASE + NR_BOARD_IRQS) | 179 | #define NR_IRQS (INT_BOARD_BASE + NR_BOARD_IRQS) |
181 | #endif | ||
182 | 180 | ||
183 | #endif | 181 | #endif |