memory: Update dependency of IFC for Layerscape
authorRaghav Dogra <raghav.dogra@nxp.com>
Fri, 1 Jul 2016 16:02:30 +0000 (21:32 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 14 Jul 2016 00:31:10 +0000 (17:31 -0700)
This patch enables IFC NAND support on ARM layerscape platform.
It fixes the dependency to enable NAND. The include files are being modified
to ensure complilation for both PowerPC and ARM architectures.

Signed-off-by: Raghav Dogra <raghav.dogra@nxp.com>
Acked-by: Scott Wood <oss@buserror.net>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/memory/Kconfig
drivers/memory/fsl_ifc.c
drivers/mtd/nand/Kconfig

index 81ddb17575a99dc9c77fbfecb595d77be054befa..5645705c7110c27426c5a2b165005a66ad94376f 100644 (file)
@@ -104,7 +104,7 @@ config FSL_CORENET_CF
 
 config FSL_IFC
        bool
-       depends on FSL_SOC
+       depends on FSL_SOC || ARCH_LAYERSCAPE
 
 config JZ4780_NEMC
        bool "Ingenic JZ4780 SoC NEMC driver"
index 904b4af5f1424ef978d317ba052f3a268d111818..1b182b117f9cf3fbcacfcd9a3e343a3d66e47ab2 100644 (file)
@@ -31,7 +31,9 @@
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/fsl_ifc.h>
-#include <asm/prom.h>
+#include <linux/irqdomain.h>
+#include <linux/of_address.h>
+#include <linux/of_irq.h>
 
 struct fsl_ifc_ctrl *fsl_ifc_ctrl_dev;
 EXPORT_SYMBOL(fsl_ifc_ctrl_dev);
index f05e0e9eb2f73e8b807d97fb30cf4638d07286d9..eace3ef10d9dcb9176dda3bab81962c0b9974898 100644 (file)
@@ -438,7 +438,7 @@ config MTD_NAND_FSL_ELBC
 
 config MTD_NAND_FSL_IFC
        tristate "NAND support for Freescale IFC controller"
-       depends on MTD_NAND && FSL_SOC
+       depends on MTD_NAND && (FSL_SOC || ARCH_LAYERSCAPE)
        select FSL_IFC
        select MEMORY
        help