diff options
author | Charulatha V <charu@ti.com> | 2011-02-17 17:53:09 (GMT) |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-17 17:53:09 (GMT) |
commit | 617871deacea4e1a5713dd37564dc94a392d80c3 (patch) | |
tree | 396c807d3f9c4fbeb3a3906b7299e23e53658d97 /arch/arm/plat-omap/include/plat/mcspi.h | |
parent | d9e45731debd83e2b249be349993595907dddeae (diff) | |
download | linux-fsl-qoriq-617871deacea4e1a5713dd37564dc94a392d80c3.tar.xz |
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/include/plat/mcspi.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/mcspi.h | 8 |
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 1254e49..560e266 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; |