source "arch/arm/mach-socfpga/Kconfig"
 
-source "arch/arm/plat-spear/Kconfig"
+source "arch/arm/mach-spear/Kconfig"
 
 source "arch/arm/mach-s3c24xx/Kconfig"
 
 
 machine-$(CONFIG_ARCH_W90X900)         += w90x900
 machine-$(CONFIG_FOOTBRIDGE)           += footbridge
 machine-$(CONFIG_ARCH_SOCFPGA)         += socfpga
-machine-$(CONFIG_ARCH_SPEAR13XX)       += spear13xx
-machine-$(CONFIG_ARCH_SPEAR3XX)                += spear3xx
-machine-$(CONFIG_MACH_SPEAR600)                += spear6xx
+machine-$(CONFIG_PLAT_SPEAR)           += spear
 machine-$(CONFIG_ARCH_VIRT)            += virt
 machine-$(CONFIG_ARCH_ZYNQ)            += zynq
 machine-$(CONFIG_ARCH_SUNXI)           += sunxi
 plat-$(CONFIG_PLAT_PXA)                += pxa
 plat-$(CONFIG_PLAT_S3C24XX)    += samsung
 plat-$(CONFIG_PLAT_S5P)                += samsung
-plat-$(CONFIG_PLAT_SPEAR)      += spear
 plat-$(CONFIG_PLAT_VERSATILE)  += versatile
 
 ifeq ($(CONFIG_ARCH_EBSA110),y)
 
--- /dev/null
+#
+# SPEAr Platform specific Makefile
+#
+
+# Common support
+obj-y  := restart.o time.o
+
+obj-$(CONFIG_SMP)              += headsmp.o platsmp.o
+obj-$(CONFIG_HOTPLUG_CPU)      += hotplug.o
+
+obj-$(CONFIG_ARCH_SPEAR13XX)   += spear13xx.o
+obj-$(CONFIG_MACH_SPEAR1310)   += spear1310.o
+obj-$(CONFIG_MACH_SPEAR1340)   += spear1340.o
+
+obj-$(CONFIG_ARCH_SPEAR3XX)    += spear3xx.o
+obj-$(CONFIG_ARCH_SPEAR3XX)    += pl080.o
+obj-$(CONFIG_MACH_SPEAR300)    += spear300.o
+obj-$(CONFIG_MACH_SPEAR310)    += spear310.o
+obj-$(CONFIG_MACH_SPEAR320)    += spear320.o
+
+obj-$(CONFIG_ARCH_SPEAR6XX)    += spear6xx.o
+obj-$(CONFIG_ARCH_SPEAR6XX)    += pl080.o
 
+++ /dev/null
-#
-# Makefile for SPEAr13XX machine series
-#
-
-obj-$(CONFIG_SMP)              += headsmp.o platsmp.o
-obj-$(CONFIG_HOTPLUG_CPU)      += hotplug.o
-
-obj-$(CONFIG_ARCH_SPEAR13XX)   += spear13xx.o
-obj-$(CONFIG_MACH_SPEAR1310)   += spear1310.o
-obj-$(CONFIG_MACH_SPEAR1340)   += spear1340.o
 
+++ /dev/null
-#
-# Makefile for SPEAr3XX machine series
-#
-
-# common files
-obj-$(CONFIG_ARCH_SPEAR3XX)    += spear3xx.o
-
-# spear300 specific files
-obj-$(CONFIG_MACH_SPEAR300) += spear300.o
-
-# spear310 specific files
-obj-$(CONFIG_MACH_SPEAR310) += spear310.o
-
-# spear320 specific files
-obj-$(CONFIG_MACH_SPEAR320) += spear320.o
 
+++ /dev/null
-zreladdr-y     += 0x00008000
-params_phys-y  := 0x00000100
-initrd_phys-y  := 0x00800000
 
+++ /dev/null
-#
-# Makefile for SPEAr6XX machine series
-#
-
-# common files
-obj-y  += spear6xx.o
 
+++ /dev/null
-zreladdr-y     += 0x00008000
-params_phys-y  := 0x00000100
-initrd_phys-y  := 0x00800000
 
+++ /dev/null
-#
-# SPEAr Platform specific Makefile
-#
-
-# Common support
-obj-y  := restart.o time.o
-
-obj-$(CONFIG_ARCH_SPEAR3XX)    += pl080.o
-obj-$(CONFIG_ARCH_SPEAR6XX)    += pl080.o