diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2010-11-22 20:12:17 -0500 |
---|---|---|
committer | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2010-12-02 11:55:12 -0500 |
commit | 2a8626a9e2d86d114a2d9f813a1acebf9d53dd10 (patch) | |
tree | fa8764bdc568371a6e3038a402cc101eda07bb19 /include/linux | |
parent | d0777f2c3eda180e3fc549e0efbe741014f17689 (diff) |
spi/pxa2xx: Add chipselect support for Sodaville
The SPI core on Sodaville supports chip selects. Its configuration
moved into the SSSR register at bit 0 and 1. Thus Sodaville can be hooked
up with up to 4 devices.
This patch ensures that the bits which are otherwiese reserved are only
touched on Sodaville and not on any other PXAs. Also it makes sure that
the status register does not lose the CS information while clearing the
ROR bit.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pxa2xx_ssp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pxa2xx_ssp.h b/include/linux/pxa2xx_ssp.h index c3aa334cbb9b..2f691e4e6222 100644 --- a/include/linux/pxa2xx_ssp.h +++ b/include/linux/pxa2xx_ssp.h | |||
@@ -72,6 +72,7 @@ | |||
72 | #define SSCR1_SPH (1 << 4) /* Motorola SPI SSPSCLK phase setting */ | 72 | #define SSCR1_SPH (1 << 4) /* Motorola SPI SSPSCLK phase setting */ |
73 | #define SSCR1_MWDS (1 << 5) /* Microwire Transmit Data Size */ | 73 | #define SSCR1_MWDS (1 << 5) /* Microwire Transmit Data Size */ |
74 | 74 | ||
75 | #define SSSR_ALT_FRM_MASK 3 /* Masks the SFRM signal number */ | ||
75 | #define SSSR_TNF (1 << 2) /* Transmit FIFO Not Full */ | 76 | #define SSSR_TNF (1 << 2) /* Transmit FIFO Not Full */ |
76 | #define SSSR_RNE (1 << 3) /* Receive FIFO Not Empty */ | 77 | #define SSSR_RNE (1 << 3) /* Receive FIFO Not Empty */ |
77 | #define SSSR_BSY (1 << 4) /* SSP Busy */ | 78 | #define SSSR_BSY (1 << 4) /* SSP Busy */ |
@@ -160,6 +161,7 @@ enum pxa_ssp_type { | |||
160 | PXA25x_NSSP, /* pxa 255, 26x (including ASSP) */ | 161 | PXA25x_NSSP, /* pxa 255, 26x (including ASSP) */ |
161 | PXA27x_SSP, | 162 | PXA27x_SSP, |
162 | PXA168_SSP, | 163 | PXA168_SSP, |
164 | CE4100_SSP, | ||
163 | }; | 165 | }; |
164 | 166 | ||
165 | struct ssp_device { | 167 | struct ssp_device { |