Skip to content

Commit 99c6bcf

Browse files
committed
Merge tag 'multiplatform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC multiplatform updates from Olof Johansson: "More multiplatform enablement for ARM platforms. The ones converted in this branch are: - bcm2835 - cns3xxx - sirf - nomadik - msx - spear - tegra - ux500 We're getting close to having most of them converted! One of the larger platforms remaining is Samsung Exynos, and there are a bunch of supporting patches in this merge window for it. There was a patch in this branch to a early version of multiplatform conversion, but it ended up being reverted due to need of more bake time. The revert commit is part of the branch since it would have required rebasing multiple dependent branches and they were stable by then" * tag 'multiplatform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (70 commits) mmc: sdhci-s3c: Fix operation on non-single image Samsung platforms clocksource: nomadik-mtu: fix up clocksource/timer Revert "ARM: exynos: enable multiplatform support" ARM: SPEAr13xx: Fix typo "ARCH_HAVE_CPUFREQ" ARM: exynos: enable multiplatform support rtc: s3c: make header file local mtd: onenand/samsung: make regs-onenand.h file local thermal/exynos: remove unnecessary header inclusions mmc: sdhci-s3c: remove platform dependencies ARM: samsung: move mfc device definition to s5p-dev-mfc.c ARM: exynos: move debug-macro.S to include/debug/ ARM: exynos: prepare for sparse IRQ ARM: exynos: introduce EXYNOS_ATAGS symbol ARM: tegra: build assembly files with -march=armv7-a ARM: Push selects for TWD/SCU into machine entries ARM: ux500: build hotplug.o for ARMv7-a ARM: ux500: move to multiplatform ARM: ux500: make remaining headers local ARM: ux500: make irqs.h local to platform ARM: ux500: get rid of <mach/[hardware|db8500-regs].h> ...
2 parents 97b1007 + 2fdfe1c commit 99c6bcf

236 files changed

Lines changed: 1834 additions & 2887 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: 5 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -362,37 +362,6 @@ config ARCH_AT91
362362
This enables support for systems based on Atmel
363363
AT91RM9200 and AT91SAM9* processors.
364364

365-
config ARCH_BCM2835
366-
bool "Broadcom BCM2835 family"
367-
select ARCH_REQUIRE_GPIOLIB
368-
select ARM_AMBA
369-
select ARM_ERRATA_411920
370-
select ARM_TIMER_SP804
371-
select CLKDEV_LOOKUP
372-
select CLKSRC_OF
373-
select COMMON_CLK
374-
select CPU_V6
375-
select GENERIC_CLOCKEVENTS
376-
select MULTI_IRQ_HANDLER
377-
select PINCTRL
378-
select PINCTRL_BCM2835
379-
select SPARSE_IRQ
380-
select USE_OF
381-
help
382-
This enables support for the Broadcom BCM2835 SoC. This SoC is
383-
use in the Raspberry Pi, and Roku 2 devices.
384-
385-
config ARCH_CNS3XXX
386-
bool "Cavium Networks CNS3XXX family"
387-
select ARM_GIC
388-
select CPU_V6K
389-
select GENERIC_CLOCKEVENTS
390-
select MIGHT_HAVE_CACHE_L2X0
391-
select MIGHT_HAVE_PCI
392-
select PCI_DOMAINS if PCI
393-
help
394-
Support for Cavium Networks CNS3XXX platform.
395-
396365
config ARCH_CLPS711X
397366
bool "Cirrus Logic CLPS711x/EP721x/EP731x-based"
398367
select ARCH_REQUIRE_GPIOLIB
@@ -416,21 +385,6 @@ config ARCH_GEMINI
416385
help
417386
Support for the Cortina Systems Gemini family SoCs
418387

419-
config ARCH_SIRF
420-
bool "CSR SiRF"
421-
select ARCH_REQUIRE_GPIOLIB
422-
select AUTO_ZRELADDR
423-
select COMMON_CLK
424-
select GENERIC_CLOCKEVENTS
425-
select GENERIC_IRQ_CHIP
426-
select MIGHT_HAVE_CACHE_L2X0
427-
select NO_IOPORT
428-
select PINCTRL
429-
select PINCTRL_SIRF
430-
select USE_OF
431-
help
432-
Support for CSR SiRFprimaII/Marco/Polo platforms
433-
434388
config ARCH_EBSA110
435389
bool "EBSA-110"
436390
select ARCH_USES_GETTIMEOFFSET
@@ -470,23 +424,6 @@ config ARCH_FOOTBRIDGE
470424
Support for systems based on the DC21285 companion chip
471425
("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
472426

473-
config ARCH_MXS
474-
bool "Freescale MXS-based"
475-
select ARCH_REQUIRE_GPIOLIB
476-
select CLKDEV_LOOKUP
477-
select CLKSRC_MMIO
478-
select CLKSRC_OF
479-
select COMMON_CLK
480-
select GENERIC_CLOCKEVENTS
481-
select HAVE_CLK_PREPARE
482-
select MULTI_IRQ_HANDLER
483-
select PINCTRL
484-
select SPARSE_IRQ
485-
select STMP_DEVICE
486-
select USE_OF
487-
help
488-
Support for Freescale MXS-based family of processors
489-
490427
config ARCH_NETX
491428
bool "Hilscher NetX based"
492429
select ARM_VIC
@@ -659,25 +596,6 @@ config ARCH_LPC32XX
659596
help
660597
Support for the NXP LPC32XX family of processors
661598

662-
config ARCH_TEGRA
663-
bool "NVIDIA Tegra"
664-
select ARCH_HAS_CPUFREQ
665-
select ARCH_REQUIRE_GPIOLIB
666-
select CLKDEV_LOOKUP
667-
select CLKSRC_MMIO
668-
select CLKSRC_OF
669-
select COMMON_CLK
670-
select GENERIC_CLOCKEVENTS
671-
select HAVE_CLK
672-
select HAVE_SMP
673-
select MIGHT_HAVE_CACHE_L2X0
674-
select SOC_BUS
675-
select SPARSE_IRQ
676-
select USE_OF
677-
help
678-
This enables support for NVIDIA Tegra based systems (Tegra APX,
679-
Tegra 6xx and Tegra 2 series).
680-
681599
config ARCH_PXA
682600
bool "PXA2xx/PXA3xx-based"
683601
depends on MMU
@@ -715,6 +633,8 @@ config ARCH_SHMOBILE
715633
bool "Renesas SH-Mobile / R-Mobile"
716634
select CLKDEV_LOOKUP
717635
select GENERIC_CLOCKEVENTS
636+
select HAVE_ARM_SCU if SMP
637+
select HAVE_ARM_TWD if LOCAL_TIMERS
718638
select HAVE_CLK
719639
select HAVE_MACH_CLKDEV
720640
select HAVE_SMP
@@ -900,51 +820,6 @@ config ARCH_U300
900820
help
901821
Support for ST-Ericsson U300 series mobile platforms.
902822

903-
config ARCH_U8500
904-
bool "ST-Ericsson U8500 Series"
905-
depends on MMU
906-
select ARCH_HAS_CPUFREQ
907-
select ARCH_REQUIRE_GPIOLIB
908-
select ARM_AMBA
909-
select CLKDEV_LOOKUP
910-
select CPU_V7
911-
select GENERIC_CLOCKEVENTS
912-
select HAVE_SMP
913-
select MIGHT_HAVE_CACHE_L2X0
914-
select SPARSE_IRQ
915-
help
916-
Support for ST-Ericsson's Ux500 architecture
917-
918-
config ARCH_NOMADIK
919-
bool "STMicroelectronics Nomadik"
920-
select ARCH_REQUIRE_GPIOLIB
921-
select ARM_AMBA
922-
select ARM_VIC
923-
select CLKSRC_NOMADIK_MTU
924-
select COMMON_CLK
925-
select CPU_ARM926T
926-
select GENERIC_CLOCKEVENTS
927-
select MIGHT_HAVE_CACHE_L2X0
928-
select USE_OF
929-
select PINCTRL
930-
select PINCTRL_STN8815
931-
select SPARSE_IRQ
932-
help
933-
Support for the Nomadik platform by ST-Ericsson
934-
935-
config PLAT_SPEAR
936-
bool "ST SPEAr"
937-
select ARCH_HAS_CPUFREQ
938-
select ARCH_REQUIRE_GPIOLIB
939-
select ARM_AMBA
940-
select CLKDEV_LOOKUP
941-
select CLKSRC_MMIO
942-
select COMMON_CLK
943-
select GENERIC_CLOCKEVENTS
944-
select HAVE_CLK
945-
help
946-
Support for ST's SPEAr platform (SPEAr3xx, SPEAr6xx and SPEAr13xx).
947-
948823
config ARCH_DAVINCI
949824
bool "TI DaVinci"
950825
select ARCH_HAS_HOLES_MEMORYMODEL
@@ -1036,6 +911,8 @@ source "arch/arm/mach-at91/Kconfig"
1036911

1037912
source "arch/arm/mach-bcm/Kconfig"
1038913

914+
source "arch/arm/mach-bcm2835/Kconfig"
915+
1039916
source "arch/arm/mach-clps711x/Kconfig"
1040917

1041918
source "arch/arm/mach-cns3xxx/Kconfig"
@@ -1101,7 +978,7 @@ source "arch/arm/plat-samsung/Kconfig"
1101978

1102979
source "arch/arm/mach-socfpga/Kconfig"
1103980

1104-
source "arch/arm/plat-spear/Kconfig"
981+
source "arch/arm/mach-spear/Kconfig"
1105982

1106983
source "arch/arm/mach-s3c24xx/Kconfig"
1107984

@@ -1528,7 +1405,6 @@ config SMP
15281405
depends on GENERIC_CLOCKEVENTS
15291406
depends on HAVE_SMP
15301407
depends on MMU
1531-
select HAVE_ARM_SCU if !ARCH_MSM_SCORPIONMP
15321408
select USE_GENERIC_SMP_HELPERS
15331409
help
15341410
This enables support for systems with more than one CPU. If you have
@@ -1653,7 +1529,6 @@ config LOCAL_TIMERS
16531529
bool "Use local timer interrupts"
16541530
depends on SMP
16551531
default y
1656-
select HAVE_ARM_TWD if (!ARCH_MSM_SCORPIONMP && !EXYNOS4_MCT)
16571532
help
16581533
Enable support for local timers on SMP platforms, rather then the
16591534
legacy IPI broadcast method. Local timers allows the system

‎arch/arm/Kconfig.debug‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ choice
8989
bool "Kernel low-level debugging on 9263 and 9g45"
9090
depends on HAVE_AT91_DBGU1
9191

92+
config DEBUG_BCM2835
93+
bool "Kernel low-level debugging on BCM2835 PL011 UART"
94+
depends on ARCH_BCM2835
95+
9296
config DEBUG_CLPS711X_UART1
9397
bool "Kernel low-level debugging messages via UART1"
9498
depends on ARCH_CLPS711X
@@ -103,6 +107,13 @@ choice
103107
Say Y here if you want the debug print routines to direct
104108
their output to the second serial port on these devices.
105109

110+
config DEBUG_CNS3XXX
111+
bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx"
112+
depends on ARCH_CNS3XXX
113+
help
114+
Say Y here if you want the debug print routines to direct
115+
their output to the CNS3xxx UART0.
116+
106117
config DEBUG_DAVINCI_DA8XX_UART1
107118
bool "Kernel low-level debugging on DaVinci DA8XX using UART1"
108119
depends on ARCH_DAVINCI_DA8XX
@@ -298,6 +309,13 @@ choice
298309
Say Y here if you want kernel low-level debugging support
299310
on MVEBU based platforms.
300311

312+
config DEBUG_NOMADIK_UART
313+
bool "Kernel low-level debugging messages via NOMADIK UART"
314+
depends on ARCH_NOMADIK
315+
help
316+
Say Y here if you want kernel low-level debugging support
317+
on NOMADIK based platforms.
318+
301319
config DEBUG_OMAP2PLUS_UART
302320
bool "Kernel low-level debugging messages via OMAP2PLUS UART"
303321
depends on ARCH_OMAP2PLUS
@@ -330,6 +348,7 @@ choice
330348

331349
config DEBUG_S3C_UART0
332350
depends on PLAT_SAMSUNG
351+
select DEBUG_EXYNOS_UART if ARCH_EXYNOS
333352
bool "Use S3C UART 0 for low-level debug"
334353
help
335354
Say Y here if you want the debug print routines to direct
@@ -341,6 +360,7 @@ choice
341360

342361
config DEBUG_S3C_UART1
343362
depends on PLAT_SAMSUNG
363+
select DEBUG_EXYNOS_UART if ARCH_EXYNOS
344364
bool "Use S3C UART 1 for low-level debug"
345365
help
346366
Say Y here if you want the debug print routines to direct
@@ -352,6 +372,7 @@ choice
352372

353373
config DEBUG_S3C_UART2
354374
depends on PLAT_SAMSUNG
375+
select DEBUG_EXYNOS_UART if ARCH_EXYNOS
355376
bool "Use S3C UART 2 for low-level debug"
356377
help
357378
Say Y here if you want the debug print routines to direct
@@ -363,6 +384,7 @@ choice
363384

364385
config DEBUG_S3C_UART3
365386
depends on PLAT_SAMSUNG && ARCH_EXYNOS
387+
select DEBUG_EXYNOS_UART
366388
bool "Use S3C UART 3 for low-level debug"
367389
help
368390
Say Y here if you want the debug print routines to direct
@@ -414,6 +436,13 @@ choice
414436
Say Y here if you want the debug print routines to direct
415437
their output to the uart1 port on SiRFmarco devices.
416438

439+
config DEBUG_UX500_UART
440+
depends on ARCH_U8500
441+
bool "Use Ux500 UART for low-level debug"
442+
help
443+
Say Y here if you want kernel low-level debugging support
444+
on Ux500 based platforms.
445+
417446
config DEBUG_VEXPRESS_UART0_DETECT
418447
bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
419448
depends on ARCH_VEXPRESS && CPU_CP15_MMU
@@ -485,6 +514,9 @@ choice
485514

486515
endchoice
487516

517+
config DEBUG_EXYNOS_UART
518+
bool
519+
488520
config DEBUG_IMX_UART_PORT
489521
int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
490522
DEBUG_IMX25_UART || \
@@ -580,6 +612,9 @@ endchoice
580612

581613
config DEBUG_LL_INCLUDE
582614
string
615+
default "debug/bcm2835.S" if DEBUG_BCM2835
616+
default "debug/cns3xxx.S" if DEBUG_CNS3XXX
617+
default "debug/exynos.S" if DEBUG_EXYNOS_UART
583618
default "debug/icedcc.S" if DEBUG_ICEDCC
584619
default "debug/imx.S" if DEBUG_IMX1_UART || \
585620
DEBUG_IMX25_UART || \
@@ -591,14 +626,18 @@ config DEBUG_LL_INCLUDE
591626
DEBUG_IMX6Q_UART
592627
default "debug/highbank.S" if DEBUG_HIGHBANK_UART
593628
default "debug/mvebu.S" if DEBUG_MVEBU_UART
629+
default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART
630+
default "debug/nomadik.S" if DEBUG_NOMADIK_UART
594631
default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
595632
default "debug/picoxcell.S" if DEBUG_PICOXCELL_UART
633+
default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
596634
default "debug/socfpga.S" if DEBUG_SOCFPGA_UART
597635
default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1
598636
default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \
599637
DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1
600638
default "debug/vt8500.S" if DEBUG_VT8500_UART0
601639
default "debug/tegra.S" if DEBUG_TEGRA_UART
640+
default "debug/ux500.S" if DEBUG_UX500_UART
602641
default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
603642
default "mach/debug-macro.S"
604643

‎arch/arm/Makefile‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ machine-$(CONFIG_ARCH_VT8500) += vt8500
190190
machine-$(CONFIG_ARCH_W90X900) += w90x900
191191
machine-$(CONFIG_FOOTBRIDGE) += footbridge
192192
machine-$(CONFIG_ARCH_SOCFPGA) += socfpga
193-
machine-$(CONFIG_ARCH_SPEAR13XX) += spear13xx
194-
machine-$(CONFIG_ARCH_SPEAR3XX) += spear3xx
195-
machine-$(CONFIG_MACH_SPEAR600) += spear6xx
193+
machine-$(CONFIG_PLAT_SPEAR) += spear
196194
machine-$(CONFIG_ARCH_VIRT) += virt
197195
machine-$(CONFIG_ARCH_ZYNQ) += zynq
198196
machine-$(CONFIG_ARCH_SUNXI) += sunxi
@@ -206,7 +204,6 @@ plat-$(CONFIG_PLAT_ORION) += orion
206204
plat-$(CONFIG_PLAT_PXA) += pxa
207205
plat-$(CONFIG_PLAT_S3C24XX) += samsung
208206
plat-$(CONFIG_PLAT_S5P) += samsung
209-
plat-$(CONFIG_PLAT_SPEAR) += spear
210207
plat-$(CONFIG_PLAT_VERSATILE) += versatile
211208

212209
ifeq ($(CONFIG_ARCH_EBSA110),y)

‎arch/arm/configs/bcm2835_defconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ CONFIG_EMBEDDED=y
2929
CONFIG_PROFILING=y
3030
CONFIG_OPROFILE=y
3131
CONFIG_JUMP_LABEL=y
32+
CONFIG_ARCH_MULTI_V6=y
33+
# CONFIG_ARCH_MULTI_V7 is not set
3234
CONFIG_ARCH_BCM2835=y
3335
CONFIG_PREEMPT_VOLUNTARY=y
3436
CONFIG_AEABI=y

‎arch/arm/configs/cns3420vb_defconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ CONFIG_MODULE_FORCE_UNLOAD=y
1919
CONFIG_MODVERSIONS=y
2020
# CONFIG_BLK_DEV_BSG is not set
2121
CONFIG_IOSCHED_CFQ=m
22+
CONFIG_ARCH_MULTI_V6=y
23+
#CONFIG_ARCH_MULTI_V7 is not set
2224
CONFIG_ARCH_CNS3XXX=y
2325
CONFIG_MACH_CNS3420VB=y
26+
CONFIG_DEBUG_CNS3XXX=y
2427
CONFIG_AEABI=y
2528
CONFIG_ZBOOT_ROM_TEXT=0x0
2629
CONFIG_ZBOOT_ROM_BSS=0x0

0 commit comments

Comments
 (0)