aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCyril Chemparathy <cyril@ti.com>2011-01-18 14:21:36 -0500
committerKevin Hilman <khilman@ti.com>2011-03-15 11:17:22 -0400
commita72aeefebe6545ad5c9c699e1121019c1709ca77 (patch)
treedfa765108f3582182ea25c22311e4e0dc7903130 /include
parent03df0f629483f941f83ee2fbb180a4425e99dd23 (diff)
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')
-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 {
32 struct ti_ssp_dev_data dev_data[2]; 32 struct ti_ssp_dev_data dev_data[2];
33}; 33};
34 34
35struct ti_ssp_spi_data {
36 unsigned long iosel;
37 int num_cs;
38 void (*select)(int cs);
39};
40
35/* 41/*
36 * Sequencer port IO pin configuration bits. These do not correlate 1-1 with 42 * Sequencer port IO pin configuration bits. These do not correlate 1-1 with
37 * the hardware. The iosel field in the port data combines iosel1 and iosel2, 43 * the hardware. The iosel field in the port data combines iosel1 and iosel2,