diff options
29 files changed, 93 insertions, 1219 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index baf43de26a54..944fd5ae44cb 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
| @@ -630,6 +630,7 @@ config ARCH_MSM | |||
| 630 | bool "Qualcomm MSM" | 630 | bool "Qualcomm MSM" |
| 631 | select ARCH_REQUIRE_GPIOLIB | 631 | select ARCH_REQUIRE_GPIOLIB |
| 632 | select CLKDEV_LOOKUP | 632 | select CLKDEV_LOOKUP |
| 633 | select CLKSRC_OF if OF | ||
| 633 | select COMMON_CLK | 634 | select COMMON_CLK |
| 634 | select GENERIC_CLOCKEVENTS | 635 | select GENERIC_CLOCKEVENTS |
| 635 | help | 636 | help |
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index e401a766c0bd..4a62a8d4f3b6 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
| @@ -777,6 +777,11 @@ config DEBUG_LL_INCLUDE | |||
| 777 | DEBUG_IMX6SL_UART | 777 | DEBUG_IMX6SL_UART |
| 778 | default "debug/keystone.S" if DEBUG_KEYSTONE_UART0 || \ | 778 | default "debug/keystone.S" if DEBUG_KEYSTONE_UART0 || \ |
| 779 | DEBUG_KEYSTONE_UART1 | 779 | DEBUG_KEYSTONE_UART1 |
| 780 | default "debug/msm.S" if DEBUG_MSM_UART1 || \ | ||
| 781 | DEBUG_MSM_UART2 || \ | ||
| 782 | DEBUG_MSM_UART3 || \ | ||
| 783 | DEBUG_MSM8660_UART || \ | ||
| 784 | DEBUG_MSM8960_UART | ||
| 780 | default "debug/mvebu.S" if DEBUG_MVEBU_UART || \ | 785 | default "debug/mvebu.S" if DEBUG_MVEBU_UART || \ |
| 781 | DEBUG_MVEBU_UART_ALTERNATE | 786 | DEBUG_MVEBU_UART_ALTERNATE |
| 782 | default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART | 787 | default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART |
| @@ -804,13 +809,13 @@ config DEBUG_LL_INCLUDE | |||
| 804 | 809 | ||
| 805 | config DEBUG_UNCOMPRESS | 810 | config DEBUG_UNCOMPRESS |
| 806 | bool | 811 | bool |
| 807 | default y if ARCH_MULTIPLATFORM && DEBUG_LL && \ | 812 | default y if (ARCH_MULTIPLATFORM || ARCH_MSM) && DEBUG_LL && \ |
| 808 | !DEBUG_OMAP2PLUS_UART && \ | 813 | !DEBUG_OMAP2PLUS_UART && \ |
| 809 | !DEBUG_TEGRA_UART | 814 | !DEBUG_TEGRA_UART |
| 810 | 815 | ||
| 811 | config UNCOMPRESS_INCLUDE | 816 | config UNCOMPRESS_INCLUDE |
| 812 | string | 817 | string |
| 813 | default "debug/uncompress.h" if ARCH_MULTIPLATFORM | 818 | default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM |
| 814 | default "mach/uncompress.h" | 819 | default "mach/uncompress.h" |
| 815 | 820 | ||
| 816 | config EARLY_PRINTK | 821 | config EARLY_PRINTK |
diff --git a/arch/arm/mach-msm/include/mach/debug-macro.S b/arch/arm/include/debug/msm.S index 0e05f88abcd5..9166e1bc470e 100644 --- a/arch/arm/mach-msm/include/mach/debug-macro.S +++ b/arch/arm/include/debug/msm.S | |||
| @@ -15,8 +15,36 @@ | |||
| 15 | * | 15 | * |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include <mach/hardware.h> | 18 | #if defined(CONFIG_ARCH_MSM7X00A) || defined(CONFIG_ARCH_QSD8X50) |
| 19 | #include <mach/msm_iomap.h> | 19 | #define MSM_UART1_PHYS 0xA9A00000 |
| 20 | #define MSM_UART2_PHYS 0xA9B00000 | ||
| 21 | #define MSM_UART3_PHYS 0xA9C00000 | ||
| 22 | #elif defined(CONFIG_ARCH_MSM7X30) | ||
| 23 | #define MSM_UART1_PHYS 0xACA00000 | ||
| 24 | #define MSM_UART2_PHYS 0xACB00000 | ||
| 25 | #define MSM_UART3_PHYS 0xACC00000 | ||
| 26 | #endif | ||
| 27 | |||
| 28 | #if defined(CONFIG_DEBUG_MSM_UART1) | ||
| 29 | #define MSM_DEBUG_UART_BASE 0xE1000000 | ||
| 30 | #define MSM_DEBUG_UART_PHYS MSM_UART1_PHYS | ||
| 31 | #elif defined(CONFIG_DEBUG_MSM_UART2) | ||
| 32 | #define MSM_DEBUG_UART_BASE 0xE1000000 | ||
| 33 | #define MSM_DEBUG_UART_PHYS MSM_UART2_PHYS | ||
| 34 | #elif defined(CONFIG_DEBUG_MSM_UART3) | ||
| 35 | #define MSM_DEBUG_UART_BASE 0xE1000000 | ||
| 36 | #define MSM_DEBUG_UART_PHYS MSM_UART3_PHYS | ||
| 37 | #endif | ||
| 38 | |||
| 39 | #ifdef CONFIG_DEBUG_MSM8660_UART | ||
| 40 | #define MSM_DEBUG_UART_BASE 0xF0040000 | ||
| 41 | #define MSM_DEBUG_UART_PHYS 0x19C40000 | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifdef CONFIG_DEBUG_MSM8960_UART | ||
| 45 | #define MSM_DEBUG_UART_BASE 0xF0040000 | ||
| 46 | #define MSM_DEBUG_UART_PHYS 0x16440000 | ||
| 47 | #endif | ||
| 20 | 48 | ||
| 21 | .macro addruart, rp, rv, tmp | 49 | .macro addruart, rp, rv, tmp |
| 22 | #ifdef MSM_DEBUG_UART_PHYS | 50 | #ifdef MSM_DEBUG_UART_PHYS |
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index d257ff40e16b..d872634c2f85 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile | |||
| @@ -1,17 +1,16 @@ | |||
| 1 | obj-y += io.o timer.o | 1 | obj-y += timer.o |
| 2 | obj-y += clock.o | 2 | obj-y += clock.o |
| 3 | 3 | ||
| 4 | obj-$(CONFIG_MSM_VIC) += irq-vic.o | 4 | obj-$(CONFIG_MSM_VIC) += irq-vic.o |
| 5 | obj-$(CONFIG_MSM_IOMMU) += devices-iommu.o | ||
| 6 | 5 | ||
| 7 | obj-$(CONFIG_ARCH_MSM7X00A) += irq.o | 6 | obj-$(CONFIG_ARCH_MSM7X00A) += irq.o |
| 8 | obj-$(CONFIG_ARCH_QSD8X50) += sirc.o | 7 | obj-$(CONFIG_ARCH_QSD8X50) += sirc.o |
| 9 | 8 | ||
| 10 | obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o | 9 | obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o |
| 11 | 10 | ||
| 12 | obj-$(CONFIG_ARCH_MSM7X00A) += dma.o | 11 | obj-$(CONFIG_ARCH_MSM7X00A) += dma.o io.o |
| 13 | obj-$(CONFIG_ARCH_MSM7X30) += dma.o | 12 | obj-$(CONFIG_ARCH_MSM7X30) += dma.o io.o |
| 14 | obj-$(CONFIG_ARCH_QSD8X50) += dma.o | 13 | obj-$(CONFIG_ARCH_QSD8X50) += dma.o io.o |
| 15 | 14 | ||
| 16 | obj-$(CONFIG_MSM_SMD) += smd.o smd_debug.o | 15 | obj-$(CONFIG_MSM_SMD) += smd.o smd_debug.o |
| 17 | obj-$(CONFIG_MSM_SMD) += last_radio_log.o | 16 | obj-$(CONFIG_MSM_SMD) += last_radio_log.o |
diff --git a/arch/arm/mach-msm/board-dt-8660.c b/arch/arm/mach-msm/board-dt-8660.c index 492f5cd87b0a..c2946892f5e3 100644 --- a/arch/arm/mach-msm/board-dt-8660.c +++ b/arch/arm/mach-msm/board-dt-8660.c | |||
| @@ -15,8 +15,8 @@ | |||
| 15 | #include <linux/of_platform.h> | 15 | #include <linux/of_platform.h> |
| 16 | 16 | ||
| 17 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
| 18 | #include <asm/mach/map.h> | ||
| 18 | 19 | ||
| 19 | #include <mach/board.h> | ||
| 20 | #include "common.h" | 20 | #include "common.h" |
| 21 | 21 | ||
| 22 | static void __init msm8x60_init_late(void) | 22 | static void __init msm8x60_init_late(void) |
| @@ -42,9 +42,7 @@ static const char *msm8x60_fluid_match[] __initdata = { | |||
| 42 | 42 | ||
| 43 | DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)") | 43 | DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)") |
| 44 | .smp = smp_ops(msm_smp_ops), | 44 | .smp = smp_ops(msm_smp_ops), |
| 45 | .map_io = msm_map_msm8x60_io, | ||
| 46 | .init_machine = msm8x60_dt_init, | 45 | .init_machine = msm8x60_dt_init, |
| 47 | .init_late = msm8x60_init_late, | 46 | .init_late = msm8x60_init_late, |
| 48 | .init_time = msm_dt_timer_init, | ||
| 49 | .dt_compat = msm8x60_fluid_match, | 47 | .dt_compat = msm8x60_fluid_match, |
| 50 | MACHINE_END | 48 | MACHINE_END |
diff --git a/arch/arm/mach-msm/board-dt-8960.c b/arch/arm/mach-msm/board-dt-8960.c index bb5530957c4f..d4ca52c45111 100644 --- a/arch/arm/mach-msm/board-dt-8960.c +++ b/arch/arm/mach-msm/board-dt-8960.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/of_platform.h> | 14 | #include <linux/of_platform.h> |
| 15 | 15 | ||
| 16 | #include <asm/mach/arch.h> | ||
