summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2012-03-16 11:42:11 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-27 01:01:21 +0100
commit6551ab5d30d6bf0cea0c6cb294686ce3c7fc6042 (patch)
treeba88add42bc6bf9d72feeb142afd601782051cdc /include/linux/mtd
parentf7e3dd8f48faad24334f7bea048ea59a2c766587 (diff)
downloadop-kernel-dev-6551ab5d30d6bf0cea0c6cb294686ce3c7fc6042.zip
op-kernel-dev-6551ab5d30d6bf0cea0c6cb294686ce3c7fc6042.tar.gz
mtd: add device-tree support to spear_smi
This patch adds support to configure the SPEAr SMI driver via device-tree instead of platform_data. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-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 4e26b4e..8ae1726 100644
--- a/include/linux/mtd/spear_smi.h
+++ b/include/linux/mtd/spear_smi.h
@@ -14,6 +14,10 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/platform_device.h>
+#include <linux/of.h>
+
+/* max possible slots for serial-nor flash chip in the SMI controller */
+#define MAX_NUM_FLASH_CHIP 4
/* macro to define partitions for flash devices */
#define DEFINE_PARTS(n, of, s) \
@@ -55,6 +59,7 @@ struct spear_smi_plat_data {
unsigned long clk_rate;
int num_flashes;
struct spear_smi_flash_info *board_flash_info;
+ struct device_node *np[MAX_NUM_FLASH_CHIP];
};
#endif /* __MTD_SPEAR_SMI_H */
OpenPOWER on IntegriCloud