Skip to content

Commit 8ea126b

Browse files
raghavdogracomputersforpeace
authored andcommitted
memory: Update dependency of IFC for Layerscape
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>
1 parent 0658620 commit 8ea126b

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/memory/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ config FSL_CORENET_CF
104104

105105
config FSL_IFC
106106
bool
107-
depends on FSL_SOC
107+
depends on FSL_SOC || ARCH_LAYERSCAPE
108108

109109
config JZ4780_NEMC
110110
bool "Ingenic JZ4780 SoC NEMC driver"

‎drivers/memory/fsl_ifc.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
#include <linux/of_device.h>
3232
#include <linux/platform_device.h>
3333
#include <linux/fsl_ifc.h>
34-
#include <asm/prom.h>
34+
#include <linux/irqdomain.h>
35+
#include <linux/of_address.h>
36+
#include <linux/of_irq.h>
3537

3638
struct fsl_ifc_ctrl *fsl_ifc_ctrl_dev;
3739
EXPORT_SYMBOL(fsl_ifc_ctrl_dev);

‎drivers/mtd/nand/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ config MTD_NAND_FSL_ELBC
438438

439439
config MTD_NAND_FSL_IFC
440440
tristate "NAND support for Freescale IFC controller"
441-
depends on MTD_NAND && FSL_SOC
441+
depends on MTD_NAND && (FSL_SOC || ARCH_LAYERSCAPE)
442442
select FSL_IFC
443443
select MEMORY
444444
help

0 commit comments

Comments
 (0)