summaryrefslogtreecommitdiff
path: root/include/linux/mfd/ti_ssp.h
diff options
context:
space:
mode:
authorCyril Chemparathy <cyril@ti.com>2011-01-18 22:21:36 +0300
committerKevin Hilman <khilman@ti.com>2011-03-15 18:17:22 +0300
commita72aeefebe6545ad5c9c699e1121019c1709ca77 (patch)
treedfa765108f3582182ea25c22311e4e0dc7903130 /include/linux/mfd/ti_ssp.h
parent03df0f629483f941f83ee2fbb180a4425e99dd23 (diff)
downloadlinux-a72aeefebe6545ad5c9c699e1121019c1709ca77.tar.xz
spi: add ti-ssp spi master driver
This patch adds an SPI master implementation that operates on top of an underlying TI-SSP port. Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Cyril Chemparathy <cyril@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'include/linux/mfd/ti_ssp.h')
-rw-r--r--include/linux/mfd/ti_ssp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/ti_ssp.h b/include/linux/mfd/ti_ssp.h
index 021fe0912435..dbb4b43bd20e 100644
--- a/include/linux/mfd/ti_ssp.h
+++ b/include/linux/mfd/ti_ssp.h
@@ -32,6 +32,12 @@ struct ti_ssp_data {
struct ti_ssp_dev_data dev_data[2];
};
+struct ti_ssp_spi_data {
+ unsigned long iosel;
+ int num_cs;
+ void (*select)(int cs);
+};
+
/*
* Sequencer port IO pin configuration bits. These do not correlate 1-1 with
* the hardware. The iosel field in the port data combines iosel1 and iosel2,