aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/spear_smi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/spear_smi.h b/include/linux/mtd/spear_smi.h
index 4e26b4e38da3..8ae1726044c3 100644
--- a/include/linux/mtd/spear_smi.h
+++ b/include/linux/mtd/spear_smi.h
@@ -14,6 +14,10 @@
14#include <linux/mtd/mtd.h> 14#include <linux/mtd/mtd.h>
15#include <linux/mtd/partitions.h> 15#include <linux/mtd/partitions.h>
16#include <linux/platform_device.h> 16#include <linux/platform_device.h>
17#include <linux/of.h>
18
19/* max possible slots for serial-nor flash chip in the SMI controller */
20#define MAX_NUM_FLASH_CHIP 4
17 21
18/* macro to define partitions for flash devices */ 22/* macro to define partitions for flash devices */
19#define DEFINE_PARTS(n, of, s) \ 23#define DEFINE_PARTS(n, of, s) \
@@ -55,6 +59,7 @@ struct spear_smi_plat_data {
55 unsigned long clk_rate; 59 unsigned long clk_rate;
56 int num_flashes; 60 int num_flashes;
57 struct spear_smi_flash_info *board_flash_info; 61 struct spear_smi_flash_info *board_flash_info;
62 struct device_node *np[MAX_NUM_FLASH_CHIP];
58}; 63};
59 64
60#endif /* __MTD_SPEAR_SMI_H */ 65#endif /* __MTD_SPEAR_SMI_H */