diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-msm/Kconfig | 16 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 5 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-msm8960.c | 58 |
3 files changed, 79 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig index 5d3d9ade12fb..adca96ca4093 100644 --- a/arch/arm/mach-msm/Kconfig +++ b/arch/arm/mach-msm/Kconfig | |||
@@ -48,6 +48,16 @@ config ARCH_MSM8X60 | |||
48 | select IOMMU_API | 48 | select IOMMU_API |
49 | select MSM_SCM if SMP | 49 | select MSM_SCM if SMP |
50 | 50 | ||
51 | config ARCH_MSM8960 | ||
52 | bool "MSM8960" | ||
53 | select ARCH_MSM_SCORPIONMP | ||
54 | select MACH_MSM8960_SIM | ||
55 | select ARM_GIC | ||
56 | select CPU_V7 | ||
57 | select MSM_V2_TLMM | ||
58 | select MSM_GPIOMUX | ||
59 | select MSM_SCM if SMP | ||
60 | |||
51 | endchoice | 61 | endchoice |
52 | 62 | ||
53 | config MSM_SOC_REV_A | 63 | config MSM_SOC_REV_A |
@@ -125,6 +135,12 @@ config MACH_MSM8X60_FFA | |||
125 | help | 135 | help |
126 | Support for the Qualcomm MSM8x60 FFA eval board. | 136 | Support for the Qualcomm MSM8x60 FFA eval board. |
127 | 137 | ||
138 | config MACH_MSM8960_SIM | ||
139 | depends on ARCH_MSM8960 | ||
140 | bool "MSM8960 Simulator" | ||
141 | help | ||
142 | Support for the Qualcomm MSM8960 simulator. | ||
143 | |||
128 | endmenu | 144 | endmenu |
129 | 145 | ||
130 | config IOMMU_PGTABLES_L2 | 146 | config IOMMU_PGTABLES_L2 |
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index 3e15ff3bffbc..02294279290d 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile | |||
@@ -6,6 +6,7 @@ obj-$(CONFIG_ARCH_MSM7X00A) += dma.o irq.o acpuclock-arm11.o | |||
6 | obj-$(CONFIG_ARCH_MSM7X30) += dma.o | 6 | obj-$(CONFIG_ARCH_MSM7X30) += dma.o |
7 | obj-$(CONFIG_ARCH_QSD8X50) += dma.o sirc.o | 7 | obj-$(CONFIG_ARCH_QSD8X50) += dma.o sirc.o |
8 | obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o iommu.o iommu_dev.o devices-msm8x60-iommu.o | 8 | obj-$(CONFIG_ARCH_MSM8X60) += clock-dummy.o iommu.o iommu_dev.o devices-msm8x60-iommu.o |
9 | obj-$(CONFIG_ARCH_MSM8960) += clock-dummy.o | ||
9 | 10 | ||
10 | obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o | 11 | obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o |
11 | obj-$(CONFIG_MSM_PROC_COMM) += clock.o | 12 | obj-$(CONFIG_MSM_PROC_COMM) += clock.o |
@@ -23,12 +24,16 @@ obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o devices-msm7x00.o | |||
23 | obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o | 24 | obj-$(CONFIG_ARCH_MSM7X30) += board-msm7x30.o devices-msm7x30.o |
24 | obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o | 25 | obj-$(CONFIG_ARCH_QSD8X50) += board-qsd8x50.o devices-qsd8x50.o |
25 | obj-$(CONFIG_ARCH_MSM8X60) += board-msm8x60.o | 26 | obj-$(CONFIG_ARCH_MSM8X60) += board-msm8x60.o |
27 | obj-$(CONFIG_ARCH_MSM8960) += board-msm8960.o | ||
26 | 28 | ||
27 | obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-7x30.o gpiomux-v1.o gpiomux.o | 29 | obj-$(CONFIG_ARCH_MSM7X30) += gpiomux-7x30.o gpiomux-v1.o gpiomux.o |
28 | obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-v1.o gpiomux.o | 30 | obj-$(CONFIG_ARCH_QSD8X50) += gpiomux-8x50.o gpiomux-v1.o gpiomux.o |
29 | obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o gpiomux-v2.o gpiomux.o | 31 | obj-$(CONFIG_ARCH_MSM8X60) += gpiomux-8x60.o gpiomux-v2.o gpiomux.o |
30 | ifdef CONFIG_MSM_V2_TLMM | 32 | ifdef CONFIG_MSM_V2_TLMM |
33 | ifndef CONFIG_ARCH_MSM8960 | ||
34 | # TODO: TLMM Mapping issues need to be resolved | ||
31 | obj-y += gpio-v2.o | 35 | obj-y += gpio-v2.o |
36 | endif | ||
32 | else | 37 | else |
33 | obj-y += gpio.o | 38 | obj-y += gpio.o |
34 | endif | 39 | endif |
diff --git a/arch/arm/mach-msm/board-msm8960.c b/arch/arm/mach-msm/board-msm8960.c new file mode 100644 index 000000000000..90efd5472be1 --- /dev/null +++ b/arch/arm/mach-msm/board-msm8960.c | |||
@@ -0,0 +1,58 @@ | |||
1 | /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. | ||
2 | * | ||
3 | * This program is free software; you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | * | ||
12 | * You should have received a copy of the GNU General Public License | ||
13 | * along with this program; if not, write to the Free Software | ||
14 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
15 | * 02110-1301, USA. | ||
16 | * | ||
17 | */ | ||
18 | #include <linux/kernel.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/io.h> | ||
21 | #include <linux/irq.h> | ||
22 | |||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/mach/arch.h> | ||
25 | #include <asm/hardware/gic.h> | ||
26 | |||
27 | #include <mach/board.h> | ||
28 | #include <mach/msm_iomap.h> | ||
29 | |||
30 | static void __init msm8960_map_io(void) | ||
31 | { | ||
32 | msm_map_msm8960_io(); | ||
33 | } | ||
34 | |||
35 | static void __init msm8960_init_irq(void) | ||
36 | { | ||
37 | unsigned int i; | ||
38 | gic_init(0, GIC_PPI_START, MSM_QGIC_DIST_BASE, | ||
39 | (void *)MSM_QGIC_CPU_BASE); | ||
40 | |||
41 | /* Edge trigger PPIs except AVS_SVICINT and AVS_SVICINTSWDONE */ | ||
42 | writel(0xFFFFD7FF, MSM_QGIC_DIST_BASE + GIC_DIST_CONFIG + 4); | ||
43 | |||
44 | /* FIXME: Not installing AVS_SVICINT and AVS_SVICINTSWDONE yet | ||
45 | * as they are configured as level, which does not play nice with | ||
46 | * handle_percpu_irq. | ||
47 | */ | ||
48 | for (i = GIC_PPI_START; i < GIC_SPI_START; i++) { | ||
49 | if (i != AVS_SVICINT && i != AVS_SVICINTSWDONE) | ||
50 | set_irq_handler(i, handle_percpu_irq); | ||
51 | } | ||
52 | } | ||
53 | |||
54 | MACHINE_START(MSM8960_SIM, "QCT MSM8960 SIMULATOR") | ||
55 | .map_io = msm8960_map_io, | ||
56 | .init_irq = msm8960_init_irq, | ||
57 | .timer = &msm_timer, | ||
58 | MACHINE_END | ||