diff options
| author | Olof Johansson <olof@lixom.net> | 2012-09-16 20:39:21 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-09-16 20:39:21 -0400 |
| commit | 0e7d35c1fb708355ccef7cc4243509a3156c839b (patch) | |
| tree | 52271a65ddb479a0cb7d2878fcb0be398027aacc | |
| parent | a838ef7c0e80ac160fe99992c3456437be603690 (diff) | |
| parent | 33fcb13dc543af610c7c930dbfeeed6e6ed02376 (diff) | |
Merge tag 'msm-board-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm into next/boards
Final parts to allow msm8660 and msm8960 to build into the same
kernel. This won't work without the changes from msm-dt-for-3.7.
* tag 'msm-board-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm:
ARM: msm: Allow 8960 and 8660 to compile together
ARM: msm: Allow msm_iomap-8x60 and msm_iomap-8960 to coexist
| -rw-r--r-- | arch/arm/mach-msm/Kconfig | 8 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | 11 | ||||
| -rw-r--r-- | arch/arm/mach-msm/include/mach/msm_iomap.h | 3 | ||||
| -rw-r--r-- | arch/arm/mach-msm/io.c | 2 |
4 files changed, 7 insertions, 17 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig index 1cd40ad301d3..03c549369ce3 100644 --- a/arch/arm/mach-msm/Kconfig +++ b/arch/arm/mach-msm/Kconfig | |||
| @@ -1,8 +1,12 @@ | |||
| 1 | if ARCH_MSM | 1 | if ARCH_MSM |
| 2 | 2 | ||
| 3 | comment "Qualcomm MSM SoC Type" | ||
| 4 | depends on (ARCH_MSM8X60 || ARCH_MSM8960) | ||
| 5 | |||
| 3 | choice | 6 | choice |
| 4 | prompt "Qualcomm MSM SoC Type" | 7 | prompt "Qualcomm MSM SoC Type" |
| 5 | default ARCH_MSM7X00A | 8 | default ARCH_MSM7X00A |
| 9 | depends on !(ARCH_MSM8X60 || ARCH_MSM8960) | ||
| 6 | 10 | ||
| 7 | config ARCH_MSM7X00A | 11 | config ARCH_MSM7X00A |
| 8 | bool "MSM7x00A / MSM7x01A" | 12 | bool "MSM7x00A / MSM7x01A" |
| @@ -36,6 +40,8 @@ config ARCH_QSD8X50 | |||
| 36 | select GPIO_MSM_V1 | 40 | select GPIO_MSM_V1 |
| 37 | select MSM_PROC_COMM | 41 | select MSM_PROC_COMM |
| 38 | 42 | ||
| 43 | endchoice | ||
| 44 | |||
| 39 | config ARCH_MSM8X60 | 45 | config ARCH_MSM8X60 |
| 40 | bool "MSM8X60" | 46 | bool "MSM8X60" |
| 41 | select MACH_MSM8X60_SURF if (!MACH_MSM8X60_RUMI3 && !MACH_MSM8X60_SIM \ | 47 | select MACH_MSM8X60_SURF if (!MACH_MSM8X60_RUMI3 && !MACH_MSM8X60_SIM \ |
| @@ -58,8 +64,6 @@ config ARCH_MSM8960 | |||
| 58 | select MSM_GPIOMUX | 64 | select MSM_GPIOMUX |
| 59 | select MSM_SCM if SMP | 65 | select MSM_SCM if SMP |
| 60 | 66 | ||
| 61 | endchoice | ||
| 62 | |||
| 63 | config MSM_HAS_DEBUG_UART_HS | 67 | config MSM_HAS_DEBUG_UART_HS |
| 64 | bool | 68 | bool |
| 65 | 69 | ||
diff --git a/arch/arm/mach-msm/include/mach/msm_iomap-8x60.h b/arch/arm/mach-msm/include/mach/msm_iomap-8x60.h index 5aed57dc808c..b51ba8a927b8 100644 --- a/arch/arm/mach-msm/include/mach/msm_iomap-8x60.h +++ b/arch/arm/mach-msm/include/mach/msm_iomap-8x60.h | |||
| @@ -41,21 +41,10 @@ | |||
| 41 | #define MSM8X60_QGIC_CPU_PHYS 0x02081000 | 41 | #define MSM8X60_QGIC_CPU_PHYS 0x02081000 |
| 42 | #define MSM8X60_QGIC_CPU_SIZE SZ_4K | 42 | #define MSM8X60_QGIC_CPU_SIZE SZ_4K |
| 43 | 43 | ||
| 44 | #define MSM_ACC_BASE IOMEM(0xF0002000) | ||
| 45 | #define MSM_ACC_PHYS 0x02001000 | ||
| 46 | #define MSM_ACC_SIZE SZ_4K | ||
| 47 | |||
| 48 | #define MSM_GCC_BASE IOMEM(0xF0003000) | ||
| 49 | #define MSM_GCC_PHYS 0x02082000 | ||
| 50 | #define MSM_GCC_SIZE SZ_4K | ||
| 51 | |||
| 52 | #define MSM_TLMM_BASE IOMEM(0xF0004000) | 44 | #define MSM_TLMM_BASE IOMEM(0xF0004000) |
| 53 | #define MSM_TLMM_PHYS 0x00800000 | 45 | #define MSM_TLMM_PHYS 0x00800000 |
| 54 | #define MSM_TLMM_SIZE SZ_16K | 46 | #define MSM_TLMM_SIZE SZ_16K |
| 55 | 47 | ||
| 56 | #define MSM_SHARED_RAM_BASE IOMEM(0xF0100000) | ||
| 57 | #define MSM_SHARED_RAM_SIZE SZ_1M | ||
| 58 | |||
| 59 | #define MSM8X60_TMR_PHYS 0x02000000 | 48 | #define MSM8X60_TMR_PHYS 0x02000000 |
| 60 | #define MSM8X60_TMR_SIZE SZ_4K | 49 | #define MSM8X60_TMR_SIZE SZ_4K |
| 61 | 50 | ||
diff --git a/arch/arm/mach-msm/include/mach/msm_iomap.h b/arch/arm/mach-msm/include/mach/msm_iomap.h index 00afdfb8c38f..2ab7cf0919b3 100644 --- a/arch/arm/mach-msm/include/mach/msm_iomap.h +++ b/arch/arm/mach-msm/include/mach/msm_iomap.h | |||
| @@ -41,12 +41,11 @@ | |||
| 41 | #include "msm_iomap-7x30.h" | 41 | #include "msm_iomap-7x30.h" |
| 42 | #elif defined(CONFIG_ARCH_QSD8X50) | 42 | #elif defined(CONFIG_ARCH_QSD8X50) |
| 43 | #include "msm_iomap-8x50.h" | 43 | #include "msm_iomap-8x50.h" |
| 44 | #elif defined(CONFIG_ARCH_MSM8X60) | ||
| 45 | #include "msm_iomap-8x60.h" | ||
| 46 | #else | 44 | #else |
| 47 | #include "msm_iomap-7x00.h" | 45 | #include "msm_iomap-7x00.h" |
| 48 | #endif | 46 | #endif |
| 49 | 47 | ||
| 48 | #include "msm_iomap-8x60.h" | ||
| 50 | #include "msm_iomap-8960.h" | 49 | #include "msm_iomap-8960.h" |
| 51 | 50 | ||
| 52 | #define MSM_DEBUG_UART_SIZE SZ_4K | 51 | #define MSM_DEBUG_UART_SIZE SZ_4K |
diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c index a1e7b1168850..b0016a00ddf2 100644 --- a/arch/arm/mach-msm/io.c +++ b/arch/arm/mach-msm/io.c | |||
| @@ -109,8 +109,6 @@ static struct map_desc msm8x60_io_desc[] __initdata = { | |||
| 109 | MSM_CHIP_DEVICE(QGIC_CPU, MSM8X60), | 109 | MSM_CHIP_DEVICE(QGIC_CPU, MSM8X60), |
| 110 | MSM_CHIP_DEVICE(TMR, MSM8X60), | 110 | MSM_CHIP_DEVICE(TMR, MSM8X60), |
| 111 | MSM_CHIP_DEVICE(TMR0, MSM8X60), | 111 | MSM_CHIP_DEVICE(TMR0, MSM8X60), |
| 112 | MSM_DEVICE(ACC), | ||
| 113 | MSM_DEVICE(GCC), | ||
| 114 | #ifdef CONFIG_DEBUG_MSM8660_UART | 112 | #ifdef CONFIG_DEBUG_MSM8660_UART |
| 115 | MSM_DEVICE(DEBUG_UART), | 113 | MSM_DEVICE(DEBUG_UART), |
| 116 | #endif | 114 | #endif |
