Skip to content

Commit

Permalink
memory: Update dependency of IFC for Layerscape
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Scott Wood <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
  • Loading branch information
raghavdogra authored and computersforpeace committed Jul 14, 2016
1 parent 0658620 commit 8ea126b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/memory/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion drivers/memory/fsl_ifc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ea126b

Please sign in to comment.