aboutsummaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-09-22 14:50:35 -0400
committerTom Rini <trini@konsulko.com>2021-10-06 09:16:23 -0400
commit1cefed1e39f0038ac6afd9e0c48b8b85fb458fbc (patch)
tree373fc4f509981fb035efc0c9d62664b681bdf83b /board
parentc0ad62c5f7535bf13b24aab103356f827f40d0cd (diff)
downloadu-boot-1cefed1e39f0038ac6afd9e0c48b8b85fb458fbc.tar.gz
nand.h: Cleanup linux/mtd/rawnand.h usage
We only include <linux/mtd/rawnand.h> in <nand.h> for the forward declaration of struct nand_chip, so do that directly. Then, include <linux/mtd/rawnand.h> where required directly. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r--board/cssi/MCR3000/nand.c1
-rw-r--r--board/freescale/m5329evb/nand.c1
-rw-r--r--board/freescale/m5373evb/nand.c1
-rw-r--r--board/socrates/nand.c1
-rw-r--r--board/xes/common/actl_nand.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/board/cssi/MCR3000/nand.c b/board/cssi/MCR3000/nand.c
index 15a10bffadc..11aca4ff736 100644
--- a/board/cssi/MCR3000/nand.c
+++ b/board/cssi/MCR3000/nand.c
@@ -8,6 +8,7 @@
#include <config.h>
#include <common.h>
#include <nand.h>
+#include <linux/mtd/rawnand.h>
#include <asm/io.h>
#define BIT_CLE ((unsigned short)0x0800)
diff --git a/board/freescale/m5329evb/nand.c b/board/freescale/m5329evb/nand.c
index 58b8ee51d37..a10c365ec37 100644
--- a/board/freescale/m5329evb/nand.c
+++ b/board/freescale/m5329evb/nand.c
@@ -15,6 +15,7 @@
#if defined(CONFIG_CMD_NAND)
#include <nand.h>
#include <linux/mtd/mtd.h>
+#include <linux/mtd/rawnand.h>
#define SET_CLE 0x10
#define SET_ALE 0x08
diff --git a/board/freescale/m5373evb/nand.c b/board/freescale/m5373evb/nand.c
index 4c30d510018..fdf3e0ac1b1 100644
--- a/board/freescale/m5373evb/nand.c
+++ b/board/freescale/m5373evb/nand.c
@@ -15,6 +15,7 @@
#if defined(CONFIG_CMD_NAND)
#include <nand.h>
#include <linux/mtd/mtd.h>
+#include <linux/mtd/rawnand.h>
#define SET_CLE 0x10
#define SET_ALE 0x08
diff --git a/board/socrates/nand.c b/board/socrates/nand.c
index 07c493679bf..9b7ffee83a4 100644
--- a/board/socrates/nand.c
+++ b/board/socrates/nand.c
@@ -9,6 +9,7 @@
#if defined(CONFIG_SYS_NAND_BASE)
#include <nand.h>
#include <linux/errno.h>
+#include <linux/mtd/rawnand.h>
#include <asm/io.h>
static int state;
diff --git a/board/xes/common/actl_nand.c b/board/xes/common/actl_nand.c
index 4e52838c909..2d8a57576a6 100644
--- a/board/xes/common/actl_nand.c
+++ b/board/xes/common/actl_nand.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <nand.h>
+#include <linux/mtd/rawnand.h>
#include <asm/io.h>
/*