diff options
author | Olof Johansson <olof@lixom.net> | 2012-09-21 01:53:18 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-09-21 01:54:07 -0400 |
commit | 5ae8d15f686f93d2ac60a7b16d8ddfbfdfc7c00f (patch) | |
tree | 4fd7a93ded75199748764b0e451e5751393e85b9 /arch/arm | |
parent | b612a85792192b70e6497619521772c38ace758e (diff) | |
parent | 617276307cd4cdb9a95c77efaa3063695af63aa7 (diff) |
Merge tag 'multi-platform-for-3.7' of git://sources.calxeda.com/kernel/linux into next/multiplatform
Enable initial ARM multi-platform support for highbank, mvebu,
socfpga, picoxcell, and vexpress.
Multi-platform support is dependent on mach/gpio.h removal and
restructuring of DEBUG_LL and dtb build rules included in this branch.
This has been built for all defconfigs, and booted on highbank with
all 5 platforms enabled.
By Rob Herring (18) and Arnd Bergmann (1)
via Rob Herring
* tag 'multi-platform-for-3.7' of git://sources.calxeda.com/kernel/linux:
ARM: vexpress: convert to multi-platform
ARM: initial multiplatform support
ARM: mvebu: move armada-370-xp.h in mach dir
ARM: vexpress: remove dependency on mach/* headers
ARM: picoxcell: remove dependency on mach/* headers
ARM: move all dtb targets out of Makefile.boot
ARM: picoxcell: move debug macros to include/debug
ARM: socfpga: move debug macros to include/debug
ARM: mvebu: move debug macros to include/debug
ARM: vexpress: move debug macros to include/debug
ARM: highbank: move debug macros to include/debug
ARM: move debug macros to common location
ARM: make mach/gpio.h headers optional
ARM: orion: move custom gpio functions to orion-gpio.h
ARM: shmobile: move custom gpio functions to sh-gpio.h
ARM: pxa: use gpio_to_irq for sharppm_sl
net: pxaficp_ir: add irq resources
usb: pxa27x_udc: remove IRQ_USB define
staging: ste_rmi4: remove gpio.h include
Conflicts due to addition of bcm2835 and removal of pnx4008 in:
arch/arm/Kconfig
arch/arm/Makefile
Conflicts due to new dtb targets, moved to arch/arm/boot/dts/Makefile in:
arch/arm/mach-imx/Makefile.boot
arch/arm/mach-mxs/Makefile.boot
arch/arm/mach-tegra/Makefile.boot
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm')
107 files changed, 551 insertions, 864 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4235503a8686..f416422ddb0e 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -202,6 +202,13 @@ config ARM_PATCH_PHYS_VIRT | |||
202 | this feature (eg, building a kernel for a single machine) and | 202 | this feature (eg, building a kernel for a single machine) and |
203 | you need to shrink the kernel to the minimal size. | 203 | you need to shrink the kernel to the minimal size. |
204 | 204 | ||
205 | config NEED_MACH_GPIO_H | ||
206 | bool | ||
207 | help | ||
208 | Select this when mach/gpio.h is required to provide special | ||
209 | definitions for this platform. The need for mach/gpio.h should | ||
210 | be avoided when possible. | ||
211 | |||
205 | config NEED_MACH_IO_H | 212 | config NEED_MACH_IO_H |
206 | bool | 213 | bool |
207 | help | 214 | help |
@@ -247,26 +254,17 @@ config MMU | |||
247 | # | 254 | # |
248 | choice | 255 | choice |
249 | prompt "ARM system type" | 256 | prompt "ARM system type" |
250 | default ARCH_VERSATILE | 257 | default ARCH_MULTIPLATFORM |
251 | 258 | ||
252 | config ARCH_SOCFPGA | 259 | config ARCH_MULTIPLATFORM |
253 | bool "Altera SOCFPGA family" | 260 | bool "Allow multiple platforms to be selected" |
254 | select ARCH_WANT_OPTIONAL_GPIOLIB | 261 | select ARM_PATCH_PHYS_VIRT |
255 | select ARM_AMBA | 262 | select AUTO_ZRELADDR |
256 | select ARM_GIC | ||
257 | select CACHE_L2X0 | ||
258 | select CLKDEV_LOOKUP | ||
259 | select COMMON_CLK | 263 | select COMMON_CLK |
260 | select CPU_V7 | 264 | select MULTI_IRQ_HANDLER |
261 | select DW_APB_TIMER | ||
262 | select DW_APB_TIMER_OF | ||
263 | select GENERIC_CLOCKEVENTS | ||
264 | select GPIO_PL061 if GPIOLIB | ||
265 | select HAVE_ARM_SCU | ||
266 | select SPARSE_IRQ | 265 | select SPARSE_IRQ |
267 | select USE_OF | 266 | select USE_OF |
268 | help | 267 | depends on MMU |
269 | This enables support for Altera SOCFPGA Cyclone V platform | ||
270 | 268 | ||
271 | config ARCH_INTEGRATOR | 269 | config ARCH_INTEGRATOR |
272 | bool "ARM Ltd. Integrator family" | 270 | bool "ARM Ltd. Integrator family" |
@@ -318,30 +316,13 @@ config ARCH_VERSATILE | |||
318 | help | 316 | help |
319 | This enables support for ARM Ltd Versatile board. | 317 | This enables support for ARM Ltd Versatile board. |
320 | 318 | ||
321 | config ARCH_VEXPRESS | ||
322 | bool "ARM Ltd. Versatile Express family" | ||
323 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
324 | select ARM_AMBA | ||
325 | select ARM_TIMER_SP804 | ||
326 | select CLKDEV_LOOKUP | ||
327 | select COMMON_CLK | ||
328 | select GENERIC_CLOCKEVENTS | ||
329 | select HAVE_CLK | ||
330 | select HAVE_PATA_PLATFORM | ||
331 | select ICST | ||
332 | select NO_IOPORT | ||
333 | select PLAT_VERSATILE | ||
334 | select PLAT_VERSATILE_CLCD | ||
335 | select REGULATOR_FIXED_VOLTAGE if REGULATOR | ||
336 | help | ||
337 | This enables support for the ARM Ltd Versatile Express boards. | ||
338 | |||
339 | config ARCH_AT91 | 319 | config ARCH_AT91 |
340 | bool "Atmel AT91" | 320 | bool "Atmel AT91" |
341 | select ARCH_REQUIRE_GPIOLIB | 321 | select ARCH_REQUIRE_GPIOLIB |
342 | select HAVE_CLK | 322 | select HAVE_CLK |
343 | select CLKDEV_LOOKUP | 323 | select CLKDEV_LOOKUP |
344 | select IRQ_DOMAIN | 324 | select IRQ_DOMAIN |
325 | select NEED_MACH_GPIO_H | ||
345 | select NEED_MACH_IO_H if PCCARD | 326 | select NEED_MACH_IO_H if PCCARD |
346 | help | 327 | help |
347 | This enables support for systems based on Atmel | 328 | This enables support for systems based on Atmel |
@@ -376,24 +357,6 @@ config ARCH_BCMRING | |||
376 | help | 357 | help |
377 | Support for Broadcom's BCMRing platform. | 358 | Support for Broadcom's BCMRing platform. |
378 | 359 | ||
379 | config ARCH_HIGHBANK | ||
380 | bool "Calxeda Highbank-based" | ||
381 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
382 | select ARM_AMBA | ||
383 | select ARM_GIC | ||
384 | select ARM_TIMER_SP804 | ||
385 | select CACHE_L2X0 | ||
386 | select CLKDEV_LOOKUP | ||
387 | select COMMON_CLK | ||
388 | select CPU_V7 | ||
389 | select GENERIC_CLOCKEVENTS | ||
390 | select HAVE_ARM_SCU | ||
391 | select HAVE_SMP | ||
392 | select SPARSE_IRQ | ||
393 | select USE_OF | ||
394 | help | ||
395 | Support for the Calxeda Highbank SoC based boards. | ||
396 | |||
397 | config ARCH_CLPS711X | 360 | config ARCH_CLPS711X |
398 | bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" | 361 | bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" |
399 | select CPU_ARM720T | 362 | select CPU_ARM720T |
@@ -534,6 +497,8 @@ config ARCH_IOP32X | |||
534 | bool "IOP32x-based" | 497 | bool "IOP32x-based" |
535 | depends on MMU | 498 | depends on MMU |
536 | select CPU_XSCALE | 499 | select CPU_XSCALE |
500 | select NEED_MACH_GPIO_H | ||
501 | select NEED_MACH_IO_H | ||
537 | select NEED_RET_TO_USER | 502 | select NEED_RET_TO_USER |
538 | select PLAT_IOP | 503 | select PLAT_IOP |
539 | select PCI | 504 | select PCI |
@@ -546,6 +511,8 @@ config ARCH_IOP33X | |||
546 | bool "IOP33x-based" | 511 | bool "IOP33x-based" |
547 | depends on MMU | 512 | depends on MMU |
548 | select CPU_XSCALE | 513 | select CPU_XSCALE |
514 | select NEED_MACH_GPIO_H | ||
515 | select NEED_MACH_IO_H | ||
549 | select NEED_RET_TO_USER | 516 | select NEED_RET_TO_USER |
550 | select PLAT_IOP | 517 | select PLAT_IOP |
551 | select PCI | 518 | select PCI |
@@ -567,18 +534,6 @@ config ARCH_IXP4XX | |||
567 | help | 534 | help |
568 | Support for Intel's IXP4XX (XScale) family of processors. | 535 | Support for Intel's IXP4XX (XScale) family of processors. |
569 | 536 | ||
570 | config ARCH_MVEBU | ||
571 | bool "Marvell SOCs with Device Tree support" | ||
572 | select GENERIC_CLOCKEVENTS | ||
573 | select MULTI_IRQ_HANDLER | ||
574 | select SPARSE_IRQ | ||
575 | select CLKSRC_MMIO | ||
576 | select GENERIC_IRQ_CHIP | ||
577 | select IRQ_DOMAIN | ||
578 | select COMMON_CLK | ||
579 | help | ||
580 | Support for the Marvell SoC Family with device tree support | ||
581 | |||
582 | config ARCH_DOVE | 537 | config ARCH_DOVE |
583 | bool "Marvell Dove" | 538 | bool "Marvell Dove" |
584 | select CPU_V7 | 539 | select CPU_V7 |
@@ -650,6 +605,7 @@ config ARCH_MMP | |||
650 | select PLAT_PXA | 605 | select PLAT_PXA |
651 | select SPARSE_IRQ | 606 | select SPARSE_IRQ |
652 | select GENERIC_ALLOCATOR | 607 | select GENERIC_ALLOCATOR |
608 | select NEED_MACH_GPIO_H | ||
653 | help | 609 | help |
654 | Support for Marvell's PXA168/PXA910(MMP) and MMP2 processor line. | 610 | Support for Marvell's PXA168/PXA910(MMP) and MMP2 processor line. |
655 | 611 | ||
@@ -696,25 +652,6 @@ config ARCH_TEGRA | |||
696 | This enables support for NVIDIA Tegra based systems (Tegra APX, | 652 | This enables support for NVIDIA Tegra based systems (Tegra APX, |
697 | Tegra 6xx and Tegra 2 series). | 653 | Tegra 6xx and Tegra 2 series). |
698 | 654 | ||
699 | config ARCH_PICOXCELL | ||
700 | bool "Picochip picoXcell" | ||
701 | select ARCH_REQUIRE_GPIOLIB | ||
702 | select ARM_PATCH_PHYS_VIRT | ||
703 | select ARM_VIC | ||
704 | select CPU_V6K | ||
705 | select DW_APB_TIMER | ||
706 | select DW_APB_TIMER_OF | ||
707 | select GENERIC_CLOCKEVENTS | ||
708 | select GENERIC_GPIO | ||
709 | select HAVE_TCM | ||
710 | select NO_IOPORT | ||
711 | select SPARSE_IRQ | ||
712 | select USE_OF | ||
713 | help | ||
714 | This enables support for systems based on the Picochip picoXcell | ||
715 | family of Femtocell devices. The picoxcell support requires device tree | ||
716 | for all boards. | ||
717 | |||
718 | config ARCH_PXA | 655 | config ARCH_PXA |
719 | bool "PXA2xx/PXA3xx-based" | 656 | bool "PXA2xx/PXA3xx-based" |
720 | depends on MMU | 657 | depends on MMU |
@@ -731,6 +668,7 @@ config ARCH_PXA | |||
731 | select MULTI_IRQ_HANDLER | 668 | select MULTI_IRQ_HANDLER |
732 | select ARM_CPU_SUSPEND if PM | 669 | select ARM_CPU_SUSPEND if PM |
733 | select HAVE_IDE | 670 | select HAVE_IDE |
671 | select NEED_MACH_GPIO_H | ||
734 | help | 672 | help |
735 | Support for Intel/Marvell's PXA2xx/PXA3xx processor line. | 673 | Support for Intel/Marvell's PXA2xx/PXA3xx processor line. |
736 | 674 | ||
@@ -793,6 +731,7 @@ config ARCH_SA1100 | |||
793 | select CLKDEV_LOOKUP | 731 | select CLKDEV_LOOKUP |
794 | select ARCH_REQUIRE_GPIOLIB | 732 | select ARCH_REQUIRE_GPIOLIB |
795 | select HAVE_IDE | 733 | select HAVE_IDE |
734 | select NEED_MACH_GPIO_H | ||
796 | select NEED_MACH_MEMORY_H | 735 | select NEED_MACH_MEMORY_H |
797 | select SPARSE_IRQ | 736 | select SPARSE_IRQ |
798 | help | 737 | help |
@@ -808,6 +747,7 @@ config ARCH_S3C24XX | |||
808 | select HAVE_S3C2410_I2C if I2C | 747 | select HAVE_S3C2410_I2C if I2C |
809 | select HAVE_S3C_RTC if RTC_CLASS | 748 | select HAVE_S3C_RTC if RTC_CLASS |
810 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 749 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
750 | select NEED_MACH_GPIO_H | ||
811 | select NEED_MACH_IO_H | 751 | select NEED_MACH_IO_H |
812 | help | 752 | help |
813 | Samsung S3C2410, S3C2412, S3C2413, S3C2416, S3C2440, S3C2442, S3C2443 | 753 | Samsung S3C2410, S3C2412, S3C2413, S3C2416, S3C2440, S3C2442, S3C2443 |
@@ -835,6 +775,7 @@ config ARCH_S3C64XX | |||
835 | select SAMSUNG_GPIOLIB_4BIT | 775 | select SAMSUNG_GPIOLIB_4BIT |
836 | select HAVE_S3C2410_I2C if I2C | 776 | select HAVE_S3C2410_I2C if I2C |
837 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 777 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
778 | select NEED_MACH_GPIO_H | ||
838 | help | 779 | help |
839 | Samsung S3C64XX series based systems | 780 | Samsung S3C64XX series based systems |
840 | 781 | ||
@@ -849,6 +790,7 @@ config ARCH_S5P64X0 | |||
849 | select GENERIC_CLOCKEVENTS | 790 | select GENERIC_CLOCKEVENTS |
850 | select HAVE_S3C2410_I2C if I2C | 791 | select HAVE_S3C2410_I2C if I2C |
851 | select HAVE_S3C_RTC if RTC_CLASS | 792 | select HAVE_S3C_RTC if RTC_CLASS |
793 | select NEED_MACH_GPIO_H | ||
852 | help | 794 | help |
853 | Samsung S5P64X0 CPU based systems, such as the Samsung SMDK6440, | 795 | Samsung S5P64X0 CPU based systems, such as the Samsung SMDK6440, |
854 | SMDK6450. | 796 | SMDK6450. |
@@ -863,6 +805,7 @@ config ARCH_S5PC100 | |||
863 | select HAVE_S3C2410_I2C if I2C | 805 | select HAVE_S3C2410_I2C if I2C |
864 | select HAVE_S3C_RTC if RTC_CLASS | 806 | select HAVE_S3C_RTC if RTC_CLASS |
865 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 807 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
808 | select NEED_MACH_GPIO_H | ||
866 | help | 809 | help |
867 | Samsung S5PC100 series based systems | 810 | Samsung S5PC100 series based systems |
868 | 811 | ||
@@ -880,6 +823,7 @@ config ARCH_S5PV210 | |||
880 | select HAVE_S3C2410_I2C if I2C | 823 | select HAVE_S3C2410_I2C if I2C |
881 | select HAVE_S3C_RTC if RTC_CLASS | 824 | select HAVE_S3C_RTC if RTC_CLASS |
882 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 825 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
826 | select NEED_MACH_GPIO_H | ||
883 | select NEED_MACH_MEMORY_H | 827 | select NEED_MACH_MEMORY_H |
884 | help | 828 | help |
885 | Samsung S5PV210/S5PC110 series based systems | 829 | Samsung S5PV210/S5PC110 series based systems |
@@ -897,6 +841,7 @@ config ARCH_EXYNOS | |||
897 | select HAVE_S3C_RTC if RTC_CLASS | 841 | select HAVE_S3C_RTC if RTC_CLASS |
898 | select HAVE_S3C2410_I2C if I2C | 842 | select HAVE_S3C2410_I2C if I2C |
899 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 843 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
844 | select NEED_MACH_GPIO_H | ||
900 | select NEED_MACH_MEMORY_H | 845 | select NEED_MACH_MEMORY_H |
901 | help | 846 | help |
902 | Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5) | 847 | Support for SAMSUNG's EXYNOS SoCs (EXYNOS4/5) |
@@ -969,6 +914,7 @@ config ARCH_DAVINCI | |||
969 | select GENERIC_ALLOCATOR | 914 | select GENERIC_ALLOCATOR |
970 | select GENERIC_IRQ_CHIP | 915 | select GENERIC_IRQ_CHIP |
971 | select ARCH_HAS_HOLES_MEMORYMODEL | 916 | select ARCH_HAS_HOLES_MEMORYMODEL |
917 | select NEED_MACH_GPIO_H | ||
972 | help | 918 | help |
973 | Support for TI's DaVinci platform. | 919 | Support for TI's DaVinci platform. |
974 | 920 | ||
@@ -981,6 +927,7 @@ config ARCH_OMAP | |||
981 | select CLKSRC_MMIO | 927 | select CLKSRC_MMIO |
982 | select GENERIC_CLOCKEVENTS | 928 | select GENERIC_CLOCKEVENTS |
983 | select ARCH_HAS_HOLES_MEMORYMODEL | 929 | select ARCH_HAS_HOLES_MEMORYMODEL |
930 | select NEED_MACH_GPIO_H | ||
984 | help | 931 | help |
985 | Support for TI's OMAP platform (OMAP1/2/3/4). | 932 | Support for TI's OMAP platform (OMAP1/2/3/4). |
986 | 933 | ||
@@ -1020,6 +967,50 @@ config ARCH_ZYNQ | |||
1020 | Support for Xilinx Zynq ARM Cortex A9 Platform | 967 | Support for Xilinx Zynq ARM Cortex A9 Platform |
1021 | endchoice | 968 | endchoice |
1022 | 969 | ||
970 | menu "Multiple platform selection" | ||
971 | depends on ARCH_MULTIPLATFORM | ||
972 | |||
973 | comment "CPU Core family selection" | ||
974 | |||
975 | config ARCH_MULTI_V4 | ||
976 | bool "ARMv4 based platforms (FA526, StrongARM)" | ||
977 | select ARCH_MULTI_V4_V5 | ||
978 | depends on !ARCH_MULTI_V6_V7 | ||
979 | |||
980 | config ARCH_MULTI_V4T | ||
981 | bool "ARMv4T based platforms (ARM720T, ARM920T, ...)" | ||
982 | select ARCH_MULTI_V4_V5 | ||
983 | depends on !ARCH_MULTI_V6_V7 | ||
984 | |||
985 | config ARCH_MULTI_V5 | ||
986 | bool "ARMv5 based platforms (ARM926T, XSCALE, PJ1, ...)" | ||
987 | select ARCH_MULTI_V4_V5 | ||
988 | depends on !ARCH_MULTI_V6_V7 | ||
989 | |||
990 | config ARCH_MULTI_V4_V5 | ||
991 | bool | ||
992 | |||
993 | config ARCH_MULTI_V6 | ||
994 | bool "ARMv6 based platforms (ARM11, Scorpion, ...)" | ||
995 | select CPU_V6 | ||
996 | select ARCH_MULTI_V6_V7 | ||
997 | |||
998 | config ARCH_MULTI_V7 | ||
999 | bool "ARMv7 based platforms (Cortex-A, PJ4, Krait)" | ||
1000 | select CPU_V7 | ||
1001 | select ARCH_VEXPRESS | ||
1002 | default y | ||
1003 | select ARCH_MULTI_V6_V7 | ||
1004 | |||
1005 | config ARCH_MULTI_V6_V7 | ||
1006 | bool | ||
1007 | |||
1008 | config ARCH_MULTI_CPU_AUTO | ||
1009 | def_bool !(ARCH_MULTI_V4 || ARCH_MULTI_V4T || ARCH_MULTI_V6_V7) | ||
1010 | select ARCH_MULTI_V5 | ||
1011 | |||
1012 | endmenu | ||
1013 | |||
1023 | # | 1014 | # |
1024 | # This is sorted alphabetically by mach-* pathname. However, plat-* | 1015 | # This is sorted alphabetically by mach-* pathname. However, plat-* |
1025 | # Kconfigs may be included either alphabetically (according to the | 1016 | # Kconfigs may be included either alphabetically (according to the |
@@ -1047,6 +1038,8 @@ source "arch/arm/mach-gemini/Kconfig" | |||
1047 | 1038 | ||
1048 | source "arch/arm/mach-h720x/Kconfig" | 1039 | source "arch/arm/mach-h720x/Kconfig" |
1049 | 1040 | ||
1041 | source "arch/arm/mach-highbank/Kconfig" | ||
1042 | |||
1050 | source "arch/arm/mach-integrator/Kconfig" | 1043 | source "arch/arm/mach-integrator/Kconfig" |
1051 | 1044 | ||
1052 | source "arch/arm/mach-iop32x/Kconfig" | 1045 | source "arch/arm/mach-iop32x/Kconfig" |
@@ -1082,6 +1075,8 @@ source "arch/arm/mach-omap2/Kconfig" | |||
1082 | 1075 | ||
1083 | source "arch/arm/mach-orion5x/Kconfig" | 1076 | source "arch/arm/mach-orion5x/Kconfig" |
1084 | 1077 | ||
1078 | source "arch/arm/mach-picoxcell/Kconfig" | ||
1079 | |||
1085 | source "arch/arm/mach-pxa/Kconfig" | 1080 | source "arch/arm/mach-pxa/Kconfig" |
1086 | source "arch/arm/plat-pxa/Kconfig" | 1081 | source "arch/arm/plat-pxa/Kconfig" |
1087 | 1082 | ||
@@ -1094,6 +1089,8 @@ source "arch/arm/mach-sa1100/Kconfig" | |||
1094 | source "arch/arm/plat-samsung/Kconfig" | 1089 | source "arch/arm/plat-samsung/Kconfig" |
1095 | source "arch/arm/plat-s3c24xx/Kconfig" | 1090 | source "arch/arm/plat-s3c24xx/Kconfig" |
1096 | 1091 | ||
1092 | source "arch/arm/mach-socfpga/Kconfig" | ||
1093 | |||
1097 | source "arch/arm/plat-spear/Kconfig" | 1094 | source "arch/arm/plat-spear/Kconfig" |
1098 | 1095 | ||
1099 | source "arch/arm/mach-s3c24xx/Kconfig" | 1096 | source "arch/arm/mach-s3c24xx/Kconfig" |
@@ -2054,7 +2051,7 @@ endchoice | |||
2054 | 2051 | ||
2055 | config XIP_KERNEL | 2052 | config XIP_KERNEL |
2056 | bool "Kernel Execute-In-Place from ROM" | 2053 | bool "Kernel Execute-In-Place from ROM" |
2057 | depends on !ZBOOT_ROM && !ARM_LPAE | 2054 | depends on !ZBOOT_ROM && !ARM_LPAE && !ARCH_MULTIPLATFORM |
2058 | help | 2055 | help |
2059 | Execute-In-Place allows the kernel to run from non-volatile storage | 2056 | Execute-In-Place allows the kernel to run from non-volatile storage |
2060 | directly addressable by the CPU, such as NOR flash. This saves RAM | 2057 | directly addressable by the CPU, such as NOR flash. This saves RAM |
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index e968a52e4881..a7eb28260b2e 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -261,6 +261,20 @@ choice | |||
261 | Say Y here if you want the debug print routines to direct | 261 | Say Y here if you want the debug print routines to direct |
262 | their output to the serial port on MSM 8960 devices. | 262 | their output to the serial port on MSM 8960 devices. |
263 | 263 | ||
264 | config DEBUG_MVEBU_UART | ||
265 | bool "Kernel low-level debugging messages via MVEBU UART" | ||
266 | depends on ARCH_MVEBU | ||
267 | help | ||
268 | Say Y here if you want kernel low-level debugging support | ||
269 | on MVEBU based platforms. | ||
270 | |||
271 | config DEBUG_PICOXCELL_UART | ||
272 | depends on ARCH_PICOXCELL | ||
273 | bool "Use PicoXcell UART for low-level debug" | ||
274 | help | ||
275 | Say Y here if you want kernel low-level debugging support | ||
276 | on PicoXcell based platforms. | ||
277 | |||
264 | config DEBUG_REALVIEW_STD_PORT | 278 | config DEBUG_REALVIEW_STD_PORT |
265 | bool "RealView Default UART" | 279 | bool "RealView Default UART" |
266 | depends on ARCH_REALVIEW | 280 | depends on ARCH_REALVIEW |
@@ -310,6 +324,13 @@ choice | |||
310 | The uncompressor code port configuration is now handled | 324 | The uncompressor code port configuration is now handled |
311 | by CONFIG_S3C_LOWLEVEL_UART_PORT. | 325 | by CONFIG_S3C_LOWLEVEL_UART_PORT. |
312 | 326 | ||
327 | config DEBUG_SOCFPGA_UART | ||
328 | depends on ARCH_SOCFPGA | ||
329 | bool "Use SOCFPGA UART for low-level debug" | ||
330 | help | ||
331 | Say Y here if you want kernel low-level debugging support | ||
332 | on SOCFPGA based platforms. | ||
333 | |||
313 | config DEBUG_VEXPRESS_UART0_DETECT | 334 | config DEBUG_VEXPRESS_UART0_DETECT |
314 | bool "Autodetect UART0 on Versatile Express Cortex-A core tiles" | 335 | bool "Autodetect UART0 on Versatile Express Cortex-A core tiles" |
315 | depends on ARCH_VEXPRESS && CPU_CP15_MMU | 336 | depends on ARCH_VEXPRESS && CPU_CP15_MMU |
@@ -338,6 +359,7 @@ choice | |||
338 | 359 | ||
339 | config DEBUG_LL_UART_NONE | 360 | config DEBUG_LL_UART_NONE |
340 | bool "No low-level debugging UART" | 361 | bool "No low-level debugging UART" |
362 | depends on !ARCH_MULTIPLATFORM | ||
341 | help | 363 | help |
342 | Say Y here if your platform doesn't provide a UART option | 364 | Say Y here if your platform doesn't provide a UART option |
343 | below. This relies on your platform choosing the right UART | 365 | below. This relies on your platform choosing the right UART |
@@ -373,6 +395,17 @@ choice | |||
373 | 395 | ||
374 | endchoice | 396 | endchoice |
375 | 397 | ||
398 | config DEBUG_LL_INCLUDE | ||
399 | string | ||
400 | default "debug/icedcc.S" if DEBUG_ICEDCC | ||
401 | default "debug/highbank.S" if DEBUG_HIGHBANK_UART | ||
402 | default "debug/mvebu.S" if DEBUG_MVEBU_UART | ||
403 | default "debug/picoxcell.S" if DEBUG_PICOXCELL_UART | ||
404 | default "debug/socfpga.S" if DEBUG_SOCFPGA_UART | ||
405 | default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \ | ||
406 | DEBUG_VEXPRESS_UART0_CA9 || DEBUG_VEXPRESS_UART0_RS1 | ||
407 | default "mach/debug-macro.S" | ||
408 | |||
376 | config EARLY_PRINTK | 409 | config EARLY_PRINTK |
377 | bool "Early printk" | 410 | bool "Early printk" |
378 | depends on DEBUG_LL | 411 | depends on DEBUG_LL |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index f47618252e5d..1c974cf9db1b 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -135,84 +135,79 @@ textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 | |||
135 | 135 | ||
136 | # Machine directory name. This list is sorted alphanumerically | 136 | # Machine directory name. This list is sorted alphanumerically |
137 | # by CONFIG_* macro name. | 137 | # by CONFIG_* macro name. |
138 | machine-$(CONFIG_ARCH_AT91) := at91 | 138 | machine-$(CONFIG_ARCH_AT91) += at91 |
139 | machine-$(CONFIG_ARCH_BCM2835) := bcm2835 | 139 | machine-$(CONFIG_ARCH_BCM2835) += bcm2835 |
140 | machine-$(CONFIG_ARCH_BCMRING) := bcmring | 140 | machine-$(CONFIG_ARCH_BCMRING) += bcmring |
141 | machine-$(CONFIG_ARCH_CLPS711X) := clps711x | 141 | machine-$(CONFIG_ARCH_CLPS711X) += clps711x |
142 | machine-$(CONFIG_ARCH_CNS3XXX) := cns3xxx | 142 | machine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx |
143 | machine-$(CONFIG_ARCH_DAVINCI) := davinci | 143 | machine-$(CONFIG_ARCH_DAVINCI) += davinci |
144 | machine-$(CONFIG_ARCH_DOVE) := dove | 144 | machine-$(CONFIG_ARCH_DOVE) += dove |
145 | machine-$(CONFIG_ARCH_EBSA110) := ebsa110 | 145 | machine-$(CONFIG_ARCH_EBSA110) += ebsa110 |
146 | machine-$(CONFIG_ARCH_EP93XX) := ep93xx | 146 | machine-$(CONFIG_ARCH_EP93XX) += ep93xx |
147 | machine-$(CONFIG_ARCH_GEMINI) := gemini | 147 | machine-$(CONFIG_ARCH_GEMINI) += gemini |
148 | machine-$(CONFIG_ARCH_H720X) := h720x | 148 | machine-$(CONFIG_ARCH_H720X) += h720x |
149 | machine-$(CONFIG_ARCH_HIGHBANK) := highbank | 149 | machine-$(CONFIG_ARCH_HIGHBANK) += highbank |
150 | machine-$(CONFIG_ARCH_INTEGRATOR) := integrator | 150 | machine-$(CONFIG_ARCH_INTEGRATOR) += integrator |
151 | machine-$(CONFIG_ARCH_IOP13XX) := iop13xx | 151 | machine-$(CONFIG_ARCH_IOP13XX) += iop13xx |
152 | machine-$(CONFIG_ARCH_IOP32X) := iop32x | 152 | machine-$(CONFIG_ARCH_IOP32X) += iop32x |
153 | machine-$(CONFIG_ARCH_IOP33X) := iop33x | 153 | machine-$(CONFIG_ARCH_IOP33X) += iop33x |
154 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx | 154 | machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx |
155 | machine-$(CONFIG_ARCH_KIRKWOOD) := kirkwood | 155 | machine-$(CONFIG_ARCH_KIRKWOOD) += kirkwood |
156 | machine-$(CONFIG_ARCH_KS8695) := ks8695 | 156 | machine-$(CONFIG_ARCH_KS8695) += ks8695 |
157 | machine-$(CONFIG_ARCH_LPC32XX) := lpc32xx | 157 | machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx |
158 | machine-$(CONFIG_ARCH_MMP) := mmp | 158 | machine-$(CONFIG_ARCH_MMP) += mmp |
159 | machine-$(CONFIG_ARCH_MSM) := msm | 159 | machine-$(CONFIG_ARCH_MSM) += msm |
160 | machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 | 160 | machine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 |
161 | machine-$(CONFIG_ARCH_IMX_V4_V5) := imx | 161 | machine-$(CONFIG_ARCH_MXC) += imx |
162 | machine-$(CONFIG_ARCH_IMX_V6_V7) := imx | 162 | machine-$(CONFIG_ARCH_MXS) += mxs |
163 | machine-$(CONFIG_ARCH_MXS) := mxs | 163 | machine-$(CONFIG_ARCH_MVEBU) += mvebu |
164 | machine-$(CONFIG_ARCH_MVEBU) := mvebu | 164 | machine-$(CONFIG_ARCH_NETX) += netx |
165 | machine-$(CONFIG_ARCH_NETX) := netx | 165 | machine-$(CONFIG_ARCH_NOMADIK) += nomadik |
166 | machine-$(CONFIG_ARCH_NOMADIK) := nomadik | 166 | machine-$(CONFIG_ARCH_OMAP1) += omap1 |
167 | machine-$(CONFIG_ARCH_OMAP1) := omap1 | 167 | machine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 |
168 | machine-$(CONFIG_ARCH_OMAP2PLUS) := omap2 | 168 | machine-$(CONFIG_ARCH_ORION5X) += orion5x |
169 | machine-$(CONFIG_ARCH_ORION5X) := orion5x | 169 | machine-$(CONFIG_ARCH_PICOXCELL) += picoxcell |
170 | machine-$(CONFIG_ARCH_PICOXCELL) := picoxcell | 170 | machine-$(CONFIG_ARCH_PRIMA2) += prima2 |
171 | machine-$(CONFIG_ARCH_PRIMA2) := prima2 | 171 | machine-$(CONFIG_ARCH_PXA) += pxa |
172 | machine-$(CONFIG_ARCH_PXA) := pxa | 172 | machine-$(CONFIG_ARCH_REALVIEW) += realview |
173 | machine-$(CONFIG_ARCH_REALVIEW) := realview | 173 | machine-$(CONFIG_ARCH_RPC) += rpc |
174 | machine-$(CONFIG_ARCH_RPC) := rpc | 174 | machine-$(CONFIG_ARCH_S3C24XX) += s3c24xx s3c2412 s3c2440 |
175 | machine-$(CONFIG_ARCH_S3C24XX) := s3c24xx s3c2412 s3c2440 | 175 | machine-$(CONFIG_ARCH_S3C64XX) += s3c64xx |
176 | machine-$(CONFIG_ARCH_S3C64XX) := s3c64xx | 176 | machine-$(CONFIG_ARCH_S5P64X0) += s5p64x0 |
177 | machine-$(CONFIG_ARCH_S5P64X0) := s5p64x0 | 177 | machine-$(CONFIG_ARCH_S5PC100) += s5pc100 |
178 | machine-$(CONFIG_ARCH_S5PC100) := s5pc100 | 178 | machine-$(CONFIG_ARCH_S5PV210) += s5pv210 |
179 | machine-$(CONFIG_ARCH_S5PV210) := s5pv210 | 179 | machine-$(CONFIG_ARCH_EXYNOS) += exynos |
180 | machine-$(CONFIG_ARCH_EXYNOS4) := exynos | 180 | machine-$(CONFIG_ARCH_SA1100) += sa1100 |
181 | machine-$(CONFIG_ARCH_EXYNOS5) := exynos | 181 | machine-$(CONFIG_ARCH_SHARK) += shark |
182 | machine-$(CONFIG_ARCH_SA1100) := sa1100 | 182 | machine-$(CONFIG_ARCH_SHMOBILE) += shmobile |
183 | machine-$(CONFIG_ARCH_SHARK) := shark | 183 | machine-$(CONFIG_ARCH_TEGRA) += tegra |
184 | machine-$(CONFIG_ARCH_SHMOBILE) := shmobile | 184 | machine-$(CONFIG_ARCH_U300) += u300 |
185 | machine-$(CONFIG_ARCH_TEGRA) := tegra | 185 | machine-$(CONFIG_ARCH_U8500) += ux500 |
186 | machine-$(CONFIG_ARCH_U300) := u300 | 186 | machine-$(CONFIG_ARCH_VERSATILE) += versatile |
187 | machine-$(CONFIG_ARCH_U8500) := ux500 | 187 | machine-$(CONFIG_ARCH_VEXPRESS) += vexpress |
188 | machine-$(CONFIG_ARCH_VERSATILE) := versatile | 188 | machine-$(CONFIG_ARCH_VT8500) += vt8500 |
189 | machine-$(CONFIG_ARCH_VEXPRESS) := vexpress | 189 | machine-$(CONFIG_ARCH_W90X900) += w90x900 |
190 | machine-$(CONFIG_ARCH_VT8500) := vt8500 | 190 | machine-$(CONFIG_FOOTBRIDGE) += footbridge |
191 | machine-$(CONFIG_ARCH_W90X900) := w90x900 | 191 | machine-$(CONFIG_ARCH_SOCFPGA) += socfpga |
192 | machine-$(CONFIG_FOOTBRIDGE) := footbridge | 192 | machine-$(CONFIG_ARCH_SPEAR13XX) += spear13xx |
193 | machine-$(CONFIG_ARCH_SOCFPGA) := socfpga | 193 | machine-$(CONFIG_ARCH_SPEAR3XX) += spear3xx |
194 | machine-$(CONFIG_MACH_SPEAR1310) := spear13xx | 194 | machine-$(CONFIG_MACH_SPEAR600) += spear6xx |
195 | machine-$(CONFIG_MACH_SPEAR1340) := spear13xx | 195 | machine-$(CONFIG_ARCH_ZYNQ) += zynq |
196 | machine-$(CONFIG_MACH_SPEAR300) := spear3xx | ||
197 | machine-$(CONFIG_MACH_SPEAR310) := spear3xx | ||
198 | machine-$(CONFIG_MACH_SPEAR320) := spear3xx | ||
199 | machine-$(CONFIG_MACH_SPEAR600) := spear6xx | ||
200 | machine-$(CONFIG_ARCH_ZYNQ) := zynq | ||
201 | 196 | ||
202 | # Platform directory name. This list is sorted alphanumerically | 197 | # Platform directory name. This list is sorted alphanumerically |
203 | # by CONFIG_* macro name. | 198 | # by CONFIG_* macro name. |
204 | plat-$(CONFIG_ARCH_MXC) := mxc | 199 | plat-$(CONFIG_ARCH_MXC) += mxc |
205 | plat-$(CONFIG_ARCH_OMAP) := omap | 200 | plat-$(CONFIG_ARCH_OMAP) += omap |
206 | plat-$(CONFIG_ARCH_S3C64XX) := samsung | 201 | plat-$(CONFIG_ARCH_S3C64XX) += samsung |
207 | plat-$(CONFIG_ARCH_ZYNQ) := versatile | 202 | plat-$(CONFIG_ARCH_ZYNQ) += versatile |
208 | plat-$(CONFIG_PLAT_IOP) := iop | 203 | plat-$(CONFIG_PLAT_IOP) += iop |
209 | plat-$(CONFIG_PLAT_NOMADIK) := nomadik | 204 | plat-$(CONFIG_PLAT_NOMADIK) += nomadik |
210 | plat-$(CONFIG_PLAT_ORION) := orion | 205 | plat-$(CONFIG_PLAT_ORION) += orion |
211 | plat-$(CONFIG_PLAT_PXA) := pxa | 206 | plat-$(CONFIG_PLAT_PXA) += pxa |
212 | plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx samsung | 207 | plat-$(CONFIG_PLAT_S3C24XX) += s3c24xx samsung |
213 | plat-$(CONFIG_PLAT_S5P) := samsung | 208 | plat-$(CONFIG_PLAT_S5P) += samsung |
214 | plat-$(CONFIG_PLAT_SPEAR) := spear | 209 | plat-$(CONFIG_PLAT_SPEAR) += spear |
215 | plat-$(CONFIG_PLAT_VERSATILE) := versatile | 210 | plat-$(CONFIG_PLAT_VERSATILE) += versatile |
216 | 211 | ||
217 | ifeq ($(CONFIG_ARCH_EBSA110),y) | 212 | ifeq ($(CONFIG_ARCH_EBSA110),y) |
218 | # This is what happens if you forget the IOCS16 line. | 213 | # This is what happens if you forget the IOCS16 line. |
@@ -230,15 +225,20 @@ MACHINE := arch/arm/mach-$(word 1,$(machine-y))/ | |||
230 | else | 225 | else |
231 | MACHINE := | 226 | MACHINE := |
232 | endif | 227 | endif |
228 | ifeq ($(CONFIG_ARCH_MULTIPLATFORM),y) | ||
229 | MACHINE := | ||
230 | endif | ||
233 | 231 | ||
234 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) | 232 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) |
235 | platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y)) | 233 | platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y)) |
236 | 234 | ||
235 | ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) | ||
237 | ifeq ($(KBUILD_SRC),) | 236 | ifeq ($(KBUILD_SRC),) |
238 | KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) | 237 | KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) |
239 | else | 238 | else |
240 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) | 239 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) |
241 | endif | 240 | endif |
241 | endif | ||
242 | 242 | ||
243 | export TEXT_OFFSET GZFLAGS MMUEXT | 243 | export TEXT_OFFSET GZFLAGS MMUEXT |
244 | 244 | ||
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index c877087d2000..3fdab016aa5c 100644 --- a/arch/arm/boot/Makefile +++ b/arch/arm/boot/Makefile | |||
@@ -15,6 +15,8 @@ ifneq ($(MACHINE),) | |||
15 | include $(srctree)/$(MACHINE)/Makefile.boot | 15 | include $(srctree)/$(MACHINE)/Makefile.boot |
16 | endif | 16 | endif |
17 | 17 | ||
18 | include $(srctree)/arch/arm/boot/dts/Makefile | ||
19 | |||
18 | # Note: the following conditions must always be true: | 20 | # Note: the following conditions must always be true: |
19 | # ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET) | 21 | # ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET) |
20 | # PARAMS_PHYS must be within 4MB of ZRELADDR | 22 | # PARAMS_PHYS must be within 4MB of ZRELADDR |
diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c index 8e2a8fca5ed2..df899834d84e 100644 --- a/arch/arm/boot/compressed/misc.c +++ b/arch/arm/boot/compressed/misc.c | |||
@@ -25,7 +25,13 @@ unsigned int __machine_arch_type; | |||
25 | static void putstr(const char *ptr); | 25 | static void putstr(const char *ptr); |
26 | extern void error(char *x); | 26 | extern void error(char *x); |
27 | 27 | ||
28 | #ifdef CONFIG_ARCH_MULTIPLATFORM | ||
29 | static inline void putc(int c) {} | ||
30 | static inline void flush(void) {} | ||
31 | static inline void arch_decomp_setup(void) {} | ||
32 | #else | ||
28 | #include <mach/uncompress.h> | 33 | #include <mach/uncompress.h> |
34 | #endif | ||
29 | 35 | ||
30 | #ifdef CONFIG_DEBUG_ICEDCC | 36 | #ifdef CONFIG_DEBUG_ICEDCC |
31 | 37 | ||
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile new file mode 100644 index 000000000000..eda7b557c528 --- /dev/null +++ b/arch/arm/boot/dts/Makefile | |||
@@ -0,0 +1,84 @@ | |||
1 | ifeq ($(CONFIG_OF),y) | ||
2 | |||
3 | dtb-$(CONFIG_ARCH_AT91) += aks-cdu.dtb \ | ||
4 | at91sam9263ek.dtb \ | ||
5 | at91sam9g20ek_2mmc.dtb \ | ||
6 | at91sam9g20ek.dtb \ | ||
7 | at91sam9g25ek.dtb \ | ||
8 | at91sam9m10g45ek.dtb \ | ||
9 | at91sam9n12ek.dtb \ | ||
10 | ethernut5.dtb \ | ||
11 | evk-pro3.dtb \ | ||
12 | kizbox.dtb \ | ||
13 | tny_a9260.dtb \ | ||
14 | tny_a9263.dtb \ | ||
15 | tny_a9g20.dtb \ | ||
16 | usb_a9260.dtb \ | ||
17 | usb_a9263.dtb \ | ||
18 | usb_a9g20.dtb | ||
19 | dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \ | ||
20 | exynos4210-smdkv310.dtb \ | ||
21 | exynos5250-smdk5250.dtb | ||
22 | dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb | ||
23 | dtb-$(CONFIG_ARCH_IMX5) += imx51-babbage.dtb \ | ||
24 | imx53-ard.dtb \ | ||
25 | imx53-evk.dtb \ | ||
26 | imx53-qsb.dtb \ | ||
27 | imx53-smd.dtb | ||
28 | dtb-$(CONFIG_SOC_IMX6Q) += imx6q-arm2.dtb \ | ||
29 | imx6q-sabrelite.dtb \ | ||
30 | imx6q-sabresd.dtb | ||
31 | dtb-$(CONFIG_ARCH_LPC32XX) += ea3250.dtb phy3250.dtb | ||
32 | dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \ | ||
33 | kirkwood-dns325.dtb \ | ||
34 | kirkwood-dreamplug.dtb \ | ||
35 | kirkwood-goflexnet.dtb \ | ||
36 | kirkwood-ib62x0.dtb \ | ||
37 | kirkwood-iconnect.dtb \ | ||
38 | kirkwood-lschlv2.dtb \ | ||
39 | kirkwood-lsxhl.dtb \ | ||
40 | kirkwood-ts219-6281.dtb \ | ||
41 | kirkwood-ts219-6282.dtb | ||
42 | dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \ | ||
43 | armada-xp-db.dtb | ||
44 | dtb-$(CONFIG_ARCH_MXC) += imx51-babbage.dtb \ | ||
45 | imx53-ard.dtb \ | ||
46 | imx53-evk.dtb \ | ||
47 | imx53-qsb.dtb \ | ||
48 | imx53-smd.dtb \ | ||
49 | imx6q-arm2.dtb \ | ||
50 | imx6q-sabrelite.dtb \ | ||
51 | imx6q-sabresd.dtb | ||
52 | dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \ | ||
53 | imx23-olinuxino.dtb \ | ||
54 | imx23-stmp378x_devb.dtb \ | ||
55 | imx28-apx4devkit.dtb \ | ||
56 | imx28-cfa10036.dtb \ | ||
57 | imx28-cfa10049.dtb \ | ||
58 | imx28-evk.dtb \ | ||
59 | imx28-m28evk.dtb \ | ||
60 | imx28-tx28.dtb | ||
61 | dtb-$(CONFIG_ARCH_U8500) += snowball.dtb | ||
62 | dtb-$(CONFIG_ARCH_SPEAR13XX) += spear1310-evb.dtb \ | ||
63 | spear1340-evb.dtb | ||
64 | dtb-$(CONFIG_ARCH_SPEAR3XX)+= spear300-evb.dtb \ | ||
65 | spear310-evb.dtb \ | ||
66 | spear320-evb.dtb | ||
67 | dtb-$(CONFIG_ARCH_SPEAR6XX)+= spear600-evb.dtb | ||
68 | dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ | ||
69 | tegra20-medcom-wide.dtb \ | ||
70 | tegra20-paz00.dtb \ | ||
71 | tegra20-plutux.dtb \ | ||
72 | tegra20-seaboard.dtb \ | ||
73 | tegra20-tec.dtb \ | ||
74 | tegra20-trimslice.dtb \ | ||
75 | tegra20-ventana.dtb \ | ||
76 | tegra20-whistler.dtb \ | ||
77 | tegra30-cardhu-a02.dtb \ | ||
78 | tegra30-cardhu-a04.dtb | ||
79 | dtb-$(CONFIG_ARCH_VEXPRESS) += vexpress-v2p-ca5s.dtb \ | ||
80 | vexpress-v2p-ca9.dtb \ | ||
81 | vexpress-v2p-ca15-tc1.dtb \ | ||
82 | vexpress-v2p-ca15_a7.dtb | ||
83 | |||
84 | endif | ||
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index c402e9b31f4c..477e0206e016 100644 --- a/arch/arm/include/asm/gpio.h +++ b/arch/arm/include/asm/gpio.h | |||
@@ -6,7 +6,9 @@ | |||
6 | #endif | 6 | #endif |
7 | 7 | ||
8 | /* not all ARM platforms necessarily support this API ... */ | 8 | /* not all ARM platforms necessarily support this API ... */ |
9 | #ifdef CONFIG_NEED_MACH_GPIO_H | ||
9 | #include <mach/gpio.h> | 10 | #include <mach/gpio.h> |
11 | #endif | ||
10 | 12 | ||
11 | #ifndef __ARM_GPIOLIB_COMPLEX | 13 | #ifndef __ARM_GPIOLIB_COMPLEX |
12 | /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ | 14 | /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ |
diff --git a/arch/arm/include/asm/timex.h b/arch/arm/include/asm/timex.h index ce119442277c..963342acebb7 100644 --- a/arch/arm/include/asm/timex.h +++ b/arch/arm/include/asm/timex.h | |||
@@ -13,7 +13,11 @@ | |||
13 | #define _ASMARM_TIMEX_H | 13 | #define _ASMARM_TIMEX_H |
14 | 14 | ||
15 | #include <asm/arch_timer.h> | 15 | #include <asm/arch_timer.h> |
16 | #ifdef CONFIG_ARCH_MULTIPLATFORM | ||
17 | #define CLOCK_TICK_RATE 1000000 | ||
18 | #else | ||
16 | #include <mach/timex.h> | 19 | #include <mach/timex.h> |
20 | #endif | ||
17 | 21 | ||
18 | typedef unsigned long cycles_t; | 22 | typedef unsigned long cycles_t; |
19 | 23 | ||
diff --git a/arch/arm/mach-highbank/include/mach/debug-macro.S b/arch/arm/include/debug/highbank.S index cb57fe5bcd04..8cad4322a5a2 100644 --- a/arch/arm/mach-highbank/include/mach/debug-macro.S +++ b/arch/arm/include/debug/highbank.S | |||
@@ -10,10 +10,8 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | .macro addruart,rp,rv,tmp | 12 | .macro addruart,rp,rv,tmp |
13 | movw \rv, #0x6000 | 13 | ldr \rv, =0xfee36000 |
14 | movt \rv, #0xfee3 | 14 | ldr \rp, =0xfff36000 |
15 | movw \rp, #0x6000 | ||
16 | movt \rp, #0xfff3 | ||
17 | .endm | 15 | .endm |
18 | 16 | ||
19 | #include <asm/hardware/debug-pl01x.S> | 17 | #include <asm/hardware/debug-pl01x.S> |
diff --git a/arch/arm/include/debug/icedcc.S b/arch/arm/include/debug/icedcc.S new file mode 100644 index 000000000000..43afcb021fa3 --- /dev/null +++ b/arch/arm/include/debug/icedcc.S | |||
@@ -0,0 +1,90 @@ | |||
1 | /* | ||
2 | * arch/arm/include/debug/icedcc.S | ||
3 | * | ||
4 | * Copyright (C) 1994-1999 Russell King | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | @@ debug using ARM EmbeddedICE DCC channel | ||
13 | |||
14 | .macro addruart, rp, rv, tmp | ||
15 | .endm | ||
16 | |||
17 | #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7) | ||
18 | |||
19 | .macro senduart, rd, rx | ||
20 | mcr p14, 0, \rd, c0, c5, 0 | ||
21 | .endm | ||
22 | |||
23 | .macro busyuart, rd, rx | ||
24 | 1001: | ||
25 | mrc p14, 0, \rx, c0, c1, 0 | ||
26 | tst \rx, #0x20000000 | ||
27 | beq 1001b | ||
28 | .endm | ||
29 | |||
30 | .macro waituart, rd, rx | ||
31 | mov \rd, #0x2000000 | ||
32 | 1001: | ||
33 | subs \rd, \rd, #1 | ||
34 | bmi 1002f | ||
35 | mrc p14, 0, \rx, c0, c1, 0 | ||
36 | tst \rx, #0x20000000 | ||
37 | bne 1001b | ||
38 | 1002: | ||
39 | .endm | ||
40 | |||
41 | #elif defined(CONFIG_CPU_XSCALE) | ||
42 | |||
43 | .macro senduart, rd, rx | ||
44 | mcr p14, 0, \rd, c8, c0, 0 | ||
45 | .endm | ||
46 | |||
47 | .macro busyuart, rd, rx | ||
48 | 1001: | ||
49 | mrc p14, 0, \rx, c14, c0, 0 | ||
50 | tst \rx, #0x10000000 | ||
51 | beq 1001b | ||
52 | .endm | ||
53 | |||
54 | .macro waituart, rd, rx | ||
55 | mov \rd, #0x10000000 | ||
56 | 1001: | ||
57 | subs \rd, \rd, #1 | ||
58 | bmi 1002f | ||
59 | mrc p14, 0, \rx, c14, c0, 0 | ||
60 | tst \rx, #0x10000000 | ||
61 | bne 1001b | ||
62 | 1002: | ||
63 | .endm | ||
64 | |||
65 | #else | ||
66 | |||
67 | .macro senduart, rd, rx | ||
68 | mcr p14, 0, \rd, c1, c0, 0 | ||
69 | .endm | ||
70 | |||
71 | .macro busyuart, rd, rx | ||
72 | 1001: | ||
73 | mrc p14, 0, \rx, c0, c0, 0 | ||
74 | tst \rx, #2 | ||
75 | beq 1001b | ||
76 | |||
77 | .endm | ||
78 | |||
79 | .macro waituart, rd, rx | ||
80 | mov \rd, #0x2000000 | ||
81 | 1001: | ||
82 | subs \rd, \rd, #1 | ||
83 | bmi 1002f | ||
84 | mrc p14, 0, \rx, c0, c0, 0 | ||
85 | tst \rx, #2 | ||
86 | bne 1001b | ||
87 | 1002: | ||
88 | .endm | ||
89 | |||
90 | #endif /* CONFIG_CPU_V6 */ | ||
diff --git a/arch/arm/mach-mvebu/include/mach/debug-macro.S b/arch/arm/include/debug/mvebu.S index 22825760c7e1..865c6d02b332 100644 --- a/arch/arm/mach-mvebu/include/mach/debug-macro.S +++ b/arch/arm/include/debug/mvebu.S | |||
@@ -11,7 +11,8 @@ | |||
11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <mach/armada-370-xp.h> | 14 | #define ARMADA_370_XP_REGS_PHYS_BASE 0xd0000000 |
15 | #define ARMADA_370_XP_REGS_VIRT_BASE 0xfeb00000 | ||
15 | 16 | ||
16 | .macro addruart, rp, rv, tmp | 17 | .macro addruart, rp, rv, tmp |
17 | ldr \rp, =ARMADA_370_XP_REGS_PHYS_BASE | 18 | ldr \rp, =ARMADA_370_XP_REGS_PHYS_BASE |
diff --git a/arch/arm/mach-picoxcell/include/mach/debug-macro.S b/arch/arm/include/debug/picoxcell.S index 58d4ee3ae949..7419deb1b948 100644 --- a/arch/arm/mach-picoxcell/include/mach/debug-macro.S +++ b/arch/arm/include/debug/picoxcell.S | |||
@@ -9,10 +9,10 @@ | |||
9 | * accesses to the 8250. | 9 | * accesses to the 8250. |
10 | */ | 10 | */ |
11 | #include <linux/serial_reg.h> | 11 | #include <linux/serial_reg.h> |
12 | #include <mach/hardware.h> | ||
13 | #include <mach/map.h> | ||
14 | 12 | ||
15 | #define UART_SHIFT 2 | 13 | #define UART_SHIFT 2 |
14 | #define PICOXCELL_UART1_BASE 0x80230000 | ||
15 | #define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000) | ||
16 | 16 | ||
17 | .macro addruart, rp, rv, tmp | 17 | .macro addruart, rp, rv, tmp |
18 | ldr \rv, =PHYS_TO_IO(PICOXCELL_UART1_BASE) | 18 | ldr \rv, =PHYS_TO_IO(PICOXCELL_UART1_BASE) |
diff --git a/arch/arm/mach-socfpga/include/mach/debug-macro.S b/arch/arm/include/debug/socfpga.S index d6f26d23374f..d6f26d23374f 100644 --- a/arch/arm/mach-socfpga/include/mach/debug-macro.S +++ b/arch/arm/include/debug/socfpga.S | |||
diff --git a/arch/arm/mach-vexpress/include/mach/debug-macro.S b/arch/arm/include/debug/vexpress.S index 9f509f55d078..9f509f55d078 100644 --- a/arch/arm/mach-vexpress/include/mach/debug-macro.S +++ b/arch/arm/include/debug/vexpress.S | |||
diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S index c45522c36787..66f711b2e0e8 100644 --- a/arch/arm/kernel/debug.S +++ b/arch/arm/kernel/debug.S | |||
@@ -20,90 +20,9 @@ | |||
20 | * references to these in a production kernel! | 20 | * references to these in a production kernel! |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #if defined(CONFIG_DEBUG_ICEDCC) | 23 | #if !defined(CONFIG_DEBUG_SEMIHOSTING) |
24 | @@ debug using ARM EmbeddedICE DCC channel | 24 | #include CONFIG_DEBUG_LL_INCLUDE |
25 | 25 | #endif | |
26 | .macro addruart, rp, rv, tmp | ||
27 | .endm | ||
28 | |||
29 | #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7) | ||
30 | |||
31 | .macro senduart, rd, rx | ||
32 | mcr p14, 0, \rd, c0, c5, 0 | ||
33 | .endm | ||
34 | |||
35 | .macro busyuart, rd, rx | ||
36 | 1001: | ||
37 | mrc p14, 0, \rx, c0, c1, 0 | ||
38 | tst \rx, #0x20000000 | ||
39 | beq 1001b | ||
40 | .endm | ||
41 | |||
42 | .macro waituart, rd, rx | ||
43 | mov \rd, #0x2000000 | ||
44 | 1001: | ||
45 | subs \rd, \rd, #1 | ||
46 | bmi 1002f | ||
47 | mrc p14, 0, \rx, c0, c1, 0 | ||
48 | tst \rx, #0x20000000 | ||
49 | bne 1001b | ||
50 | 1002: | ||
51 | .endm | ||
52 | |||
53 | #elif defined(CONFIG_CPU_XSCALE) | ||
54 | |||
55 | .macro senduart, rd, rx | ||
56 | mcr p14, 0, \rd, c8, c0, 0 | ||
57 | .endm | ||
58 | |||
59 | .macro busyuart, rd, rx | ||
60 | 1001: | ||
61 | mrc p14, 0, \rx, c14, c0, 0 | ||
62 | tst \rx, #0x10000000 | ||
63 | beq 1001b | ||
64 | .endm | ||
65 | |||
66 | .macro waituart, rd, rx | ||
67 | mov \rd, #0x10000000 | ||
68 | 1001: | ||
69 | subs \rd, \rd, #1 | ||
70 | bmi 1002f | ||
71 | mrc p14, 0, \rx, c14, c0, 0 | ||
72 | tst \rx, #0x10000000 | ||
73 | bne 1001b | ||
74 | 1002: | ||
75 | .endm | ||
76 | |||
77 | #else | ||
78 | |||
79 | .macro senduart, rd, rx | ||
80 | mcr p14, 0, \rd, c1, c0, 0 | ||
81 | .endm | ||
82 | |||
83 | .macro busyuart, rd, rx | ||
84 | 1001: | ||
85 | mrc p14, 0, \rx, c0, c0, 0 | ||
86 | tst \rx, #2 | ||
87 | beq 1001b | ||
88 | |||
89 | .endm | ||
90 | |||
91 | .macro waituart, rd, rx | ||
92 | mov \rd, #0x2000000 | ||
93 | 1001: | ||
94 | subs \rd, \rd, #1 | ||
95 | bmi 1002f | ||
96 | mrc p14, 0, \rx, c0, c0, 0 | ||
97 | tst \rx, #2 | ||
98 | bne 1001b | ||
99 | 1002: | ||
100 | .endm | ||
101 | |||
102 | #endif /* CONFIG_CPU_V6 */ | ||
103 | |||
104 | #elif !defined(CONFIG_DEBUG_SEMIHOSTING) | ||
105 | #include <mach/debug-macro.S> | ||
106 | #endif /* CONFIG_DEBUG_ICEDCC */ | ||
107 | 26 | ||
108 | #ifdef CONFIG_MMU | 27 | #ifdef CONFIG_MMU |
109 | .macro addruart_current, rx, tmp1, tmp2 | 28 | .macro addruart_current, rx, tmp1, tmp2 |
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 3db960e20cb8..9874d0741191 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
@@ -23,8 +23,8 @@ | |||
23 | #include <asm/thread_info.h> | 23 | #include <asm/thread_info.h> |
24 | #include <asm/pgtable.h> | 24 | #include <asm/pgtable.h> |
25 | 25 | ||
26 | #ifdef CONFIG_DEBUG_LL | 26 | #if defined(CONFIG_DEBUG_LL) && !defined(CONFIG_DEBUG_SEMIHOSTING) |
27 | #include <mach/debug-macro.S> | 27 | #include CONFIG_DEBUG_LL_INCLUDE |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | /* | 30 | /* |
diff --git a/arch/arm/mach-at91/Makefile.boot b/arch/arm/mach-at91/Makefile.boot index 30bb7332e30b..5309f9b6aabc 100644 --- a/arch/arm/mach-at91/Makefile.boot +++ b/arch/arm/mach-at91/Makefile.boot | |||
@@ -12,27 +12,3 @@ else | |||
12 | params_phys-y := 0x20000100 | 12 | params_phys-y := 0x20000100 |
13 | initrd_phys-y := 0x20410000 | 13 | initrd_phys-y := 0x20410000 |
14 | endif | 14 | endif |
15 | |||
16 | # Keep dtb files sorted alphabetically for each SoC | ||
17 | # sam9260 | ||
18 | dtb-$(CONFIG_MACH_AT91SAM_DT) += aks-cdu.dtb | ||
19 | dtb-$(CONFIG_MACH_AT91SAM_DT) += ethernut5.dtb | ||
20 | dtb-$(CONFIG_MACH_AT91SAM_DT) += evk-pro3.dtb | ||
21 | dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9260.dtb | ||
22 | dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9260.dtb | ||
23 | # sam9263 | ||
24 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9263ek.dtb | ||
25 | dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9263.dtb | ||
26 | dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9263.dtb | ||
27 | # sam9g20 | ||
28 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek.dtb | ||
29 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g20ek_2mmc.dtb | ||
30 | dtb-$(CONFIG_MACH_AT91SAM_DT) += kizbox.dtb | ||
31 | dtb-$(CONFIG_MACH_AT91SAM_DT) += tny_a9g20.dtb | ||
32 | dtb-$(CONFIG_MACH_AT91SAM_DT) += usb_a9g20.dtb | ||
33 | # sam9g45 | ||
34 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9m10g45ek.dtb | ||
35 | # sam9n12 | ||
36 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9n12ek.dtb | ||
37 | # sam9x5 | ||
38 | dtb-$(CONFIG_MACH_AT91SAM_DT) += at91sam9g25ek.dtb | ||
diff --git a/arch/arm/mach-dove/include/mach/gpio.h b/arch/arm/mach-dove/include/mach/gpio.h deleted file mode 100644 index e7e5101e35a5..000000000000 --- a/arch/arm/mach-dove/include/mach/gpio.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-dove/include/mach/gpio.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #include <plat/gpio.h> | ||
diff --git a/arch/arm/mach-dove/irq.c b/arch/arm/mach-dove/irq.c index 9bc97a5baaa8..186357f3b4db 100644 --- a/arch/arm/mach-dove/irq.c +++ b/arch/arm/mach-dove/irq.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <asm/mach/irq.h> | 18 | #include <asm/mach/irq.h> |
19 | #include <mach/pm.h> | 19 | #include <mach/pm.h> |
20 | #include <mach/bridge-regs.h> | 20 | #include <mach/bridge-regs.h> |
21 | #include <plat/orion-gpio.h> | ||
21 | #include "common.h" | 22 | #include "common.h" |
22 | 23 | ||
23 | static void pmu_irq_mask(struct irq_data *d) | 24 | static void pmu_irq_mask(struct irq_data *d) |
diff --git a/arch/arm/mach-dove/mpp.c b/arch/arm/mach-dove/mpp.c index 7f70afc26f91..60bd729a1ba5 100644 --- a/arch/arm/mach-dove/mpp.c +++ b/arch/arm/mach-dove/mpp.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <plat/mpp.h> | 14 | #include <plat/mpp.h> |
15 | #include <mach/dove.h> | 15 | #include <mach/dove.h> |
16 | #include <plat/orion-gpio.h> | ||
16 | #include "mpp.h" | 17 | #include "mpp.h" |
17 | 18 | ||
18 | struct dove_mpp_grp { | 19 | struct dove_mpp_grp { |
diff --git a/arch/arm/mach-ep93xx/include/mach/gpio.h b/arch/arm/mach-ep93xx/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-ep93xx/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-exynos/Makefile.boot b/arch/arm/mach-exynos/Makefile.boot index 31bd181b0514..b9862e22bf10 100644 --- a/arch/arm/mach-exynos/Makefile.boot +++ b/arch/arm/mach-exynos/Makefile.boot | |||
@@ -1,5 +1,2 @@ | |||
1 | zreladdr-y += 0x40008000 | 1 | zreladdr-y += 0x40008000 |
2 | params_phys-y := 0x40000100 | 2 | params_phys-y := 0x40000100 |
3 | |||
4 | dtb-$(CONFIG_MACH_EXYNOS4_DT) += exynos4210-origen.dtb exynos4210-smdkv310.dtb | ||
5 | dtb-$(CONFIG_MACH_EXYNOS5_DT) += exynos5250-smdk5250.dtb | ||
diff --git a/arch/arm/mach-highbank/Kconfig b/arch/arm/mach-highbank/Kconfig new file mode 100644 index 000000000000..0e1d0a42a3ea --- /dev/null +++ b/arch/arm/mach-highbank/Kconfig | |||
@@ -0,0 +1,15 @@ | |||
1 | config ARCH_HIGHBANK | ||
2 | bool "Calxeda ECX-1000 (Highbank)" if ARCH_MULTI_V7 | ||
3 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
4 | select ARM_AMBA | ||
5 | select ARM_GIC | ||
6 | select ARM_TIMER_SP804 | ||
7 | select CACHE_L2X0 | ||
8 | select CLKDEV_LOOKUP | ||
9 | select COMMON_CLK | ||
10 | select CPU_V7 | ||
11 | select GENERIC_CLOCKEVENTS | ||
12 | select HAVE_ARM_SCU | ||
13 | select HAVE_SMP | ||
14 | select SPARSE_IRQ | ||
15 | select USE_OF | ||
diff --git a/arch/arm/mach-highbank/Makefile.boot b/arch/arm/mach-highbank/Makefile.boot deleted file mode 100644 index dae9661a7689..000000000000 --- a/arch/arm/mach-highbank/Makefile.boot +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | zreladdr-y := 0x00008000 | ||
diff --git a/arch/arm/mach-highbank/include/mach/gpio.h b/arch/arm/mach-highbank/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-highbank/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-highbank/include/mach/timex.h b/arch/arm/mach-highbank/include/mach/timex.h deleted file mode 100644 index 88dac7a55a97..000000000000 --- a/arch/arm/mach-highbank/include/mach/timex.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #ifndef __MACH_TIMEX_H | ||
2 | #define __MACH_TIMEX_H | ||
3 | |||
4 | #define CLOCK_TICK_RATE 1000000 | ||
5 | |||
6 | #endif | ||
diff --git a/arch/arm/mach-highbank/include/mach/uncompress.h b/arch/arm/mach-highbank/include/mach/uncompress.h deleted file mode 100644 index bbe20e696325..000000000000 --- a/arch/arm/mach-highbank/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef __MACH_UNCOMPRESS_H | ||
2 | #define __MACH_UNCOMPRESS_H | ||
3 | |||
4 | #define putc(c) | ||
5 | #define flush() | ||
6 | #define arch_decomp_setup() | ||
7 | #define arch_decomp_wdog() | ||
8 | |||
9 | #endif | ||
diff --git a/arch/arm/mach-imx/Makefile.boot b/arch/arm/mach-imx/Makefile.boot index c60967629e27..b27815de8473 100644 --- a/arch/arm/mach-imx/Makefile.boot +++ b/arch/arm/mach-imx/Makefile.boot | |||
@@ -37,14 +37,3 @@ initrd_phys-$(CONFIG_SOC_IMX53) := 0x70800000 | |||
37 | zreladdr-$(CONFIG_SOC_IMX6Q) += 0x10008000 | 37 | zreladdr-$(CONFIG_SOC_IMX6Q) += 0x10008000 |
38 | params_phys-$(CONFIG_SOC_IMX6Q) := 0x10000100 | 38 | params_phys-$(CONFIG_SOC_IMX6Q) := 0x10000100 |
39 | initrd_phys-$(CONFIG_SOC_IMX6Q) := 0x10800000 | 39 | initrd_phys-$(CONFIG_SOC_IMX6Q) := 0x10800000 |
40 | |||
41 | dtb-$(CONFIG_MACH_IMX51_DT) += imx51-babbage.dtb | ||
42 | |||
43 | dtb-$(CONFIG_SOC_IMX53) += imx53-ard.dtb \ | ||
44 | imx53-evk.dtb \ | ||
45 | imx53-qsb.dtb \ | ||
46 | imx53-smd.dtb \ | ||
47 | |||
48 | dtb-$(CONFIG_SOC_IMX6Q) += imx6q-arm2.dtb \ | ||
49 | imx6q-sabrelite.dtb \ | ||
50 | imx6q-sabresd.dtb \ | ||
diff --git a/arch/arm/mach-ixp4xx/include/mach/gpio.h b/arch/arm/mach-ixp4xx/include/mach/gpio.h deleted file mode 100644 index ef37f2635b0e..000000000000 --- a/arch/arm/mach-ixp4xx/include/mach/gpio.h +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | /* empty */ | ||
2 | |||
diff --git a/arch/arm/mach-kirkwood/Makefile.boot b/arch/arm/mach-kirkwood/Makefile.boot index a13299d758e1..760a0efe7580 100644 --- a/arch/arm/mach-kirkwood/Makefile.boot +++ b/arch/arm/mach-kirkwood/Makefile.boot | |||
@@ -1,14 +1,3 @@ | |||
1 | zreladdr-y += 0x00008000 | 1 | zreladdr-y += 0x00008000 |
2 | params_phys-y := 0x00000100 | 2 | params_phys-y := 0x00000100 |
3 | initrd_phys-y := 0x00800000 | 3 | initrd_phys-y := 0x00800000 |
4 | |||
5 | dtb-$(CONFIG_MACH_DREAMPLUG_DT) += kirkwood-dreamplug.dtb | ||
6 | dtb-$(CONFIG_MACH_DLINK_KIRKWOOD_DT) += kirkwood-dns320.dtb | ||
7 | dtb-$(CONFIG_MACH_DLINK_KIRKWOOD_DT) += kirkwood-dns325.dtb | ||
8 | dtb-$(CONFIG_MACH_ICONNECT_DT) += kirkwood-iconnect.dtb | ||
9 | dtb-$(CONFIG_MACH_IB62X0_DT) += kirkwood-ib62x0.dtb | ||
10 | dtb-$(CONFIG_MACH_TS219_DT) += kirkwood-ts219-6281.dtb | ||
11 | dtb-$(CONFIG_MACH_TS219_DT) += kirkwood-ts219-6282.dtb | ||
12 | dtb-$(CONFIG_MACH_GOFLEXNET_DT) += kirkwood-goflexnet.dtb | ||
13 | dtb-$(CONFIG_MACH_LSXL_DT) += kirkwood-lschlv2.dtb | ||
14 | dtb-$(CONFIG_MACH_LSXL_DT) += kirkwood-lsxhl.dtb | ||
diff --git a/arch/arm/mach-kirkwood/include/mach/gpio.h b/arch/arm/mach-kirkwood/include/mach/gpio.h deleted file mode 100644 index 84f340b546c0..000000000000 --- a/arch/arm/mach-kirkwood/include/mach/gpio.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | /* | ||
2 | * arch/asm-arm/mach-kirkwood/include/mach/gpio.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #include <plat/gpio.h> | ||
diff --git a/arch/arm/mach-kirkwood/irq.c b/arch/arm/mach-kirkwood/irq.c index 720063ffa19d..20149a7fd280 100644 --- a/arch/arm/mach-kirkwood/irq.c +++ b/arch/arm/mach-kirkwood/irq.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/irq.h> | 12 | #include <linux/irq.h> |
13 | #include <mach/bridge-regs.h> | 13 | #include <mach/bridge-regs.h> |
14 | #include <plat/orion-gpio.h> | ||
14 | #include <plat/irq.h> | 15 | #include <plat/irq.h> |
15 | 16 | ||
16 | static int __initdata gpio0_irqs[4] = { | 17 | static int __initdata gpio0_irqs[4] = { |
diff --git a/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c b/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c index f742a66a7045..19072c84008f 100644 --- a/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c +++ b/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
20 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
21 | #include <mach/kirkwood.h> | 21 | #include <mach/kirkwood.h> |
22 | #include <plat/orion-gpio.h> | ||
22 | #include "common.h" | 23 | #include "common.h" |
23 | 24 | ||
24 | #define RD88F6192_GPIO_USB_VBUS 10 | 25 | #define RD88F6192_GPIO_USB_VBUS 10 |
diff --git a/arch/arm/mach-lpc32xx/Makefile.boot b/arch/arm/mach-lpc32xx/Makefile.boot index 697323b5f92d..d7392a475247 100644 --- a/arch/arm/mach-lpc32xx/Makefile.boot +++ b/arch/arm/mach-lpc32xx/Makefile.boot | |||
@@ -1,5 +1,3 @@ | |||
1 | zreladdr-y += 0x80008000 | 1 | zreladdr-y += 0x80008000 |
2 | params_phys-y := 0x80000100 | 2 | params_phys-y := 0x80000100 |
3 | initrd_phys-y := 0x82000000 | 3 | initrd_phys-y := 0x82000000 |
4 | |||
5 | dtb-$(CONFIG_ARCH_LPC32XX) += ea3250.dtb phy3250.dtb | ||
diff --git a/arch/arm/mach-msm/include/mach/gpio.h b/arch/arm/mach-msm/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-msm/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-mv78xx0/irq.c b/arch/arm/mach-mv78xx0/irq.c index eff9a750bbe2..4d720f2aedba 100644 --- a/arch/arm/mach-mv78xx0/irq.c +++ b/arch/arm/mach-mv78xx0/irq.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/irq.h> | 12 | #include <linux/irq.h> |
13 | #include <mach/bridge-regs.h> | 13 | #include <mach/bridge-regs.h> |
14 | #include <plat/orion-gpio.h> | ||
14 | #include <plat/irq.h> | 15 | #include <plat/irq.h> |
15 | #include "common.h" | 16 | #include "common.h" |
16 | 17 | ||
diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index caa2c5e734fe..7b270358536e 100644 --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig | |||
@@ -1,3 +1,13 @@ | |||
1 | config ARCH_MVEBU | ||
2 | bool "Marvell SOCs with Device Tree support" if ARCH_MULTI_V7 | ||
3 | select CLKSRC_MMIO | ||
4 | select COMMON_CLK | ||
5 | select GENERIC_CLOCKEVENTS | ||
6 | select GENERIC_IRQ_CHIP | ||
7 | select IRQ_DOMAIN | ||
8 | select MULTI_IRQ_HANDLER | ||
9 | select SPARSE_IRQ | ||
10 | |||
1 | if ARCH_MVEBU | 11 | if ARCH_MVEBU |
2 | 12 | ||
3 | menu "Marvell SOC with device tree" | 13 | menu "Marvell SOC with device tree" |
diff --git a/arch/arm/mach-mvebu/Makefile b/arch/arm/mach-mvebu/Makefile index e61d2b8fdf50..6ea8998ab8f1 100644 --- a/arch/arm/mach-mvebu/Makefile +++ b/arch/arm/mach-mvebu/Makefile | |||
@@ -1,2 +1,4 @@ | |||
1 | ccflags-$(ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include | ||
2 | |||
1 | obj-y += system-controller.o | 3 | obj-y += system-controller.o |
2 | obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o irq-armada-370-xp.o | 4 | obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o irq-armada-370-xp.o |
diff --git a/arch/arm/mach-mvebu/Makefile.boot b/arch/arm/mach-mvebu/Makefile.boot deleted file mode 100644 index 2579a2fc2334..000000000000 --- a/arch/arm/mach-mvebu/Makefile.boot +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | zreladdr-y := 0x00008000 | ||
2 | dtb-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-db.dtb | ||
3 | dtb-$(CONFIG_MACH_ARMADA_370_XP) += armada-xp-db.dtb | ||
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c index 4ef923b032ec..b46418a8b352 100644 --- a/arch/arm/mach-mvebu/armada-370-xp.c +++ b/arch/arm/mach-mvebu/armada-370-xp.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
21 | #include <asm/mach/map.h> | 21 | #include <asm/mach/map.h> |
22 | #include <asm/mach/time.h> | 22 | #include <asm/mach/time.h> |
23 | #include <mach/armada-370-xp.h> | 23 | #include "armada-370-xp.h" |
24 | #include "common.h" | 24 | #include "common.h" |
25 | 25 | ||
26 | static struct map_desc armada_370_xp_io_desc[] __initdata = { | 26 | static struct map_desc armada_370_xp_io_desc[] __initdata = { |
diff --git a/arch/arm/mach-mvebu/include/mach/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h index 25f0ca8d7820..25f0ca8d7820 100644 --- a/arch/arm/mach-mvebu/include/mach/armada-370-xp.h +++ b/arch/arm/mach-mvebu/armada-370-xp.h | |||
diff --git a/arch/arm/mach-mvebu/include/mach/timex.h b/arch/arm/mach-mvebu/include/mach/timex.h deleted file mode 100644 index ab324a3748f2..000000000000 --- a/arch/arm/mach-mvebu/include/mach/timex.h +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | /* | ||
2 | * Marvell Armada SoC time definitions | ||
3 | * | ||
4 | * Copyright (C) 2012 Marvell | ||
5 | * | ||
6 | * Lior Amsalem <alior@marvell.com> | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public | ||
9 | * License version 2. This program is licensed "as is" without any | ||
10 | * warranty of any kind, whether express or implied. | ||
11 | */ | ||
12 | |||
13 | #define CLOCK_TICK_RATE (100 * HZ) | ||
diff --git a/arch/arm/mach-mvebu/include/mach/uncompress.h b/arch/arm/mach-mvebu/include/mach/uncompress.h deleted file mode 100644 index d6a100ccf302..000000000000 --- a/arch/arm/mach-mvebu/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /* | ||
2 | * Marvell Armada SoC kernel uncompression UART routines | ||
3 | * | ||
4 | * Copyright (C) 2012 Marvell | ||
5 | * | ||
6 | * Lior Amsalem <alior@marvell.com> | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public | ||
9 | * License version 2. This program is licensed "as is" without any | ||
10 | * warranty of any kind, whether express or implied. | ||
11 | */ | ||
12 | |||
13 | #include <mach/armada-370-xp.h> | ||
14 | |||
15 | #define UART_THR ((volatile unsigned char *)(ARMADA_370_XP_REGS_PHYS_BASE\ | ||
16 | + 0x12000)) | ||
17 | #define UART_LSR ((volatile unsigned char *)(ARMADA_370_XP_REGS_PHYS_BASE\ | ||
18 | + 0x12014)) | ||
19 | |||
20 | #define LSR_THRE 0x20 | ||
21 | |||
22 | static void putc(const char c) | ||
23 | { | ||
24 | int i; | ||
25 | |||
26 | for (i = 0; i < 0x1000; i++) { | ||
27 | /* Transmit fifo not full? */ | ||
28 | if (*UART_LSR & LSR_THRE) | ||
29 | break; | ||
30 | } | ||
31 | |||
32 | *UART_THR = c; | ||
33 | } | ||
34 | |||
35 | static void flush(void) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | /* | ||
40 | * nothing to do | ||
41 | */ | ||
42 | #define arch_decomp_setup() | ||
43 | #define arch_decomp_wdog() | ||
diff --git a/arch/arm/mach-mxs/Makefile.boot b/arch/arm/mach-mxs/Makefile.boot index 8bd23a8558db..07b11fe6453f 100644 --- a/arch/arm/mach-mxs/Makefile.boot +++ b/arch/arm/mach-mxs/Makefile.boot | |||
@@ -1,11 +1 @@ | |||
1 | zreladdr-y += 0x40008000 | zreladdr-y += 0x40008000 | |
2 | |||
3 | dtb-y += imx23-evk.dtb \ | ||
4 | imx23-olinuxino.dtb \ | ||
5 | imx23-stmp378x_devb.dtb \ | ||
6 | imx28-apx4devkit.dtb \ | ||
7 | imx28-cfa10036.dtb \ | ||
8 | imx28-cfa10049.dtb \ | ||
9 | imx28-evk.dtb \ | ||
10 | imx28-m28evk.dtb \ | ||
11 | imx28-tx28.dtb \ | ||
diff --git a/arch/arm/mach-mxs/include/mach/gpio.h b/arch/arm/mach-mxs/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-mxs/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-nomadik/include/mach/gpio.h b/arch/arm/mach-nomadik/include/mach/gpio.h deleted file mode 100644 index efdde0ae0a4f..000000000000 --- a/arch/arm/mach-nomadik/include/mach/gpio.h +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_GPIO_H | ||
2 | #define __ASM_ARCH_GPIO_H | ||
3 | |||
4 | #endif /* __ASM_ARCH_GPIO_H */ | ||
diff --git a/arch/arm/mach-orion5x/d2net-setup.c b/arch/arm/mach-orion5x/d2net-setup.c index d75dcfa0f01c..e3629c063df2 100644 --- a/arch/arm/mach-orion5x/d2net-setup.c +++ b/arch/arm/mach-orion5x/d2net-setup.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
28 | #include <asm/mach/pci.h> | 28 | #include <asm/mach/pci.h> |
29 | #include <mach/orion5x.h> | 29 | #include <mach/orion5x.h> |
30 | #include <plat/orion-gpio.h> | ||
30 | #include "common.h" | 31 | #include "common.h" |
31 | #include "mpp.h" | 32 | #include "mpp.h" |
32 | 33 | ||
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index d470864b4e42..0e19db69f5c4 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <asm/mach/pci.h> | 34 | #include <asm/mach/pci.h> |
35 | #include <asm/system_info.h> | 35 | #include <asm/system_info.h> |
36 | #include <mach/orion5x.h> | 36 | #include <mach/orion5x.h> |
37 | #include <plat/orion-gpio.h> | ||
37 | #include "common.h" | 38 | #include "common.h" |
38 | #include "mpp.h" | 39 | #include "mpp.h" |
39 | 40 | ||
diff --git a/arch/arm/mach-orion5x/include/mach/gpio.h b/arch/arm/mach-orion5x/include/mach/gpio.h deleted file mode 100644 index a1d0b78decb1..000000000000 --- a/arch/arm/mach-orion5x/include/mach/gpio.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-orion5x/include/mach/gpio.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #include <plat/gpio.h> | ||
diff --git a/arch/arm/mach-orion5x/irq.c b/arch/arm/mach-orion5x/irq.c index 17da7091d310..e152641cdb0e 100644 --- a/arch/arm/mach-orion5x/irq.c +++ b/arch/arm/mach-orion5x/irq.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
15 | #include <mach/bridge-regs.h> | 15 | #include <mach/bridge-regs.h> |
16 | #include <plat/orion-gpio.h> | ||
16 | #include <plat/irq.h> | 17 | #include <plat/irq.h> |
17 | 18 | ||
18 | static int __initdata gpio0_irqs[4] = { | 19 | static int __initdata gpio0_irqs[4] = { |
diff --git a/arch/arm/mach-orion5x/net2big-setup.c b/arch/arm/mach-orion5x/net2big-setup.c index 0180c393c711..3506f16c0bf2 100644 --- a/arch/arm/mach-orion5x/net2big-setup.c +++ b/arch/arm/mach-orion5x/net2big-setup.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
26 | #include <asm/mach/arch.h> | 26 | #include <asm/mach/arch.h> |
27 | #include <mach/orion5x.h> | 27 | #include <mach/orion5x.h> |
28 | #include <plat/orion-gpio.h> | ||
28 | #include "common.h" | 29 | #include "common.h" |
29 | #include "mpp.h" | 30 | #include "mpp.h" |
30 | 31 | ||
diff --git a/arch/arm/mach-picoxcell/Kconfig b/arch/arm/mach-picoxcell/Kconfig new file mode 100644 index 000000000000..868796f8085c --- /dev/null +++ b/arch/arm/mach-picoxcell/Kconfig | |||
@@ -0,0 +1,14 @@ | |||
1 | config ARCH_PICOXCELL | ||
2 | bool "Picochip PicoXcell" if ARCH_MULTI_V6 | ||
3 | select ARCH_REQUIRE_GPIOLIB | ||
4 | select ARM_PATCH_PHYS_VIRT | ||
5 | select ARM_VIC | ||
6 | select CPU_V6K | ||
7 | select DW_APB_TIMER | ||
8 | select DW_APB_TIMER_OF | ||
9 | select GENERIC_CLOCKEVENTS | ||
10 | select GENERIC_GPIO | ||
11 | select HAVE_TCM | ||
12 | select NO_IOPORT | ||
13 | select SPARSE_IRQ | ||
14 | select USE_OF | ||
diff --git a/arch/arm/mach-picoxcell/Makefile.boot b/arch/arm/mach-picoxcell/Makefile.boot deleted file mode 100644 index b3271754e9fd..000000000000 --- a/arch/arm/mach-picoxcell/Makefile.boot +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | zreladdr-y := 0x00008000 | ||
diff --git a/arch/arm/mach-picoxcell/common.c b/arch/arm/mach-picoxcell/common.c index 8f9a0b47a7fa..f6c0849af5e9 100644 --- a/arch/arm/mach-picoxcell/common.c +++ b/arch/arm/mach-picoxcell/common.c | |||
@@ -20,14 +20,15 @@ | |||
20 | #include <asm/hardware/vic.h> | 20 | #include <asm/hardware/vic.h> |
21 | #include <asm/mach/map.h> | 21 | #include <asm/mach/map.h> |
22 | 22 | ||
23 | #include <mach/map.h> | ||
24 | #include <mach/picoxcell_soc.h> | ||
25 | |||
26 | #include "common.h" | 23 | #include "common.h" |
27 | 24 | ||
28 | #define WDT_CTRL_REG_EN_MASK (1 << 0) | 25 | #define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000) |
29 | #define WDT_CTRL_REG_OFFS (0x00) | 26 | #define PICOXCELL_PERIPH_BASE 0x80000000 |
30 | #define WDT_TIMEOUT_REG_OFFS (0x04) | 27 | #define PICOXCELL_PERIPH_LENGTH SZ_4M |
28 | |||
29 | #define WDT_CTRL_REG_EN_MASK (1 << 0) | ||
30 | #define WDT_CTRL_REG_OFFS (0x00) | ||
31 | #define WDT_TIMEOUT_REG_OFFS (0x04) | ||
31 | static void __iomem *wdt_regs; | 32 | static void __iomem *wdt_regs; |
32 | 33 | ||
33 | /* | 34 | /* |
diff --git a/arch/arm/mach-picoxcell/include/mach/gpio.h b/arch/arm/mach-picoxcell/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-picoxcell/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-picoxcell/include/mach/hardware.h b/arch/arm/mach-picoxcell/include/mach/hardware.h deleted file mode 100644 index 70ff58192ec9..000000000000 --- a/arch/arm/mach-picoxcell/include/mach/hardware.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011 Picochip Ltd., Jamie Iles | ||
3 | * | ||
4 | * This file contains the hardware definitions of the picoXcell SoC devices. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | */ | ||
16 | #ifndef __ASM_ARCH_HARDWARE_H | ||
17 | #define __ASM_ARCH_HARDWARE_H | ||
18 | |||
19 | #include <mach/picoxcell_soc.h> | ||
20 | |||
21 | #endif | ||
diff --git a/arch/arm/mach-picoxcell/include/mach/map.h b/arch/arm/mach-picoxcell/include/mach/map.h deleted file mode 100644 index c06afad218bb..000000000000 --- a/arch/arm/mach-picoxcell/include/mach/map.h +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011 Picochip Ltd., Jamie Iles | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | ||
14 | #ifndef __PICOXCELL_MAP_H__ | ||
15 | #define __PICOXCELL_MAP_H__ | ||
16 | |||
17 | #define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000) | ||
18 | |||
19 | #ifdef __ASSEMBLY__ | ||
20 | #define IO_ADDRESS(x) PHYS_TO_IO((x)) | ||
21 | #else | ||
22 | #define IO_ADDRESS(x) (void __iomem __force *)(PHYS_TO_IO((x))) | ||
23 | #endif | ||
24 | |||
25 | #endif /* __PICOXCELL_MAP_H__ */ | ||
diff --git a/arch/arm/mach-picoxcell/include/mach/picoxcell_soc.h b/arch/arm/mach-picoxcell/include/mach/picoxcell_soc.h deleted file mode 100644 index 5566fc88ddbc..000000000000 --- a/arch/arm/mach-picoxcell/include/mach/picoxcell_soc.h +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011 Picochip Ltd., Jamie Iles | ||
3 | * | ||
4 | * This file contains the hardware definitions of the picoXcell SoC devices. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | */ | ||
16 | #ifndef __PICOXCELL_SOC_H__ | ||
17 | #define __PICOXCELL_SOC_H__ | ||
18 | |||
19 | #define PICOXCELL_UART1_BASE 0x80230000 | ||
20 | #define PICOXCELL_PERIPH_BASE 0x80000000 | ||
21 | #define PICOXCELL_PERIPH_LENGTH SZ_4M | ||
22 | #define PICOXCELL_VIC0_BASE 0x80060000 | ||
23 | #define PICOXCELL_VIC1_BASE 0x80064000 | ||
24 | |||
25 | #endif /* __PICOXCELL_SOC_H__ */ | ||
diff --git a/arch/arm/mach-picoxcell/include/mach/timex.h b/arch/arm/mach-picoxcell/include/mach/timex.h deleted file mode 100644 index 6c540a69f405..000000000000 --- a/arch/arm/mach-picoxcell/include/mach/timex.h +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011 Picochip Ltd., Jamie Iles | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | */ | ||
18 | #ifndef __TIMEX_H__ | ||
19 | #define __TIMEX_H__ | ||
20 | |||
21 | /* Bogus value to allow the kernel to compile. */ | ||
22 | #define CLOCK_TICK_RATE 1000000 | ||
23 | |||
24 | #endif /* __TIMEX_H__ */ | ||
25 | |||
diff --git a/arch/arm/mach-picoxcell/include/mach/uncompress.h b/arch/arm/mach-picoxcell/include/mach/uncompress.h deleted file mode 100644 index b60b19d1d739..000000000000 --- a/arch/arm/mach-picoxcell/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011 Picochip Ltd., Jamie Iles | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | */ | ||
18 | #define putc(c) | ||
19 | #define flush() | ||
20 | #define arch_decomp_setup() | ||
21 | #define arch_decomp_wdog() | ||
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index c1f3b1279d97..adf32e61f451 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -383,9 +383,24 @@ struct platform_device pxa_device_asoc_platform = { | |||
383 | 383 | ||
384 | static u64 pxaficp_dmamask = ~(u32)0; | 384 | static u64 pxaficp_dmamask = ~(u32)0; |
385 | 385 | ||
386 | static struct resource pxa_ir_resources[] = { | ||
387 | [0] = { | ||
388 | .start = IRQ_STUART, | ||
389 | .end = IRQ_STUART, | ||
390 | .flags = IORESOURCE_IRQ, | ||
391 | }, | ||
392 | [1] = { | ||
393 | .start = IRQ_ICP, | ||
394 | .end = IRQ_ICP, | ||
395 | .flags = IORESOURCE_IRQ, | ||
396 | }, | ||
397 | }; | ||
398 | |||
386 | struct platform_device pxa_device_ficp = { | 399 | struct platform_device pxa_device_ficp = { |
387 | .name = "pxa2xx-ir", | 400 | .name = "pxa2xx-ir", |
388 | .id = -1, | 401 | .id = -1, |
402 | .num_resources = ARRAY_SIZE(pxa_ir_resources), | ||
403 | .resource = pxa_ir_resources, | ||
389 | .dev = { | 404 | .dev = { |
390 | .dma_mask = &pxaficp_dmamask, | 405 | .dma_mask = &pxaficp_dmamask, |
391 | .coherent_dma_mask = 0xffffffff, | 406 | .coherent_dma_mask = 0xffffffff, |
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c index bdf4cb88ca0a..9a154bad1984 100644 --- a/arch/arm/mach-pxa/sharpsl_pm.c +++ b/arch/arm/mach-pxa/sharpsl_pm.c | |||
@@ -879,7 +879,7 @@ static const struct platform_suspend_ops sharpsl_pm_ops = { | |||
879 | 879 | ||
880 | static int __devinit sharpsl_pm_probe(struct platform_device *pdev) | 880 | static int __devinit sharpsl_pm_probe(struct platform_device *pdev) |
881 | { | 881 | { |
882 | int ret; | 882 | int ret, irq; |
883 | 883 | ||
884 | if (!pdev->dev.platform_data) | 884 | if (!pdev->dev.platform_data) |
885 | return -EINVAL; | 885 | return -EINVAL; |
@@ -907,24 +907,28 @@ static int __devinit sharpsl_pm_probe(struct platform_device *pdev) | |||
907 | gpio_direction_input(sharpsl_pm.machinfo->gpio_batlock); | 907 | gpio_direction_input(sharpsl_pm.machinfo->gpio_batlock); |
908 | 908 | ||
909 | /* Register interrupt handlers */ | 909 | /* Register interrupt handlers */ |
910 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "AC Input Detect", sharpsl_ac_isr)) { | 910 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_acin); |
911 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_acin)); | 911 | if (request_irq(irq, sharpsl_ac_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "AC Input Detect", sharpsl_ac_isr)) { |
912 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
912 | } | 913 | } |
913 | 914 | ||
914 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Battery Cover", sharpsl_fatal_isr)) { | 915 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock); |
915 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batlock)); | 916 | if (request_irq(irq, sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Battery Cover", sharpsl_fatal_isr)) { |
917 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
916 | } | 918 | } |
917 | 919 | ||
918 | if (sharpsl_pm.machinfo->gpio_fatal) { | 920 | if (sharpsl_pm.machinfo->gpio_fatal) { |
919 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Fatal Battery", sharpsl_fatal_isr)) { | 921 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal); |
920 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_fatal)); | 922 | if (request_irq(irq, sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Fatal Battery", sharpsl_fatal_isr)) { |
923 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
921 | } | 924 | } |
922 | } | 925 | } |
923 | 926 | ||
924 | if (sharpsl_pm.machinfo->batfull_irq) { | 927 | if (sharpsl_pm.machinfo->batfull_irq) { |
925 | /* Register interrupt handler. */ | 928 | /* Register interrupt handler. */ |
926 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING, "CO", sharpsl_chrg_full_isr)) { | 929 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull); |
927 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batfull)); | 930 | if (request_irq(irq, sharpsl_chrg_full_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING, "CO", sharpsl_chrg_full_isr)) { |
931 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
928 | } | 932 | } |
929 | } | 933 | } |
930 | 934 | ||
@@ -953,14 +957,14 @@ static int sharpsl_pm_remove(struct platform_device *pdev) | |||
953 | 957 | ||
954 | led_trigger_unregister_simple(sharpsl_charge_led_trigger); | 958 | led_trigger_unregister_simple(sharpsl_charge_led_trigger); |
955 | 959 | ||
956 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr); | 960 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr); |
957 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr); | 961 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr); |
958 | 962 | ||
959 | if (sharpsl_pm.machinfo->gpio_fatal) | 963 | if (sharpsl_pm.machinfo->gpio_fatal) |
960 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); | 964 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); |
961 | 965 | ||
962 | if (sharpsl_pm.machinfo->batfull_irq) | 966 | if (sharpsl_pm.machinfo->batfull_irq) |
963 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); | 967 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); |
964 | 968 | ||
965 | gpio_free(sharpsl_pm.machinfo->gpio_batlock); | 969 | gpio_free(sharpsl_pm.machinfo->gpio_batlock); |
966 | gpio_free(sharpsl_pm.machinfo->gpio_batfull); | 970 | gpio_free(sharpsl_pm.machinfo->gpio_batfull); |
diff --git a/arch/arm/mach-realview/include/mach/gpio.h b/arch/arm/mach-realview/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-realview/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index f172ca85905c..c7f164e20661 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -66,6 +66,8 @@ | |||
66 | #include <asm/mach/arch.h> | 66 | #include <asm/mach/arch.h> |
67 | #include <asm/setup.h> | 67 | #include <asm/setup.h> |
68 | 68 | ||
69 | #include "sh-gpio.h" | ||
70 | |||
69 | /* | 71 | /* |
70 | * Address Interface BusWidth note | 72 | * Address Interface BusWidth note |
71 | * ------------------------------------------------------------------ | 73 | * ------------------------------------------------------------------ |
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 453a6e50db8b..b573de073c2b 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c | |||
@@ -54,6 +54,8 @@ | |||
54 | #include <sound/sh_fsi.h> | 54 | #include <sound/sh_fsi.h> |
55 | #include <sound/simple_card.h> | 55 | #include <sound/simple_card.h> |
56 | 56 | ||
57 | #include "sh-gpio.h" | ||
58 | |||
57 | /* | 59 | /* |
58 | * CON1 Camera Module | 60 | * CON1 Camera Module |
59 | * CON2 Extension Bus | 61 | * CON2 Extension Bus |
diff --git a/arch/arm/mach-shmobile/board-g4evm.c b/arch/arm/mach-shmobile/board-g4evm.c index fa5dfc5c8ed6..eeee12e4da62 100644 --- a/arch/arm/mach-shmobile/board-g4evm.c +++ b/arch/arm/mach-shmobile/board-g4evm.c | |||
@@ -42,6 +42,8 @@ | |||
42 | #include <asm/mach-types.h> | 42 | #include <asm/mach-types.h> |
43 | #include <asm/mach/arch.h> | 43 | #include <asm/mach/arch.h> |
44 | 44 | ||
45 | #include "sh-gpio.h" | ||
46 | |||
45 | /* | 47 | /* |
46 | * SDHI | 48 | * SDHI |
47 | * | 49 | * |
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index c129542f6aed..164fca0c1a42 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -64,6 +64,8 @@ | |||
64 | #include <asm/mach/arch.h> | 64 | #include <asm/mach/arch.h> |
65 | #include <asm/mach-types.h> | 65 | #include <asm/mach-types.h> |
66 | 66 | ||
67 | #include "sh-gpio.h" | ||
68 | |||
67 | /* | 69 | /* |
68 | * Address Interface BusWidth note | 70 | * Address Interface BusWidth note |
69 | * ------------------------------------------------------------------ | 71 | * ------------------------------------------------------------------ |
diff --git a/arch/arm/mach-shmobile/pfc-r8a7740.c b/arch/arm/mach-shmobile/pfc-r8a7740.c index ce9e7fa5cc8a..134d1b9a8821 100644 --- a/arch/arm/mach-shmobile/pfc-r8a7740.c +++ b/arch/arm/mach-shmobile/pfc-r8a7740.c | |||
@@ -20,7 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
23 | #include <linux/gpio.h> | 23 | #include <linux/sh_pfc.h> |
24 | #include <mach/r8a7740.h> | 24 | #include <mach/r8a7740.h> |
25 | #include <mach/irqs.h> | 25 | #include <mach/irqs.h> |
26 | 26 | ||
diff --git a/arch/arm/mach-shmobile/pfc-r8a7779.c b/arch/arm/mach-shmobile/pfc-r8a7779.c index d14c9b048077..cbc26ba2a0a2 100644 --- a/arch/arm/mach-shmobile/pfc-r8a7779.c +++ b/arch/arm/mach-shmobile/pfc-r8a7779.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/gpio.h> | 22 | #include <linux/sh_pfc.h> |
23 | #include <linux/ioport.h> | 23 | #include <linux/ioport.h> |
24 | #include <mach/r8a7779.h> | 24 | #include <mach/r8a7779.h> |
25 | 25 | ||
diff --git a/arch/arm/mach-shmobile/pfc-sh7367.c b/arch/arm/mach-shmobile/pfc-sh7367.c index e6e524654e67..c0c137f39052 100644 --- a/arch/arm/mach-shmobile/pfc-sh7367.c +++ b/arch/arm/mach-shmobile/pfc-sh7367.c | |||
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/gpio.h> | 21 | #include <linux/sh_pfc.h> |
22 | #include <mach/sh7367.h> | 22 | #include <mach/sh7367.h> |
23 | 23 | ||
24 | #define CPU_ALL_PORT(fn, pfx, sfx) \ | 24 | #define CPU_ALL_PORT(fn, pfx, sfx) \ |
diff --git a/arch/arm/mach-shmobile/pfc-sh7372.c b/arch/arm/mach-shmobile/pfc-sh7372.c index 336093f9210a..7a1525fd6ada 100644 --- a/arch/arm/mach-shmobile/pfc-sh7372.c +++ b/arch/arm/mach-shmobile/pfc-sh7372.c | |||
@@ -22,7 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
25 | #include <linux/gpio.h> | 25 | #include <linux/sh_pfc.h> |
26 | #include <mach/irqs.h> | 26 | #include <mach/irqs.h> |
27 | #include <mach/sh7372.h> | 27 | #include <mach/sh7372.h> |
28 | 28 | ||
diff --git a/arch/arm/mach-shmobile/pfc-sh7377.c b/arch/arm/mach-shmobile/pfc-sh7377.c index 2f10511946ad..f3117f67fa25 100644 --- a/arch/arm/mach-shmobile/pfc-sh7377.c +++ b/arch/arm/mach-shmobile/pfc-sh7377.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/gpio.h> | 22 | #include <linux/sh_pfc.h> |
23 | #include <mach/sh7377.h> | 23 | #include <mach/sh7377.h> |
24 | 24 | ||
25 | #define CPU_ALL_PORT(fn, pfx, sfx) \ | 25 | #define CPU_ALL_PORT(fn, pfx, sfx) \ |
diff --git a/arch/arm/mach-shmobile/pfc-sh73a0.c b/arch/arm/mach-shmobile/pfc-sh73a0.c index 4a547b803268..b442f9d8c716 100644 --- a/arch/arm/mach-shmobile/pfc-sh73a0.c +++ b/arch/arm/mach-shmobile/pfc-sh73a0.c | |||
@@ -20,7 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
23 | #include <linux/gpio.h> | 23 | #include <linux/sh_pfc.h> |
24 | #include <mach/sh73a0.h> | 24 | #include <mach/sh73a0.h> |
25 | #include <mach/irqs.h> | 25 | #include <mach/irqs.h> |
26 | 26 | ||
diff --git a/arch/arm/mach-shmobile/include/mach/gpio.h b/arch/arm/mach-shmobile/sh-gpio.h index 844507d937cb..7ba1877fa97a 100644 --- a/arch/arm/mach-shmobile/include/mach/gpio.h +++ b/arch/arm/mach-shmobile/sh-gpio.h | |||
@@ -12,22 +12,8 @@ | |||
12 | 12 | ||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
15 | #include <linux/sh_pfc.h> | ||
16 | #include <linux/io.h> | 15 | #include <linux/io.h> |
17 | 16 | ||
18 | #ifdef CONFIG_GPIOLIB | ||
19 | |||
20 | static inline int irq_to_gpio(unsigned int irq) | ||
21 | { | ||
22 | return -ENOSYS; | ||
23 | } | ||
24 | |||
25 | #else | ||
26 | |||
27 | #define __ARM_GPIOLIB_COMPLEX | ||
28 | |||
29 | #endif /* CONFIG_GPIOLIB */ | ||
30 | |||
31 | /* | 17 | /* |
32 | * FIXME !! | 18 | * FIXME !! |
33 | * | 19 | * |
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig new file mode 100644 index 000000000000..803a3281feb5 --- /dev/null +++ b/arch/arm/mach-socfpga/Kconfig | |||
@@ -0,0 +1,16 @@ | |||
1 | config ARCH_SOCFPGA | ||
2 | bool "Altera SOCFPGA family" if ARCH_MULTI_V7 | ||
3 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
4 | select ARM_AMBA | ||
5 | select ARM_GIC | ||
6 | select CACHE_L2X0 | ||
7 | select CLKDEV_LOOKUP | ||
8 | select COMMON_CLK | ||
9 | select CPU_V7 | ||
10 | select DW_APB_TIMER | ||
11 | select DW_APB_TIMER_OF | ||
12 | select GENERIC_CLOCKEVENTS | ||
13 | select GPIO_PL061 if GPIOLIB | ||
14 | select HAVE_ARM_SCU | ||
15 | select SPARSE_IRQ | ||
16 | select USE_OF | ||
diff --git a/arch/arm/mach-socfpga/Makefile.boot b/arch/arm/mach-socfpga/Makefile.boot deleted file mode 100644 index dae9661a7689..000000000000 --- a/arch/arm/mach-socfpga/Makefile.boot +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | zreladdr-y := 0x00008000 | ||
diff --git a/arch/arm/mach-socfpga/include/mach/timex.h b/arch/arm/mach-socfpga/include/mach/timex.h deleted file mode 100644 index 43df4354e461..000000000000 --- a/arch/arm/mach-socfpga/include/mach/timex.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2003 ARM Limited | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | */ | ||
18 | |||
19 | #define CLOCK_TICK_RATE (50000000 / 16) | ||
diff --git a/arch/arm/mach-socfpga/include/mach/uncompress.h b/arch/arm/mach-socfpga/include/mach/uncompress.h deleted file mode 100644 index bbe20e696325..000000000000 --- a/arch/arm/mach-socfpga/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef __MACH_UNCOMPRESS_H | ||
2 | #define __MACH_UNCOMPRESS_H | ||
3 | |||
4 | #define putc(c) | ||
5 | #define flush() | ||
6 | #define arch_decomp_setup() | ||
7 | #define arch_decomp_wdog() | ||
8 | |||
9 | #endif | ||
diff --git a/arch/arm/mach-spear13xx/Makefile.boot b/arch/arm/mach-spear13xx/Makefile.boot index 403efd7e6d27..4674a4c221db 100644 --- a/arch/arm/mach-spear13xx/Makefile.boot +++ b/arch/arm/mach-spear13xx/Makefile.boot | |||
@@ -1,6 +1,3 @@ | |||
1 | zreladdr-y += 0x00008000 | 1 | zreladdr-y += 0x00008000 |
2 | params_phys-y := 0x00000100 | 2 | params_phys-y := 0x00000100 |
3 | initrd_phys-y := 0x00800000 | 3 | initrd_phys-y := 0x00800000 |
4 | |||
5 | dtb-$(CONFIG_MACH_SPEAR1310) += spear1310-evb.dtb | ||
6 | dtb-$(CONFIG_MACH_SPEAR1340) += spear1340-evb.dtb | ||
diff --git a/arch/arm/mach-spear13xx/include/mach/gpio.h b/arch/arm/mach-spear13xx/include/mach/gpio.h deleted file mode 100644 index 85f176311f63..000000000000 --- a/arch/arm/mach-spear13xx/include/mach/gpio.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-spear13xx/include/mach/gpio.h | ||
3 | * | ||
4 | * GPIO macros for SPEAr13xx machine family | ||
5 | * | ||
6 | * Copyright (C) 2012 ST Microelectronics | ||
7 | * Viresh Kumar <viresh.linux@gmail.com> | ||
8 | * | ||
9 | * This file is licensed under the terms of the GNU General Public | ||
10 | * License version 2. This program is licensed "as is" without any | ||
11 | * warranty of any kind, whether express or implied. | ||
12 | */ | ||
13 | |||
14 | #ifndef __MACH_GPIO_H | ||
15 | #define __MACH_GPIO_H | ||
16 | |||
17 | #include <plat/gpio.h> | ||
18 | |||
19 | #endif /* __MACH_GPIO_H */ | ||
diff --git a/arch/arm/mach-spear3xx/Makefile.boot b/arch/arm/mach-spear3xx/Makefile.boot index d93e2177e6ec..4674a4c221db 100644 --- a/arch/arm/mach-spear3xx/Makefile.boot +++ b/arch/arm/mach-spear3xx/Makefile.boot | |||
@@ -1,7 +1,3 @@ | |||
1 | zreladdr-y += 0x00008000 | 1 | zreladdr-y += 0x00008000 |
2 | params_phys-y := 0x00000100 | 2 | params_phys-y := 0x00000100 |
3 | initrd_phys-y := 0x00800000 | 3 | initrd_phys-y := 0x00800000 |
4 | |||
5 | dtb-$(CONFIG_MACH_SPEAR300) += spear300-evb.dtb | ||
6 | dtb-$(CONFIG_MACH_SPEAR310) += spear310-evb.dtb | ||
7 | dtb-$(CONFIG_MACH_SPEAR320) += spear320-evb.dtb | ||
diff --git a/arch/arm/mach-spear3xx/include/mach/gpio.h b/arch/arm/mach-spear3xx/include/mach/gpio.h deleted file mode 100644 index 2ac74c6db7f1..000000000000 --- a/arch/arm/mach-spear3xx/include/mach/gpio.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-spear3xx/include/mach/gpio.h | ||
3 | * | ||
4 | * GPIO macros for SPEAr3xx machine family | ||
5 | * | ||
6 | * Copyright (C) 2009 ST Microelectronics | ||
7 | * Viresh Kumar<viresh.linux@gmail.com> | ||
8 | * | ||
9 | * This file is licensed under the terms of the GNU General Public | ||
10 | * License version 2. This program is licensed "as is" without any | ||
11 | * warranty of any kind, whether express or implied. | ||
12 | */ | ||
13 | |||
14 | #ifndef __MACH_GPIO_H | ||
15 | #define __MACH_GPIO_H | ||
16 | |||
17 | #include <plat/gpio.h> | ||
18 | |||
19 | #endif /* __MACH_GPIO_H */ | ||
diff --git a/arch/arm/mach-spear6xx/Makefile.boot b/arch/arm/mach-spear6xx/Makefile.boot index af493da37ab6..4674a4c221db 100644 --- a/arch/arm/mach-spear6xx/Makefile.boot +++ b/arch/arm/mach-spear6xx/Makefile.boot | |||
@@ -1,5 +1,3 @@ | |||
1 | zreladdr-y += 0x00008000 | 1 | zreladdr-y += 0x00008000 |
2 | params_phys-y := 0x00000100 | 2 | params_phys-y := 0x00000100 |
3 | initrd_phys-y := 0x00800000 | 3 | initrd_phys-y := 0x00800000 |
4 | |||
5 | dtb-$(CONFIG_BOARD_SPEAR600_DT) += spear600-evb.dtb | ||
diff --git a/arch/arm/mach-spear6xx/include/mach/gpio.h b/arch/arm/mach-spear6xx/include/mach/gpio.h deleted file mode 100644 index d42cefc0356d..000000000000 --- a/arch/arm/mach-spear6xx/include/mach/gpio.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-spear6xx/include/mach/gpio.h | ||
3 | * | ||
4 | * GPIO macros for SPEAr6xx machine family | ||
5 | * | ||
6 | * Copyright (C) 2009 ST Microelectronics | ||
7 | * Viresh Kumar <viresh.linux@gmail.com> | ||
8 | * | ||
9 | * This file is licensed under the terms of the GNU General Public | ||
10 | * License version 2. This program is licensed "as is" without any | ||
11 | * warranty of any kind, whether express or implied. | ||
12 | */ | ||
13 | |||
14 | #ifndef __MACH_GPIO_H | ||
15 | #define __MACH_GPIO_H | ||
16 | |||
17 | #include <plat/gpio.h> | ||
18 | |||
19 | #endif /* __MACH_GPIO_H */ | ||
diff --git a/arch/arm/mach-tegra/Makefile.boot b/arch/arm/mach-tegra/Makefile.boot index 54c16aade475..29433816233c 100644 --- a/arch/arm/mach-tegra/Makefile.boot +++ b/arch/arm/mach-tegra/Makefile.boot | |||
@@ -1,15 +1,3 @@ | |||
1 | zreladdr-$(CONFIG_ARCH_TEGRA_2x_SOC) += 0x00008000 | 1 | zreladdr-$(CONFIG_ARCH_TEGRA_2x_SOC) += 0x00008000 |
2 | params_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00000100 | 2 | params_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00000100 |
3 | initrd_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00800000 | 3 | initrd_phys-$(CONFIG_ARCH_TEGRA_2x_SOC) := 0x00800000 |
4 | |||
5 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-harmony.dtb | ||
6 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-medcom-wide.dtb | ||
7 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-paz00.dtb | ||
8 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-plutux.dtb | ||
9 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-seaboard.dtb | ||
10 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-tec.dtb | ||
11 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-trimslice.dtb | ||
12 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-ventana.dtb | ||
13 | dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20-whistler.dtb | ||
14 | dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30-cardhu-a02.dtb | ||
15 | dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30-cardhu-a04.dtb | ||
diff --git a/arch/arm/mach-tegra/include/mach/gpio.h b/arch/arm/mach-tegra/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-tegra/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-u300/include/mach/gpio.h b/arch/arm/mach-u300/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-u300/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-ux500/Makefile.boot b/arch/arm/mach-ux500/Makefile.boot index dd5cd00e2554..760a0efe7580 100644 --- a/arch/arm/mach-ux500/Makefile.boot +++ b/arch/arm/mach-ux500/Makefile.boot | |||
@@ -1,5 +1,3 @@ | |||
1 | zreladdr-y += 0x00008000 | 1 | zreladdr-y += 0x00008000 |
2 | params_phys-y := 0x00000100 | 2 | params_phys-y := 0x00000100 |
3 | initrd_phys-y := 0x00800000 | 3 | initrd_phys-y := 0x00800000 |
4 | |||
5 | dtb-$(CONFIG_MACH_SNOWBALL) += snowball.dtb | ||
diff --git a/arch/arm/mach-ux500/include/mach/gpio.h b/arch/arm/mach-ux500/include/mach/gpio.h deleted file mode 100644 index c01ef66537f3..000000000000 --- a/arch/arm/mach-ux500/include/mach/gpio.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_GPIO_H | ||
2 | #define __ASM_ARCH_GPIO_H | ||
3 | |||
4 | |||
5 | #endif /* __ASM_ARCH_GPIO_H */ | ||
diff --git a/arch/arm/mach-versatile/include/mach/gpio.h b/arch/arm/mach-versatile/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-versatile/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig index fc3730f01650..c95296066203 100644 --- a/arch/arm/mach-vexpress/Kconfig +++ b/arch/arm/mach-vexpress/Kconfig | |||
@@ -1,38 +1,23 @@ | |||
1 | menu "Versatile Express platform type" | 1 | config ARCH_VEXPRESS |
2 | depends on ARCH_VEXPRESS | 2 | bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 |
3 | 3 | select ARCH_WANT_OPTIONAL_GPIOLIB | |
4 | config ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA | 4 | select ARM_AMBA |
5 | bool "Enable A5 and A9 only errata work-arounds" | ||
6 | default y | ||
7 | select ARM_ERRATA_720789 | ||
8 | select ARM_ERRATA_751472 | ||
9 | select PL310_ERRATA_753970 if CACHE_PL310 | ||
10 | help | ||
11 | Provides common dependencies for Versatile Express platforms | ||
12 | based on Cortex-A5 and Cortex-A9 processors. In order to | ||
13 | build a working kernel, you must also enable relevant core | ||
14 | tile support or Flattened Device Tree based support options. | ||
15 | |||
16 | config ARCH_VEXPRESS_CA9X4 | ||
17 | bool "Versatile Express Cortex-A9x4 tile" | ||
18 | select ARM_GIC | ||
19 | select CPU_V7 | ||
20 | select HAVE_SMP | ||
21 | select MIGHT_HAVE_CACHE_L2X0 | ||
22 | |||
23 | config ARCH_VEXPRESS_DT | ||
24 | bool "Device Tree support for Versatile Express platforms" | ||
25 | select ARM_GIC | 5 | select ARM_GIC |
26 | select ARM_PATCH_PHYS_VIRT | 6 | select ARM_TIMER_SP804 |
27 | select AUTO_ZRELADDR | 7 | select CLKDEV_LOOKUP |
8 | select COMMON_CLK | ||
28 | select CPU_V7 | 9 | select CPU_V7 |
10 | select GENERIC_CLOCKEVENTS | ||
11 | select HAVE_CLK | ||
12 | select HAVE_PATA_PLATFORM | ||
29 | select HAVE_SMP | 13 | select HAVE_SMP |
14 | select ICST | ||
30 | select MIGHT_HAVE_CACHE_L2X0 | 15 | select MIGHT_HAVE_CACHE_L2X0 |
31 | select USE_OF | 16 | select NO_IOPORT |
17 | select PLAT_VERSATILE | ||
18 | select PLAT_VERSATILE_CLCD | ||
19 | select REGULATOR_FIXED_VOLTAGE if REGULATOR | ||
32 | help | 20 | help |
33 | New Versatile Express platforms require Flattened Device Tree to | ||
34 | be passed to the kernel. | ||
35 | |||
36 | This option enables support for systems using Cortex processor based | 21 | This option enables support for systems using Cortex processor based |
37 | ARM core and logic (FPGA) tiles on the Versatile Express motherboard, | 22 | ARM core and logic (FPGA) tiles on the Versatile Express motherboard, |
38 | for example: | 23 | for example: |
@@ -48,7 +33,22 @@ config ARCH_VEXPRESS_DT | |||
48 | platforms. The traditional (ATAGs) boot method is not usable on | 33 | platforms. The traditional (ATAGs) boot method is not usable on |
49 | these boards with this option. | 34 | these boards with this option. |
50 | 35 | ||
51 | If your bootloader supports Flattened Device Tree based booting, | 36 | menu "Versatile Express platform type" |
52 | say Y here. | 37 | depends on ARCH_VEXPRESS |
38 | |||
39 | config ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA | ||
40 | bool "Enable A5 and A9 only errata work-arounds" | ||
41 | default y | ||
42 | select ARM_ERRATA_720789 | ||
43 | select ARM_ERRATA_751472 | ||
44 | select PL310_ERRATA_753970 if CACHE_PL310 | ||
45 | help | ||
46 | Provides common dependencies for Versatile Express platforms | ||
47 | based on Cortex-A5 and Cortex-A9 processors. In order to | ||
48 | build a working kernel, you must also enable relevant core | ||
49 | tile support or Flattened Device Tree based support options. | ||
50 | |||
51 | config ARCH_VEXPRESS_CA9X4 | ||
52 | bool "Versatile Express Cortex-A9x4 tile" | ||
53 | 53 | ||
54 | endmenu | 54 | endmenu |
diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile index 90551b9780ab..42703e8b4d3b 100644 --- a/arch/arm/mach-vexpress/Makefile +++ b/arch/arm/mach-vexpress/Makefile | |||
@@ -1,6 +1,8 @@ | |||
1 | # | 1 | # |
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ | ||
5 | -I$(srctree)/arch/arm/plat-versatile/include | ||
4 | 6 | ||
5 | obj-y := v2m.o | 7 | obj-y := v2m.o |
6 | obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o | 8 | obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o |
diff --git a/arch/arm/mach-vexpress/Makefile.boot b/arch/arm/mach-vexpress/Makefile.boot deleted file mode 100644 index 318d308dfb93..000000000000 --- a/arch/arm/mach-vexpress/Makefile.boot +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # Those numbers are used only by the non-DT V2P-CA9 platform | ||
2 | # The DT-enabled ones require CONFIG_AUTO_ZRELADDR=y | ||
3 | zreladdr-y += 0x60008000 | ||
4 | params_phys-y := 0x60000100 | ||
5 | initrd_phys-y := 0x60800000 | ||
6 | |||
7 | dtb-$(CONFIG_ARCH_VEXPRESS_DT) += vexpress-v2p-ca5s.dtb \ | ||
8 | vexpress-v2p-ca9.dtb \ | ||
9 | vexpress-v2p-ca15-tc1.dtb \ | ||
10 | vexpress-v2p-ca15_a7.dtb | ||
diff --git a/arch/arm/mach-vexpress/ct-ca9x4.c b/arch/arm/mach-vexpress/ct-ca9x4.c index e4073a60a864..4f471fa3e3c5 100644 --- a/arch/arm/mach-vexpress/ct-ca9x4.c +++ b/arch/arm/mach-vexpress/ct-ca9x4.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "core.h" | 26 | #include "core.h" |
27 | 27 | ||
28 | #include <mach/motherboard.h> | 28 | #include <mach/motherboard.h> |
29 | #include <mach/irqs.h> | ||
29 | 30 | ||
30 | #include <plat/clcd.h> | 31 | #include <plat/clcd.h> |
31 | 32 | ||
diff --git a/arch/arm/mach-vexpress/include/mach/gpio.h b/arch/arm/mach-vexpress/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-vexpress/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/mach-vexpress/include/mach/irqs.h b/arch/arm/mach-vexpress/include/mach/irqs.h index 4b10ee7657a6..f8f7f782eb55 100644 --- a/arch/arm/mach-vexpress/include/mach/irqs.h +++ b/arch/arm/mach-vexpress/include/mach/irqs.h | |||
@@ -1,4 +1,6 @@ | |||
1 | #define IRQ_LOCALTIMER 29 | 1 | #define IRQ_LOCALTIMER 29 |
2 | #define IRQ_LOCALWDOG 30 | 2 | #define IRQ_LOCALWDOG 30 |
3 | 3 | ||
4 | #ifndef CONFIG_SPARSE_IRQ | ||
4 | #define NR_IRQS 256 | 5 | #define NR_IRQS 256 |
6 | #endif | ||
diff --git a/arch/arm/mach-vexpress/include/mach/timex.h b/arch/arm/mach-vexpress/include/mach/timex.h deleted file mode 100644 index 00029bacd43c..000000000000 --- a/arch/arm/mach-vexpress/include/mach/timex.h +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-vexpress/include/mach/timex.h | ||
3 | * | ||
4 | * RealView architecture timex specifications | ||
5 | * | ||
6 | * Copyright (C) 2003 ARM Limited | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #define CLOCK_TICK_RATE (50000000 / 16) | ||
diff --git a/arch/arm/mach-vexpress/include/mach/uncompress.h b/arch/arm/mach-vexpress/include/mach/uncompress.h deleted file mode 100644 index 1e472eb0bbdc..000000000000 --- a/arch/arm/mach-vexpress/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-vexpress/include/mach/uncompress.h | ||
3 | * | ||
4 | * Copyright (C) 2003 ARM Limited | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | */ | ||
20 | #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00)) | ||
21 | #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) | ||
22 | #define AMBA_UART_CR(base) (*(volatile unsigned char *)((base) + 0x30)) | ||
23 | #define AMBA_UART_FR(base) (*(volatile unsigned char *)((base) + 0x18)) | ||
24 | |||
25 | #define UART_BASE 0x10009000 | ||
26 | #define UART_BASE_RS1 0x1c090000 | ||
27 | |||
28 | static unsigned long get_uart_base(void) | ||
29 | { | ||
30 | #if defined(CONFIG_DEBUG_VEXPRESS_UART0_DETECT) | ||
31 | unsigned long mpcore_periph; | ||
32 | |||
33 | /* | ||
34 | * Make an educated guess regarding the memory map: | ||
35 | * - the original A9 core tile, which has MPCore peripherals | ||
36 | * located at 0x1e000000, should use UART at 0x10009000 | ||
37 | * - all other (RS1 complaint) tiles use UART mapped | ||
38 | * at 0x1c090000 | ||
39 | */ | ||
40 | asm("mrc p15, 4, %0, c15, c0, 0" : "=r" (mpcore_periph)); | ||
41 | |||
42 | if (mpcore_periph == 0x1e000000) | ||
43 | return UART_BASE; | ||
44 | else | ||
45 | return UART_BASE_RS1; | ||
46 | #elif defined(CONFIG_DEBUG_VEXPRESS_UART0_CA9) | ||
47 | return UART_BASE; | ||
48 | #elif defined(CONFIG_DEBUG_VEXPRESS_UART0_RS1) | ||
49 | return UART_BASE_RS1; | ||
50 | #else | ||
51 | return 0; | ||
52 | #endif | ||
53 | } | ||
54 | |||
55 | /* | ||
56 | * This does not append a newline | ||
57 | */ | ||
58 | static inline void putc(int c) | ||
59 | { | ||
60 | unsigned long base = get_uart_base(); | ||
61 | |||
62 | if (!base) | ||
63 | return; | ||
64 | |||
65 | while (AMBA_UART_FR(base) & (1 << 5)) | ||
66 | barrier(); | ||
67 | |||
68 | AMBA_UART_DR(base) = c; | ||
69 | } | ||
70 | |||
71 | static inline void flush(void) | ||
72 | { | ||
73 | unsigned long base = get_uart_base(); | ||
74 | |||
75 | if (!base) | ||
76 | return; | ||
77 | |||
78 | while (AMBA_UART_FR(base) & (1 << 3)) | ||
79 | barrier(); | ||
80 | } | ||
81 | |||
82 | /* | ||
83 | * nothing to do | ||
84 | */ | ||
85 | #define arch_decomp_setup() | ||
86 | #define arch_decomp_wdog() | ||
diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c index 37608f22ee31..2ca86c50174d 100644 --- a/arch/arm/mach-vexpress/v2m.c +++ b/arch/arm/mach-vexpress/v2m.c | |||
@@ -539,8 +539,6 @@ MACHINE_START(VEXPRESS, "ARM-Versatile Express") | |||
539 | .restart = v2m_restart, | 539 | .restart = v2m_restart, |
540 | MACHINE_END | 540 | MACHINE_END |
541 | 541 | ||
542 | #if defined(CONFIG_ARCH_VEXPRESS_DT) | ||
543 | |||
544 | static struct map_desc v2m_rs1_io_desc __initdata = { | 542 | static struct map_desc v2m_rs1_io_desc __initdata = { |
545 | .virtual = V2M_PERIPH, | 543 | .virtual = V2M_PERIPH, |
546 | .pfn = __phys_to_pfn(0x1c000000), | 544 | .pfn = __phys_to_pfn(0x1c000000), |
@@ -671,5 +669,3 @@ DT_MACHINE_START(VEXPRESS_DT, "ARM-Versatile Express") | |||
671 | .handle_irq = gic_handle_irq, | 669 | .handle_irq = gic_handle_irq, |
672 | .restart = v2m_restart, | 670 | .restart = v2m_restart, |
673 | MACHINE_END | 671 | MACHINE_END |
674 | |||
675 | #endif | ||
diff --git a/arch/arm/mach-vt8500/include/mach/gpio.h b/arch/arm/mach-vt8500/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/mach-vt8500/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/gpio.h b/arch/arm/plat-mxc/include/mach/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/plat-mxc/include/mach/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c index dfda74fae6f2..c29ee7ea200b 100644 --- a/arch/arm/plat-orion/gpio.c +++ b/arch/arm/plat-orion/gpio.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/of.h> | 23 | #include <linux/of.h> |
24 | #include <linux/of_irq.h> | 24 | #include <linux/of_irq.h> |
25 | #include <linux/of_address.h> | 25 | #include <linux/of_address.h> |
26 | #include <plat/gpio.h> | 26 | #include <plat/orion-gpio.h> |
27 | 27 | ||
28 | /* | 28 | /* |
29 | * GPIO unit register offsets. | 29 | * GPIO unit register offsets. |
diff --git a/arch/arm/plat-orion/include/plat/gpio.h b/arch/arm/plat-orion/include/plat/orion-gpio.h index 81c6fc8a7b28..614dcac9dc52 100644 --- a/arch/arm/plat-orion/include/plat/gpio.h +++ b/arch/arm/plat-orion/include/plat/orion-gpio.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-orion/include/plat/gpio.h | 2 | * arch/arm/plat-orion/include/plat/orion-gpio.h |
3 | * | 3 | * |
4 | * Marvell Orion SoC GPIO handling. | 4 | * Marvell Orion SoC GPIO handling. |
5 | * | 5 | * |
diff --git a/arch/arm/plat-orion/irq.c b/arch/arm/plat-orion/irq.c index d751964def4c..1867944415ca 100644 --- a/arch/arm/plat-orion/irq.c +++ b/arch/arm/plat-orion/irq.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/of_address.h> | 16 | #include <linux/of_address.h> |
17 | #include <linux/of_irq.h> | 17 | #include <linux/of_irq.h> |
18 | #include <plat/irq.h> | 18 | #include <plat/irq.h> |
19 | #include <plat/gpio.h> | 19 | #include <plat/orion-gpio.h> |
20 | 20 | ||
21 | void __init orion_irq_init(unsigned int irq_start, void __iomem *maskaddr) | 21 | void __init orion_irq_init(unsigned int irq_start, void __iomem *maskaddr) |
22 | { | 22 | { |
diff --git a/arch/arm/plat-orion/mpp.c b/arch/arm/plat-orion/mpp.c index 3b1e17bd3d17..7740bb31d662 100644 --- a/arch/arm/plat-orion/mpp.c +++ b/arch/arm/plat-orion/mpp.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/gpio.h> | 15 | #include <linux/gpio.h> |
16 | #include <mach/hardware.h> | 16 | #include <mach/hardware.h> |
17 | #include <plat/orion-gpio.h> | ||
17 | #include <plat/mpp.h> | 18 | #include <plat/mpp.h> |
18 | 19 | ||
19 | /* Address of the ith MPP control register */ | 20 | /* Address of the ith MPP control register */ |
diff --git a/arch/arm/plat-spear/include/plat/gpio.h b/arch/arm/plat-spear/include/plat/gpio.h deleted file mode 100644 index 40a8c178f10d..000000000000 --- a/arch/arm/plat-spear/include/plat/gpio.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | /* empty */ | ||
diff --git a/arch/arm/plat-versatile/Makefile b/arch/arm/plat-versatile/Makefile index 272769a8a7d6..74cfd94cbf80 100644 --- a/arch/arm/plat-versatile/Makefile +++ b/arch/arm/plat-versatile/Makefile | |||
@@ -1,3 +1,5 @@ | |||
1 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include | ||
2 | |||
1 | obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o | 3 | obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o |
2 | obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o | 4 | obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o |
3 | obj-$(CONFIG_PLAT_VERSATILE_FPGA_IRQ) += fpga-irq.o | 5 | obj-$(CONFIG_PLAT_VERSATILE_FPGA_IRQ) += fpga-irq.o |