]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Driver/IFC: Move Freescale IFC driver to a common driver
authorYork Sun <yorksun@freescale.com>
Tue, 22 Oct 2013 19:39:02 +0000 (12:39 -0700)
committerYork Sun <yorksun@freescale.com>
Mon, 25 Nov 2013 19:43:47 +0000 (11:43 -0800)
Freescale IFC controller has been used for mpc8xxx. It will be used
for ARM-based SoC as well. This patch moves the driver to driver/misc
and fix the header file includes.

Signed-off-by: York Sun <yorksun@freescale.com>
12 files changed:
arch/powerpc/cpu/mpc85xx/cpu.c
arch/powerpc/cpu/mpc85xx/spl_minimal.c
arch/powerpc/cpu/mpc8xxx/Makefile
arch/powerpc/include/asm/immap_85xx.h
board/freescale/bsc9132qds/bsc9132qds.c
board/freescale/c29xpcie/c29xpcie.c
board/freescale/p1010rdb/p1010rdb.c
drivers/misc/Makefile
drivers/misc/fsl_ifc.c [moved from arch/powerpc/cpu/mpc8xxx/fsl_ifc.c with 99% similarity]
drivers/mtd/nand/fsl_ifc_nand.c
drivers/mtd/nand/fsl_ifc_spl.c
include/fsl_ifc.h [moved from arch/powerpc/include/asm/fsl_ifc.h with 99% similarity]

index b5a0242e10cd69e2ae37f7f53bdb1f0233f5c91e..3e99b079c74a5f613409fd70491d7882ae9e17c4 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/mmu.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 #include <asm/fsl_law.h>
 #include <asm/fsl_lbc.h>
 #include <post.h>
index 199b33e3bdb521a8c26037e635219bcfe2afe677..9e4c6c9078817dca12650b1548ea3b422469bf31 100644 (file)
@@ -7,7 +7,7 @@
 #include <common.h>
 #include <asm/processor.h>
 #include <asm/global_data.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 395fed16b6f1ee080fbc0d773a817f302229f375..f66ee2e4239d553cbbfc2b73481e7dc974a7e8f7 100644 (file)
@@ -25,7 +25,6 @@ obj-y += cpu.o
 endif
 
 obj-$(CONFIG_OF_LIBFDT) += fdt.o
-obj-$(CONFIG_FSL_IFC) += fsl_ifc.o
 obj-$(CONFIG_FSL_LBC) += fsl_lbc.o
 obj-$(CONFIG_SYS_SRIO) += srio.o
 obj-$(CONFIG_FSL_LAW) += law.o
index 80817dcbc40f9a0b6618fd6b12c02d7489002529..9b386ee6b2a6cb4d9ab65ae03feaa04f94c05827 100644 (file)
@@ -15,7 +15,7 @@
 #include <asm/types.h>
 #include <asm/fsl_dma.h>
 #include <asm/fsl_i2c.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 #include <asm/fsl_lbc.h>
 #include <asm/fsl_fman.h>
 #include <fsl_immap.h>
index c1ebcf88e33346d374ebbc6ff1eaed7cbdc4efff..9377280063e07eed30769a74912b9b0a9949d266 100644 (file)
@@ -17,7 +17,7 @@
 #include <tsec.h>
 #include <mmc.h>
 #include <netdev.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 #include <hwconfig.h>
 #include <i2c.h>
 #include <fsl_ddr_sdram.h>
index 48c4b308bed2b824e6bef4ed59e0cd0060e52902..f964d6185aa0f35c0047d7c397acc7734638d894 100644 (file)
@@ -18,7 +18,7 @@
 #include <mmc.h>
 #include <netdev.h>
 #include <pci.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 #include <asm/fsl_pci.h>
 
 #include "cpld.h"
index e940d2275e972a15f982423c358fd76d2bcca529..62caf676c6458b41a23aac3c429f5e20709a6545 100644 (file)
@@ -19,7 +19,7 @@
 #include <netdev.h>
 #include <pci.h>
 #include <asm/fsl_serdes.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 #include <asm/fsl_pci.h>
 #include <hwconfig.h>
 #include <i2c.h>
index d8ff9c64136577f97ef55bafab1488327a7a251e..c77e40a2d444a8b8f92ac6cfaa374ee25342fa0b 100644 (file)
@@ -20,3 +20,4 @@ obj-$(CONFIG_NS87308) += ns87308.o
 obj-$(CONFIG_PDSP188x) += pdsp188x.o
 obj-$(CONFIG_STATUS_LED) += status_led.o
 obj-$(CONFIG_TWL4030_LED) += twl4030_led.o
+obj-$(CONFIG_FSL_IFC) += fsl_ifc.o
similarity index 99%
rename from arch/powerpc/cpu/mpc8xxx/fsl_ifc.c
rename to drivers/misc/fsl_ifc.c
index 2d0fb433bcf9f910a33164d71e6f693118b160bf..507c4de526d3fe23c77fe625ced593f433b5c0a9 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <common.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 
 void print_ifc_regs(void)
 {
index 98a09c0641c5ffc59fbf27bb08dafcb210c089c1..3b845b9d67ca952051add619ef7c902e67e6e530 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <asm/io.h>
 #include <asm/errno.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 
 #define FSL_IFC_V1_1_0 0x01010000
 #define MAX_BANKS      4
index d4622653fa0f28c939c44d894e8fd5b4829e54c0..3c8278dafcb16d5a96e429fd3fd7c01d08c074d3 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <common.h>
 #include <asm/io.h>
-#include <asm/fsl_ifc.h>
+#include <fsl_ifc.h>
 #include <linux/mtd/nand.h>
 
 static inline int is_blank(uchar *addr, int page_size)
similarity index 99%
rename from arch/powerpc/include/asm/fsl_ifc.h
rename to include/fsl_ifc.h
index a945e4b2d418819b8b767fb20916c7987a226033..3e9b01b3b5f1e256328177eb86527d0f3e7b1677 100644 (file)
@@ -5,8 +5,8 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#ifndef __ASM_PPC_FSL_IFC_H
-#define __ASM_PPC_FSL_IFC_H
+#ifndef __FSL_IFC_H
+#define __FSL_IFC_H
 
 #ifdef CONFIG_FSL_IFC
 #include <config.h>
@@ -983,4 +983,4 @@ struct fsl_ifc {
 #endif /* CONFIG_FSL_IFC */
 
 #endif /* __ASSEMBLY__ */
-#endif /* __ASM_PPC_FSL_IFC_H */
+#endif /* __FSL_IFC_H */