]> git.ipfire.org Git - people/ms/linux.git/commitdiff
ARM: pxa: move plat-pxa to drivers/soc/
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Sep 2019 11:33:40 +0000 (13:33 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 7 May 2022 20:56:16 +0000 (22:56 +0200)
There are two drivers in arch/arm/plat-pxa: mfp and ssp. Both
of them should ideally not be needed at all, as there are
proper subsystems to replace them.

OTOH, they are self-contained and can simply be normal
SoC drivers, so move them over there to eliminate one more
of the plat-* directories.

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> (mach-pxa)
Acked-by: Lubomir Rintel <lkundrak@v3.sk> (mach-mmp)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
13 files changed:
arch/arm/Kconfig
arch/arm/Makefile
arch/arm/mach-mmp/mfp.h
arch/arm/mach-pxa/include/mach/mfp.h
arch/arm/mach-pxa/mfp-pxa2xx.h
arch/arm/mach-pxa/mfp-pxa3xx.h
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/pxa/Kconfig [moved from arch/arm/plat-pxa/Kconfig with 83% similarity]
drivers/soc/pxa/Makefile [moved from arch/arm/plat-pxa/Makefile with 51% similarity]
drivers/soc/pxa/mfp.c [moved from arch/arm/plat-pxa/mfp.c with 99% similarity]
drivers/soc/pxa/ssp.c [moved from arch/arm/plat-pxa/ssp.c with 100% similarity]
include/linux/soc/pxa/mfp.h [moved from arch/arm/plat-pxa/include/plat/mfp.h with 98% similarity]

index 2e8091e2d8a86d12d40c4d83fce2b2eb9ed43edf..eef8cbf2004561aaf723f6a77f3b058e9cc23ac0 100644 (file)
@@ -667,7 +667,6 @@ source "arch/arm/mach-orion5x/Kconfig"
 source "arch/arm/mach-oxnas/Kconfig"
 
 source "arch/arm/mach-pxa/Kconfig"
-source "arch/arm/plat-pxa/Kconfig"
 
 source "arch/arm/mach-qcom/Kconfig"
 
@@ -753,9 +752,6 @@ config PLAT_ORION_LEGACY
        bool
        select PLAT_ORION
 
-config PLAT_PXA
-       bool
-
 config PLAT_VERSATILE
        bool
 
index a2391b8de5a556a8bef253b32c0cbd04680b55c8..206a900fc87c650d43a00161f89438eb83004056 100644 (file)
@@ -230,7 +230,6 @@ machine-$(CONFIG_PLAT_SPEAR)                += spear
 # by CONFIG_* macro name.
 plat-$(CONFIG_ARCH_OMAP)       += omap
 plat-$(CONFIG_PLAT_ORION)      += orion
-plat-$(CONFIG_PLAT_PXA)                += pxa
 plat-$(CONFIG_PLAT_VERSATILE)  += versatile
 
 # The byte offset of the kernel image in RAM from the start of RAM.
index 75a4acb33b1b60def710dc0a2e1a29aeea6546ea..6f30579877567f903594a9a6d15327b8f3cf8fda 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef __ASM_MACH_MFP_H
 #define __ASM_MACH_MFP_H
 
-#include <plat/mfp.h>
+#include <linux/soc/pxa/mfp.h>
 
 /*
  * NOTE: the MFPR register bit definitions on PXA168 processor lines are a
index dbb961fb570e899f18b979300e34cc73d12d38ef..7e0879bd41029200bb2af9d4fe225779530a416f 100644 (file)
@@ -13,6 +13,6 @@
 #ifndef __ASM_ARCH_MFP_H
 #define __ASM_ARCH_MFP_H
 
-#include <plat/mfp.h>
+#include <linux/soc/pxa/mfp.h>
 
 #endif /* __ASM_ARCH_MFP_H */
index 980145e7ee99dcb5b505e51535c12dd3abb765ab..683a3ea5f15443692c8e50a7a9856227e1ab2ec5 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef __ASM_ARCH_MFP_PXA2XX_H
 #define __ASM_ARCH_MFP_PXA2XX_H
 
-#include <plat/mfp.h>
+#include <linux/soc/pxa/mfp.h>
 
 /*
  * the following MFP_xxx bit definitions in mfp.h are re-used for pxa2xx:
index cdd830926d1c7358a1d4c82ec2961d749e87b531..81fec4fa5a0f74e4fd06bd7b478901edf94b4b8f 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef __ASM_ARCH_MFP_PXA3XX_H
 #define __ASM_ARCH_MFP_PXA3XX_H
 
-#include <plat/mfp.h>
+#include <linux/soc/pxa/mfp.h>
 
 #define MFPR_BASE      (0x40e10000)
 
index c5aae42673d3b89e821f74e8bbd2ce544f0610e1..86ccf5970bc1bea94d4323967e238af5ab5dedb7 100644 (file)
@@ -14,6 +14,7 @@ source "drivers/soc/ixp4xx/Kconfig"
 source "drivers/soc/litex/Kconfig"
 source "drivers/soc/mediatek/Kconfig"
 source "drivers/soc/microchip/Kconfig"
+source "drivers/soc/pxa/Kconfig"
 source "drivers/soc/qcom/Kconfig"
 source "drivers/soc/renesas/Kconfig"
 source "drivers/soc/rockchip/Kconfig"
index 904eec2a7871325d0d7808206459551aed889525..fd7717d597fcc37179697a6dfe69394863e2195d 100644 (file)
@@ -19,6 +19,7 @@ obj-$(CONFIG_SOC_XWAY)                += lantiq/
 obj-$(CONFIG_LITEX_SOC_CONTROLLER) += litex/
 obj-y                          += mediatek/
 obj-y                          += microchip/
+obj-y                          += pxa/
 obj-y                          += amlogic/
 obj-y                          += qcom/
 obj-y                          += renesas/
similarity index 83%
rename from arch/arm/plat-pxa/Kconfig
rename to drivers/soc/pxa/Kconfig
index 6f7a0a39c2b9b630ab050519421b2bb616da6017..c5c265aa4f075478a4fd8f0629d706470fb65f1c 100644 (file)
@@ -1,9 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
-if PLAT_PXA
+config PLAT_PXA
+       bool
 
 config PXA_SSP
        tristate
        help
          Enable support for PXA2xx SSP ports
-
-endif
similarity index 51%
rename from arch/arm/plat-pxa/Makefile
rename to drivers/soc/pxa/Makefile
index 349ea0af845089f8de4ba12de9928b13a035cfac..413deceddbddfb9421bcaa196741fc6a46706ff7 100644 (file)
@@ -1,8 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
-#
-# Makefile for code common across different PXA processor families
-#
-ccflags-$(CONFIG_ARCH_MMP) := -I$(srctree)/$(src)/include
 
 obj-$(CONFIG_PXA3xx)           += mfp.o
 obj-$(CONFIG_ARCH_MMP)         += mfp.o
similarity index 99%
rename from arch/arm/plat-pxa/mfp.c
rename to drivers/soc/pxa/mfp.c
index 17fc4f33f35bd51bb66da63a7570a8d735297a13..6220ba321cfcfb1e9db034e3d0612f891c9cb188 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/init.h>
 #include <linux/io.h>
 
-#include <plat/mfp.h>
+#include <linux/soc/pxa/mfp.h>
 
 #define MFPR_SIZE      (PAGE_SIZE)
 
similarity index 98%
rename from arch/arm/plat-pxa/include/plat/mfp.h
rename to include/linux/soc/pxa/mfp.h
index 3accaa9ee78145fd366b52be281c10ba9912a3f7..39779cbed0c052385f3c0f7d1c6cb23c13015821 100644 (file)
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * arch/arm/plat-pxa/include/plat/mfp.h
- *
  *   Common Multi-Function Pin Definitions
  *
  * Copyright (C) 2007 Marvell International Ltd.
@@ -453,8 +451,8 @@ struct mfp_addr_map {
 
 #define MFP_ADDR_END   { MFP_PIN_INVALID, 0 }
 
-void __init mfp_init_base(void __iomem *mfpr_base);
-void __init mfp_init_addr(struct mfp_addr_map *map);
+void mfp_init_base(void __iomem *mfpr_base);
+void mfp_init_addr(struct mfp_addr_map *map);
 
 /*
  * mfp_{read, write}() - for direct read/write access to the MFPR register