]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
QE: Move QE from arch/powerpc to drivers/soc
authorZhao Qiang <qiang.zhao@freescale.com>
Mon, 30 Nov 2015 02:48:57 +0000 (10:48 +0800)
committerScott Wood <scottwood@freescale.com>
Tue, 22 Dec 2015 23:12:56 +0000 (17:12 -0600)
ls1 has qe and ls1 has arm cpu.
move qe from arch/powerpc to drivers/soc/fsl
to adapt to powerpc and arm

Signed-off-by: Zhao Qiang <qiang.zhao@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
48 files changed:
MAINTAINERS
arch/powerpc/Kconfig
arch/powerpc/include/asm/cpm.h
arch/powerpc/platforms/83xx/km83xx.c
arch/powerpc/platforms/83xx/misc.c
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc832x_rdb.c
arch/powerpc/platforms/83xx/mpc836x_mds.c
arch/powerpc/platforms/83xx/mpc836x_rdk.c
arch/powerpc/platforms/85xx/common.c
arch/powerpc/platforms/85xx/corenet_generic.c
arch/powerpc/platforms/85xx/mpc85xx_mds.c
arch/powerpc/platforms/85xx/mpc85xx_rdb.c
arch/powerpc/platforms/85xx/twr_p102x.c
arch/powerpc/platforms/Kconfig
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/cpm_common.c
drivers/net/ethernet/freescale/fsl_pq_mdio.c
drivers/net/ethernet/freescale/ucc_geth.c
drivers/net/ethernet/freescale/ucc_geth.h
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/fsl/Makefile [new file with mode: 0644]
drivers/soc/fsl/qe/Kconfig [moved from arch/powerpc/sysdev/qe_lib/Kconfig with 54% similarity]
drivers/soc/fsl/qe/Makefile [moved from arch/powerpc/sysdev/qe_lib/Makefile with 100% similarity]
drivers/soc/fsl/qe/gpio.c [moved from arch/powerpc/sysdev/qe_lib/gpio.c with 99% similarity]
drivers/soc/fsl/qe/qe.c [moved from arch/powerpc/sysdev/qe_lib/qe.c with 99% similarity]
drivers/soc/fsl/qe/qe_common.c [moved from arch/powerpc/sysdev/qe_lib/qe_common.c with 99% similarity]
drivers/soc/fsl/qe/qe_ic.c [moved from arch/powerpc/sysdev/qe_lib/qe_ic.c with 99% similarity]
drivers/soc/fsl/qe/qe_ic.h [moved from arch/powerpc/sysdev/qe_lib/qe_ic.h with 97% similarity]
drivers/soc/fsl/qe/qe_io.c [moved from arch/powerpc/sysdev/qe_lib/qe_io.c with 99% similarity]
drivers/soc/fsl/qe/ucc.c [moved from arch/powerpc/sysdev/qe_lib/ucc.c with 98% similarity]
drivers/soc/fsl/qe/ucc_fast.c [moved from arch/powerpc/sysdev/qe_lib/ucc_fast.c with 98% similarity]
drivers/soc/fsl/qe/ucc_slow.c [moved from arch/powerpc/sysdev/qe_lib/ucc_slow.c with 98% similarity]
drivers/soc/fsl/qe/usb.c [moved from arch/powerpc/sysdev/qe_lib/usb.c with 96% similarity]
drivers/spi/spi-fsl-cpm.c
drivers/tty/serial/ucc_uart.c
drivers/usb/gadget/udc/fsl_qe_udc.c
drivers/usb/host/fhci-hcd.c
drivers/usb/host/fhci-hub.c
drivers/usb/host/fhci-sched.c
drivers/usb/host/fhci.h
include/soc/fsl/qe/immap_qe.h [moved from arch/powerpc/include/asm/immap_qe.h with 100% similarity]
include/soc/fsl/qe/qe.h [moved from arch/powerpc/include/asm/qe.h with 99% similarity]
include/soc/fsl/qe/qe_ic.h [moved from arch/powerpc/include/asm/qe_ic.h with 100% similarity]
include/soc/fsl/qe/ucc.h [moved from arch/powerpc/include/asm/ucc.h with 96% similarity]
include/soc/fsl/qe/ucc_fast.h [moved from arch/powerpc/include/asm/ucc_fast.h with 98% similarity]
include/soc/fsl/qe/ucc_slow.h [moved from arch/powerpc/include/asm/ucc_slow.h with 99% similarity]

index 050d0e77a2cf00f7d6a33e6d11bccf88c22ad761..8099527abccf679ea4e8d56e4c714f7e54bd032c 100644 (file)
@@ -4489,8 +4489,9 @@ F:        include/linux/fs_enet_pd.h
 FREESCALE QUICC ENGINE LIBRARY
 L:     linuxppc-dev@lists.ozlabs.org
 S:     Orphan
-F:     arch/powerpc/sysdev/qe_lib/
-F:     arch/powerpc/include/asm/*qe.h
+F:     drivers/soc/fsl/qe/
+F:     include/soc/fsl/*qe*.h
+F:     include/soc/fsl/*ucc*.h
 
 FREESCALE USB PERIPHERAL DRIVERS
 M:     Li Yang <leoli@freescale.com>
index 6e03f85b11cd53cf62aa41815c68a7a58221b3ea..405ce42c8ff79c9622fc81a8ada961f4682270e2 100644 (file)
@@ -1076,8 +1076,6 @@ source "drivers/Kconfig"
 
 source "fs/Kconfig"
 
-source "arch/powerpc/sysdev/qe_lib/Kconfig"
-
 source "lib/Kconfig"
 
 source "arch/powerpc/Kconfig.debug"
index 0958028cf31a06dad44e40c423a55441a89d23fc..2c5c5b47680402389629e97b1f56b5a205f68f6a 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/of.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 
 /*
  * SPI Parameter RAM common to QE and CPM.
index ae1115813844437a49fa30e30b77bc2e8bf689d5..4bc6bbbe9ada59658c4d39e38697538f895274c5 100644 (file)
@@ -37,8 +37,8 @@
 #include <asm/udbg.h>
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #include "mpc83xx.h"
 
index ef9d01a049c16755ddf2616f4a9babfec0867de5..7e923cad56cf62ce577d43aeb31d88cc6958ef05 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/io.h>
 #include <asm/hw_irq.h>
 #include <asm/ipic.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe_ic.h>
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
 
index aacc43f64246238e3ac6c219a5c35c4d1834dab1..a973b2ae5df6c9320e3914ea10239c4ed59259e4 100644 (file)
@@ -36,8 +36,8 @@
 #include <asm/udbg.h>
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #include "mpc83xx.h"
 
index 0c7a43e1c3902782407bd37dffa2e5868a36c96e..ea2b87d202cadf88aa453784d38e236dc91c783f 100644 (file)
@@ -25,8 +25,8 @@
 #include <asm/time.h>
 #include <asm/ipic.h>
 #include <asm/udbg.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
 
index eb24abdf1ae7556364097c1e02dcf404d060790d..dd70b85f56d41d3d8ad1f49ab266ab4c4de40d6b 100644 (file)
@@ -44,8 +44,8 @@
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
 #include <sysdev/simple_gpio.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #include "mpc83xx.h"
 
index 823e370ed212aeed5ee5a396eef2aefc7ebf647c..4cd7153a6c889068b2afe99123f53b85d3016d82 100644 (file)
@@ -20,8 +20,8 @@
 #include <asm/time.h>
 #include <asm/ipic.h>
 #include <asm/udbg.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
 
index 18bca203e01af993d111095637be37e64809257f..949f22c86e61c97bce0e9dd0eaab64c4be24d8da 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
 
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 #include <sysdev/cpm2_pic.h>
 
 #include "mpc85xx.h"
index 46d05c94add60217761e326b8695da303e63e690..a2b0bc859de0c230ddc6bfb352d5cf6f730c6b18 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/udbg.h>
 #include <asm/mpic.h>
 #include <asm/ehv_pic.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #include <linux/of_platform.h>
 #include <sysdev/fsl_soc.h>
index f0be439ceaaada4e583c4959dcbf0f4cf744b6da..f61cbe235581ad92951188fc470f14058b47f224 100644 (file)
@@ -48,8 +48,8 @@
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
 #include <sysdev/simple_gpio.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 #include <asm/mpic.h>
 #include <asm/swiotlb.h>
 #include "smp.h"
index 50dcc00a0f5a0dd2cab3d2a5835b0270d92dc7f7..3f4dad133338801c96f262e017d9392128ec3ebb 100644 (file)
@@ -26,8 +26,8 @@
 #include <asm/prom.h>
 #include <asm/udbg.h>
 #include <asm/mpic.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
index 892e613519cc12939d5626049d4cdea941deac8c..71bc255b432420e22407adcf1af445b0424760e0 100644 (file)
@@ -22,8 +22,8 @@
 #include <asm/pci-bridge.h>
 #include <asm/udbg.h>
 #include <asm/mpic.h>
-#include <asm/qe.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_pci.h>
index 57069eb8f093db8a27f313c08f0511c5dedd8c10..46a3533d3acb251a853d831b746ead4c2cf5dbe8 100644 (file)
@@ -272,17 +272,6 @@ config TAU_AVERAGE
 
          If in doubt, say N here.
 
-config QUICC_ENGINE
-       bool "Freescale QUICC Engine (QE) Support"
-       depends on FSL_SOC && PPC32
-       select GENERIC_ALLOCATOR
-       select CRC32
-       help
-         The QUICC Engine (QE) is a new generation of communications
-         coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
-         Selecting this option means that you wish to build a kernel
-         for a machine with a QE coprocessor.
-
 config QE_GPIO
        bool "QE GPIO support"
        depends on QUICC_ENGINE
index f1d47498ddf24db8be814a71c9f17a63f0c25a6f..bd6bd729969c87b8faa213857c743217a1f4c2ad 100644 (file)
@@ -26,8 +26,6 @@ obj-$(CONFIG_FSL_85XX_CACHE_SRAM)     += fsl_85xx_l2ctlr.o fsl_85xx_cache_sram.o
 obj-$(CONFIG_SIMPLE_GPIO)      += simple_gpio.o
 obj-$(CONFIG_FSL_RIO)          += fsl_rio.o fsl_rmu.o
 obj-$(CONFIG_TSI108_BRIDGE)    += tsi108_pci.o tsi108_dev.o
-obj-$(CONFIG_QUICC_ENGINE)     += qe_lib/
-obj-$(CONFIG_CPM)              += qe_lib/
 mv64x60-$(CONFIG_PCI)          += mv64x60_pci.o
 obj-$(CONFIG_MV64X60)          += $(mv64x60-y) mv64x60_pic.o mv64x60_dev.o \
                                   mv64x60_udbg.o
index 6993aa8e72427799b5eac6f1b0e5016b45573111..9d32465eddb13a172fdeb977c44e154658d86ef5 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/udbg.h>
 #include <asm/io.h>
 #include <asm/cpm.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 
 #include <mm/mmu_decl.h>
 
index 55c36230e17634c3e063bdb20f4bb6a896bce4a6..d0a6fa6d4f3ed1dbfe248123a8b52ebe1f7e611b 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <asm/io.h>
 #if IS_ENABLED(CONFIG_UCC_GETH)
-#include <asm/ucc.h>   /* for ucc_set_qe_mux_mii_mng() */
+#include <soc/fsl/qe/ucc.h>
 #endif
 
 #include "gianfar.h"
index 650f7888e32be90f805d10b44e9f8c913c357376..c30b72e02a1a032361c632a3296d3aea4389c640 100644 (file)
 #include <asm/uaccess.h>
 #include <asm/irq.h>
 #include <asm/io.h>
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
-#include <asm/ucc.h>
-#include <asm/ucc_fast.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/ucc.h>
+#include <soc/fsl/qe/ucc_fast.h>
 #include <asm/machdep.h>
 
 #include "ucc_geth.h"
index 75f337163ce3c685fab0909516d5cb44055fcfa1..5da19b440a6a80b52ef5366d65b1bba679ecfc83 100644 (file)
 #include <linux/list.h>
 #include <linux/if_ether.h>
 
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 
-#include <asm/ucc.h>
-#include <asm/ucc_fast.h>
+#include <soc/fsl/qe/ucc.h>
+#include <soc/fsl/qe/ucc_fast.h>
 
 #define DRV_DESC "QE UCC Gigabit Ethernet Controller"
 #define DRV_NAME "ucc_geth"
index 4e853ed2c82b937ebd8fb6cf4c22288a122fca3a..ad0df75fab6ed0aa5da02c5685ee925b4ad1807f 100644 (file)
@@ -1,6 +1,7 @@
 menu "SOC (System On Chip) specific Drivers"
 
 source "drivers/soc/brcmstb/Kconfig"
+source "drivers/soc/fsl/qe/Kconfig"
 source "drivers/soc/mediatek/Kconfig"
 source "drivers/soc/qcom/Kconfig"
 source "drivers/soc/rockchip/Kconfig"
index f2ba2e932ae10c5d2cda1de269b826b9875a4a5c..9536b804424a88dcc3b1d3585081c83d4bdf1ce6 100644 (file)
@@ -4,6 +4,7 @@
 
 obj-$(CONFIG_SOC_BRCMSTB)      += brcmstb/
 obj-$(CONFIG_MACH_DOVE)                += dove/
+obj-y                          += fsl/
 obj-$(CONFIG_ARCH_MEDIATEK)    += mediatek/
 obj-$(CONFIG_ARCH_QCOM)                += qcom/
 obj-$(CONFIG_ARCH_ROCKCHIP)            += rockchip/
diff --git a/drivers/soc/fsl/Makefile b/drivers/soc/fsl/Makefile
new file mode 100644 (file)
index 0000000..203307f
--- /dev/null
@@ -0,0 +1,6 @@
+#
+# Makefile for the Linux Kernel SOC fsl specific device drivers
+#
+
+obj-$(CONFIG_QUICC_ENGINE)             += qe/
+obj-$(CONFIG_CPM)                      += qe/
similarity index 54%
rename from arch/powerpc/sysdev/qe_lib/Kconfig
rename to drivers/soc/fsl/qe/Kconfig
index 3c251993bacd502992ca2b9188993b5e69802eaf..20978f2058a67c9241bbacbef965a5f27aa60a44 100644 (file)
@@ -2,6 +2,17 @@
 # QE Communication options
 #
 
+config QUICC_ENGINE
+       bool "Freescale QUICC Engine (QE) Support"
+       depends on FSL_SOC && PPC32
+       select GENERIC_ALLOCATOR
+       select CRC32
+       help
+         The QUICC Engine (QE) is a new generation of communications
+         coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
+         Selecting this option means that you wish to build a kernel
+         for a machine with a QE coprocessor.
+
 config UCC_SLOW
        bool
        default y if SERIAL_QE
similarity index 99%
rename from arch/powerpc/sysdev/qe_lib/gpio.c
rename to drivers/soc/fsl/qe/gpio.c
index 521e67a49dc4075355c4f78811c0b877ab48b8d2..aa5c11acf212d708130771bf5545c0c81452360f 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/gpio.h>
 #include <linux/slab.h>
 #include <linux/export.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 
 struct qe_gpio_chip {
        struct of_mm_gpio_chip mm_gc;
similarity index 99%
rename from arch/powerpc/sysdev/qe_lib/qe.c
rename to drivers/soc/fsl/qe/qe.c
index 88ae5c7ff4bb9cc8aad8f75ce931a74ceaa85920..709fc63809e5ca2fa28aeb0ad8be171cba783b4e 100644 (file)
@@ -31,8 +31,8 @@
 #include <asm/irq.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 #include <asm/prom.h>
 #include <asm/rheap.h>
 
similarity index 99%
rename from arch/powerpc/sysdev/qe_lib/qe_common.c
rename to drivers/soc/fsl/qe/qe_common.c
index b90043f1503b6ea1593f6c8e358a4008d581d8f8..419fa5b7be4d6c399a5429d5f8cf47362134d7f5 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/of_address.h>
 #include <linux/slab.h>
 #include <linux/io.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 
 static struct gen_pool *muram_pool;
 static spinlock_t cpm_muram_lock;
similarity index 99%
rename from arch/powerpc/sysdev/qe_lib/qe_ic.c
rename to drivers/soc/fsl/qe/qe_ic.c
index ef36f16f9f6fbc9bdfd0c02e6df29e77fc83817c..b77d01ff8330dea346f50e8bc758f3a971d2cbb0 100644 (file)
@@ -14,6 +14,8 @@
  * option) any later version.
  */
 
+#include <linux/of_irq.h>
+#include <linux/of_address.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/errno.h>
@@ -26,8 +28,7 @@
 #include <linux/spinlock.h>
 #include <asm/irq.h>
 #include <asm/io.h>
-#include <asm/prom.h>
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #include "qe_ic.h"
 
similarity index 97%
rename from arch/powerpc/sysdev/qe_lib/qe_ic.h
rename to drivers/soc/fsl/qe/qe_ic.h
index efef7ab9b753eba14ba858c50583c6e3a844415b..926a2ed423193a65e9af404dac7f81a7f7755172 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/powerpc/sysdev/qe_lib/qe_ic.h
+ * drivers/soc/fsl/qe/qe_ic.h
  *
  * QUICC ENGINE Interrupt Controller Header
  *
@@ -16,7 +16,7 @@
 #ifndef _POWERPC_SYSDEV_QE_IC_H
 #define _POWERPC_SYSDEV_QE_IC_H
 
-#include <asm/qe_ic.h>
+#include <soc/fsl/qe/qe_ic.h>
 
 #define NR_QE_IC_INTS          64
 
similarity index 99%
rename from arch/powerpc/sysdev/qe_lib/qe_io.c
rename to drivers/soc/fsl/qe/qe_io.c
index 7ea0174f6d3d7e9f805d7c2c092838032ab78e4d..7ae59abc78637edc0da2018c3f22241bbbf2db75 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/ioport.h>
 
 #include <asm/io.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 #include <asm/prom.h>
 #include <sysdev/fsl_soc.h>
 
similarity index 98%
rename from arch/powerpc/sysdev/qe_lib/ucc.c
rename to drivers/soc/fsl/qe/ucc.c
index 621575b7e84aa3b2c5932b1768f909b56d593587..b59d3358f9bd3f4337ea3230ea43f9225f757820 100644 (file)
@@ -21,9 +21,9 @@
 
 #include <asm/irq.h>
 #include <asm/io.h>
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
-#include <asm/ucc.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/ucc.h>
 
 int ucc_set_qe_mux_mii_mng(unsigned int ucc_num)
 {
similarity index 98%
rename from arch/powerpc/sysdev/qe_lib/ucc_fast.c
rename to drivers/soc/fsl/qe/ucc_fast.c
index 65aaf15032aee221f313e844248749cb8029baee..a7689310fe409d9db764b6d7a60d601e3aeb6246 100644 (file)
 #include <linux/export.h>
 
 #include <asm/io.h>
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 
-#include <asm/ucc.h>
-#include <asm/ucc_fast.h>
+#include <soc/fsl/qe/ucc.h>
+#include <soc/fsl/qe/ucc_fast.h>
 
 void ucc_fast_dump_regs(struct ucc_fast_private * uccf)
 {
similarity index 98%
rename from arch/powerpc/sysdev/qe_lib/ucc_slow.c
rename to drivers/soc/fsl/qe/ucc_slow.c
index 5f91628209eb5cc72563382fd699e46bf49a0845..9334bdbd9b309a014133c7ff14f7194d3a51d4f4 100644 (file)
 #include <linux/export.h>
 
 #include <asm/io.h>
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 
-#include <asm/ucc.h>
-#include <asm/ucc_slow.h>
+#include <soc/fsl/qe/ucc.h>
+#include <soc/fsl/qe/ucc_slow.h>
 
 u32 ucc_slow_get_qe_cr_subblock(int uccs_num)
 {
similarity index 96%
rename from arch/powerpc/sysdev/qe_lib/usb.c
rename to drivers/soc/fsl/qe/usb.c
index 27f23bd15eb65b75729cc7443a683219df74609e..111f7ab80f04802b603beffb3918df680e1d6957 100644 (file)
@@ -17,8 +17,8 @@
 #include <linux/errno.h>
 #include <linux/export.h>
 #include <linux/io.h>
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 
 int qe_usb_clock_set(enum qe_clock clk, int rate)
 {
index 896add8cfd3b6c6bba311a335072e63a4060a3a4..8f7b26ec181e2782c2e8fd0cbb4de7e4b3c89f89 100644 (file)
@@ -16,7 +16,7 @@
  * option) any later version.
  */
 #include <asm/cpm.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 #include <linux/dma-mapping.h>
 #include <linux/fsl_devices.h>
 #include <linux/kernel.h>
index 73190f5d28327ad5a039132726f656258603cd26..1a7dc3c590b1991deef64c330cf7cdf662ced894 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/dma-mapping.h>
 
 #include <linux/fs_uart_pd.h>
-#include <asm/ucc_slow.h>
+#include <soc/fsl/qe/ucc_slow.h>
 
 #include <linux/firmware.h>
 #include <asm/reg.h>
index 5fb6f8b4f0b4889f51d1686610ab07b40cc9bdc0..53c0692f1b096eef837624bda521a11ad3181fc4 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <linux/usb/otg.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 #include <asm/cpm.h>
 #include <asm/dma.h>
 #include <asm/reg.h>
index c6cebb96fd2157aea6c13318330c8162db4d9f8e..0960f41f945aba959da6efd566754b3b6553b124 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/of_platform.h>
 #include <linux/of_gpio.h>
 #include <linux/slab.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 #include <asm/fsl_gtm.h>
 #include "fhci.h"
 
index 3bacdd7befe9b0c55dafa1e1d799ecb1f8df6535..60d55eb3de0dcd479b376de99727bd2ca2f27c13 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/usb.h>
 #include <linux/usb/hcd.h>
 #include <linux/gpio.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 #include "fhci.h"
 
 /* virtual root hub specific descriptor */
index 95ca5986e672dc90cfa97e685e2bdb6fce04a3a6..a9609a336efef1f3b8c0d108121bc793a5717fee 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/io.h>
 #include <linux/usb.h>
 #include <linux/usb/hcd.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/qe.h>
 #include <asm/fsl_gtm.h>
 #include "fhci.h"
 
index 154e6a007727159498a3a5278aa51de69d9e34f0..3fc82c1c3c73e46403aa827b22630f1534837bcd 100644 (file)
@@ -27,8 +27,8 @@
 #include <linux/io.h>
 #include <linux/usb.h>
 #include <linux/usb/hcd.h>
-#include <asm/qe.h>
-#include <asm/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
 
 #define USB_CLOCK      48000000
 
similarity index 99%
rename from arch/powerpc/include/asm/qe.h
rename to include/soc/fsl/qe/qe.h
index ceeaf91854b5608bbc62c2b8015d9ca351f19939..c7fa36c335c9746446593f35f5051a974703ee35 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/errno.h>
 #include <linux/err.h>
 #include <asm/cpm.h>
-#include <asm/immap_qe.h>
+#include <soc/fsl/qe/immap_qe.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/types.h>
similarity index 96%
rename from arch/powerpc/include/asm/ucc.h
rename to include/soc/fsl/qe/ucc.h
index 6927ac26516ea7ef698c0552ef0f67cec27e6a65..894f14cbb044506150acc7a5b63fa39ab46a3fc1 100644 (file)
@@ -15,8 +15,8 @@
 #ifndef __UCC_H__
 #define __UCC_H__
 
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 
 #define STATISTICS
 
similarity index 98%
rename from arch/powerpc/include/asm/ucc_fast.h
rename to include/soc/fsl/qe/ucc_fast.h
index 72ea9bab07df4c1e63bd7022fe340cc7c16c0846..df8ea7958c6375c3f50b2c2694732cc18d35f148 100644 (file)
 
 #include <linux/kernel.h>
 
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 
-#include <asm/ucc.h>
+#include <soc/fsl/qe/ucc.h>
 
 /* Receive BD's status */
 #define R_E    0x80000000      /* buffer empty */
similarity index 99%
rename from arch/powerpc/include/asm/ucc_slow.h
rename to include/soc/fsl/qe/ucc_slow.h
index 233ef5fe5fde8326c5815b21fbe03b2272e32449..6c0573a0825c9cb5410491cd0448a2f4150a5057 100644 (file)
 
 #include <linux/kernel.h>
 
-#include <asm/immap_qe.h>
-#include <asm/qe.h>
+#include <soc/fsl/qe/immap_qe.h>
+#include <soc/fsl/qe/qe.h>
 
-#include <asm/ucc.h>
+#include <soc/fsl/qe/ucc.h>
 
 /* transmit BD's status */
 #define T_R    0x80000000      /* ready bit */