Skip to content

Commit 8e73e36

Browse files
committed
Merge tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC cleanups from Olof Johansson: "This branch contains code cleanups, moves and removals for 3.12. There's a large number of various cleanups, and a nice net removal of 13500 lines of code. Highlights worth mentioning are: - A series of patches from Stephen Boyd removing the ARM local timer API. - Move of Qualcomm MSM IOMMU code to drivers/iommu. - Samsung PWM driver cleanups from Tomasz Figa, removing legacy PWM driver and switching over to the drivers/pwm one. - Removal of some unusued auto-generated headers for OMAP2+ (PRM/CM). There's also a move of a header file out of include/linux/i2c/ to platform_data, where it really belongs. It touches mostly ARM platform code for include changes so we took it through our tree" * tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (83 commits) ARM: OMAP2+: Add back the define for AM33XX_RST_GLOBAL_WARM_SW_MASK gpio: (gpio-pca953x) move header to linux/platform_data/ arm: zynq: hotplug: Remove unreachable code ARM: SAMSUNG: Remove unnecessary exynos4_default_sdhci*() tegra: simplify use of devm_ioremap_resource ARM: SAMSUNG: Remove plat/regs-timer.h header ARM: SAMSUNG: Remove remaining uses of plat/regs-timer.h header ARM: SAMSUNG: Remove pwm-clock infrastructure ARM: SAMSUNG: Remove old PWM timer platform devices pwm: Remove superseded pwm-samsung-legacy driver ARM: SAMSUNG: Modify board files to use new PWM platform device ARM: SAMSUNG: Rework private data handling in dev-backlight pwm: Add new pwm-samsung driver ARM: mach-mvebu: remove redundant DT parsing and validation ARM: msm: Only compile io.c on platforms that use it iommu/msm: Move mach includes to iommu directory ARM: msm: Remove devices-iommu.c ARM: msm: Move mach/board.h contents to common.h ARM: msm: Migrate msm_timer to CLOCKSOURCE_OF_DECLARE ARM: msm: Remove TMR and TMR0 static mappings ...
2 parents d2f3e9e + 7323f21 commit 8e73e36

168 files changed

Lines changed: 1312 additions & 14806 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/Kconfig‎

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ config ARCH_MSM
631631
bool "Qualcomm MSM"
632632
select ARCH_REQUIRE_GPIOLIB
633633
select CLKDEV_LOOKUP
634+
select CLKSRC_OF if OF
634635
select COMMON_CLK
635636
select GENERIC_CLOCKEVENTS
636637
help
@@ -646,7 +647,7 @@ config ARCH_SHMOBILE
646647
select CLKDEV_LOOKUP
647648
select GENERIC_CLOCKEVENTS
648649
select HAVE_ARM_SCU if SMP
649-
select HAVE_ARM_TWD if LOCAL_TIMERS
650+
select HAVE_ARM_TWD if SMP
650651
select HAVE_CLK
651652
select HAVE_MACH_CLKDEV
652653
select HAVE_SMP
@@ -701,7 +702,7 @@ config ARCH_S3C24XX
701702
select ARCH_HAS_CPUFREQ
702703
select ARCH_REQUIRE_GPIOLIB
703704
select CLKDEV_LOOKUP
704-
select CLKSRC_MMIO
705+
select CLKSRC_SAMSUNG_PWM
705706
select GENERIC_CLOCKEVENTS
706707
select GPIO_SAMSUNG
707708
select HAVE_CLK
@@ -724,7 +725,7 @@ config ARCH_S3C64XX
724725
select ARCH_REQUIRE_GPIOLIB
725726
select ARM_VIC
726727
select CLKDEV_LOOKUP
727-
select CLKSRC_MMIO
728+
select CLKSRC_SAMSUNG_PWM
728729
select CPU_V6
729730
select GENERIC_CLOCKEVENTS
730731
select GPIO_SAMSUNG
@@ -740,7 +741,6 @@ config ARCH_S3C64XX
740741
select SAMSUNG_ATAGS
741742
select SAMSUNG_CLKSRC
742743
select SAMSUNG_GPIOLIB_4BIT
743-
select SAMSUNG_IRQ_VIC_TIMER
744744
select SAMSUNG_WDT_RESET
745745
select USB_ARCH_HAS_OHCI
746746
help
@@ -749,7 +749,7 @@ config ARCH_S3C64XX
749749
config ARCH_S5P64X0
750750
bool "Samsung S5P6440 S5P6450"
751751
select CLKDEV_LOOKUP
752-
select CLKSRC_MMIO
752+
select CLKSRC_SAMSUNG_PWM
753753
select CPU_V6
754754
select GENERIC_CLOCKEVENTS
755755
select GPIO_SAMSUNG
@@ -768,7 +768,7 @@ config ARCH_S5PC100
768768
bool "Samsung S5PC100"
769769
select ARCH_REQUIRE_GPIOLIB
770770
select CLKDEV_LOOKUP
771-
select CLKSRC_MMIO
771+
select CLKSRC_SAMSUNG_PWM
772772
select CPU_V7
773773
select GENERIC_CLOCKEVENTS
774774
select GPIO_SAMSUNG
@@ -788,7 +788,7 @@ config ARCH_S5PV210
788788
select ARCH_HAS_HOLES_MEMORYMODEL
789789
select ARCH_SPARSEMEM_ENABLE
790790
select CLKDEV_LOOKUP
791-
select CLKSRC_MMIO
791+
select CLKSRC_SAMSUNG_PWM
792792
select CPU_V7
793793
select GENERIC_CLOCKEVENTS
794794
select GPIO_SAMSUNG
@@ -1594,16 +1594,6 @@ config ARM_PSCI
15941594
0022A ("Power State Coordination Interface System Software on
15951595
ARM processors").
15961596

1597-
config LOCAL_TIMERS
1598-
bool "Use local timer interrupts"
1599-
depends on SMP
1600-
default y
1601-
help
1602-
Enable support for local timers on SMP platforms, rather then the
1603-
legacy IPI broadcast method. Local timers allows the system
1604-
accounting to be spread across the timer interval, preventing a
1605-
"thundering herd" at every timer tick.
1606-
16071597
# The GPIO number here must be sorted by descending number. In case of
16081598
# a multiplatform kernel, we just want the highest value required by the
16091599
# selected platforms.

‎arch/arm/Kconfig.debug‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,11 @@ config DEBUG_LL_INCLUDE
895895
DEBUG_IMX53_UART ||\
896896
DEBUG_IMX6Q_UART || \
897897
DEBUG_IMX6SL_UART
898+
default "debug/msm.S" if DEBUG_MSM_UART1 || \
899+
DEBUG_MSM_UART2 || \
900+
DEBUG_MSM_UART3 || \
901+
DEBUG_MSM8660_UART || \
902+
DEBUG_MSM8960_UART
898903
default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
899904
default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
900905
default "debug/sti.S" if DEBUG_STI_UART
@@ -1056,7 +1061,7 @@ config DEBUG_UART_8250_FLOW_CONTROL
10561061

10571062
config DEBUG_UNCOMPRESS
10581063
bool
1059-
depends on ARCH_MULTIPLATFORM
1064+
depends on ARCH_MULTIPLATFORM || ARCH_MSM
10601065
default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
10611066
(!DEBUG_TEGRA_UART || !ZBOOT_ROM)
10621067
help
@@ -1072,7 +1077,7 @@ config DEBUG_UNCOMPRESS
10721077

10731078
config UNCOMPRESS_INCLUDE
10741079
string
1075-
default "debug/uncompress.h" if ARCH_MULTIPLATFORM
1080+
default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM
10761081
default "mach/uncompress.h"
10771082

10781083
config EARLY_PRINTK

‎arch/arm/boot/dts/exynos4210.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
};
7373
};
7474

75-
clock: clock-controller@0x10030000 {
75+
clock: clock-controller@10030000 {
7676
compatible = "samsung,exynos4210-clock";
7777
reg = <0x10030000 0x20000>;
7878
#clock-cells = <1>;

‎arch/arm/boot/dts/exynos4x12.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
pinctrl3 = &pinctrl_3;
2929
};
3030

31-
clock: clock-controller@0x10030000 {
31+
clock: clock-controller@10030000 {
3232
compatible = "samsung,exynos4412-clock";
3333
reg = <0x10030000 0x20000>;
3434
#clock-cells = <1>;

‎arch/arm/boot/dts/exynos5250.dtsi‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@
6868
};
6969
};
7070

71-
pd_gsc: gsc-power-domain@0x10044000 {
71+
pd_gsc: gsc-power-domain@10044000 {
7272
compatible = "samsung,exynos4210-pd";
7373
reg = <0x10044000 0x20>;
7474
};
7575

76-
pd_mfc: mfc-power-domain@0x10044040 {
76+
pd_mfc: mfc-power-domain@10044040 {
7777
compatible = "samsung,exynos4210-pd";
7878
reg = <0x10044040 0x20>;
7979
};
8080

81-
clock: clock-controller@0x10010000 {
81+
clock: clock-controller@10010000 {
8282
compatible = "samsung,exynos5250-clock";
8383
reg = <0x10010000 0x30000>;
8484
#clock-cells = <1>;
@@ -559,7 +559,7 @@
559559
};
560560
};
561561

562-
gsc_0: gsc@0x13e00000 {
562+
gsc_0: gsc@13e00000 {
563563
compatible = "samsung,exynos5-gsc";
564564
reg = <0x13e00000 0x1000>;
565565
interrupts = <0 85 0>;
@@ -568,7 +568,7 @@
568568
clock-names = "gscl";
569569
};
570570

571-
gsc_1: gsc@0x13e10000 {
571+
gsc_1: gsc@13e10000 {
572572
compatible = "samsung,exynos5-gsc";
573573
reg = <0x13e10000 0x1000>;
574574
interrupts = <0 86 0>;
@@ -577,7 +577,7 @@
577577
clock-names = "gscl";
578578
};
579579

580-
gsc_2: gsc@0x13e20000 {
580+
gsc_2: gsc@13e20000 {
581581
compatible = "samsung,exynos5-gsc";
582582
reg = <0x13e20000 0x1000>;
583583
interrupts = <0 87 0>;
@@ -586,7 +586,7 @@
586586
clock-names = "gscl";
587587
};
588588

589-
gsc_3: gsc@0x13e30000 {
589+
gsc_3: gsc@13e30000 {
590590
compatible = "samsung,exynos5-gsc";
591591
reg = <0x13e30000 0x1000>;
592592
interrupts = <0 88 0>;

‎arch/arm/boot/dts/exynos5420.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
};
6060
};
6161

62-
clock: clock-controller@0x10010000 {
62+
clock: clock-controller@10010000 {
6363
compatible = "samsung,exynos5420-clock";
6464
reg = <0x10010000 0x30000>;
6565
#clock-cells = <1>;

‎arch/arm/boot/dts/exynos5440.dtsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
spi0 = &spi_0;
2121
};
2222

23-
clock: clock-controller@0x160000 {
23+
clock: clock-controller@160000 {
2424
compatible = "samsung,exynos5440-clock";
2525
reg = <0x160000 0x1000>;
2626
#clock-cells = <1>;

‎arch/arm/configs/exynos4_defconfig‎

Lines changed: 0 additions & 68 deletions
This file was deleted.

‎arch/arm/include/asm/localtimer.h‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

arch/arm/mach-msm/include/mach/debug-macro.S renamed to arch/arm/include/debug/msm.S

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,36 @@
1515
*
1616
*/
1717

18-
#include <mach/hardware.h>
19-
#include <mach/msm_iomap.h>
18+
#if defined(CONFIG_ARCH_MSM7X00A) || defined(CONFIG_ARCH_QSD8X50)
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
2048

2149
.macro addruart, rp, rv, tmp
2250
#ifdef MSM_DEBUG_UART_PHYS

0 commit comments

Comments
 (0)