summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorCharulatha V <charu@ti.com>2011-02-17 09:53:09 -0800
committerTony Lindgren <tony@atomide.com>2011-02-17 09:53:09 -0800
commit617871deacea4e1a5713dd37564dc94a392d80c3 (patch)
tree396c807d3f9c4fbeb3a3906b7299e23e53658d97 /arch/arm/plat-omap
parentd9e45731debd83e2b249be349993595907dddeae (diff)
OMAP2420: hwmod data: Add McSPI
Update the omap2420 hwmod data with the McSPI info. Add a device attribute structure which will be used for passing number of chipselects from hwmod data. Add revision macros to be passed from rev field from hwmod. Signed-off-by: Charulatha V <charu@ti.com> Signed-off-by: Govindraj.R <govindraj.raja@ti.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/plat/mcspi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/mcspi.h b/arch/arm/plat-omap/include/plat/mcspi.h
index 1254e4945b6..560e266da8a 100644
--- a/arch/arm/plat-omap/include/plat/mcspi.h
+++ b/arch/arm/plat-omap/include/plat/mcspi.h
@@ -1,10 +1,18 @@
#ifndef _OMAP2_MCSPI_H
#define _OMAP2_MCSPI_H
+#define OMAP2_MCSPI_REV 0
+#define OMAP3_MCSPI_REV 1
+#define OMAP4_MCSPI_REV 2
+
struct omap2_mcspi_platform_config {
unsigned short num_cs;
};
+struct omap2_mcspi_dev_attr {
+ unsigned short num_chipselect;
+};
+
struct omap2_mcspi_device_config {
unsigned turbo_mode:1;