diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-26 04:03:10 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-07-23 01:10:41 -0400 |
commit | 2f7d63f909900c555baf36a4c6a11e9bf8e1af18 (patch) | |
tree | 1c15e1a2f04300366cdd1d6e056e1a5f18fd55fc /arch/blackfin/mach-bf533 | |
parent | 9be8631b8a7d11fa6d206fcf0a7a2005ed39f41b (diff) |
Blackfin: boards: clean up redundant/dead spi resources
The default for the Blackfin SPI driver is 8 bits and dma disabled,
so many of the bfin5xx_spi_chip resources are redundant. So punt
those parts.
Further, drivers should themselves be declaring 16 bit transfers,
so for those that do, and for the ones which no longer do 16 bit
transfers, drop the bfin5xx_spi_chip resources.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf533')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/H8606.c | 28 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/blackstamp.c | 10 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 29 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ezkit.c | 36 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ip0x.c | 1 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 37 |
6 files changed, 0 insertions, 141 deletions
diff --git a/arch/blackfin/mach-bf533/boards/H8606.c b/arch/blackfin/mach-bf533/boards/H8606.c index d4bfcea56828..eb325ed6607e 100644 --- a/arch/blackfin/mach-bf533/boards/H8606.c +++ b/arch/blackfin/mach-bf533/boards/H8606.c | |||
@@ -159,22 +159,6 @@ static struct flash_platform_data bfin_spi_flash_data = { | |||
159 | /* SPI flash chip (m25p64) */ | 159 | /* SPI flash chip (m25p64) */ |
160 | static struct bfin5xx_spi_chip spi_flash_chip_info = { | 160 | static struct bfin5xx_spi_chip spi_flash_chip_info = { |
161 | .enable_dma = 0, /* use dma transfer with this chip*/ | 161 | .enable_dma = 0, /* use dma transfer with this chip*/ |
162 | .bits_per_word = 8, | ||
163 | }; | ||
164 | #endif | ||
165 | |||
166 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
167 | /* SPI ADC chip */ | ||
168 | static struct bfin5xx_spi_chip spi_adc_chip_info = { | ||
169 | .enable_dma = 1, /* use dma transfer with this chip*/ | ||
170 | .bits_per_word = 16, | ||
171 | }; | ||
172 | #endif | ||
173 | |||
174 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | ||
175 | static struct bfin5xx_spi_chip ad1836_spi_chip_info = { | ||
176 | .enable_dma = 0, | ||
177 | .bits_per_word = 16, | ||
178 | }; | 162 | }; |
179 | #endif | 163 | #endif |
180 | 164 | ||
@@ -195,24 +179,12 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
195 | }, | 179 | }, |
196 | #endif | 180 | #endif |
197 | 181 | ||
198 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
199 | { | ||
200 | .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ | ||
201 | .max_speed_hz = 4, /* actual baudrate is SCLK/(2xspeed_hz) */ | ||
202 | .bus_num = 1, /* Framework bus number */ | ||
203 | .chip_select = 1, /* Framework chip select. */ | ||
204 | .platform_data = NULL, /* No spi_driver specific config */ | ||
205 | .controller_data = &spi_adc_chip_info, | ||
206 | }, | ||
207 | #endif | ||
208 | |||
209 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | 182 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) |
210 | { | 183 | { |
211 | .modalias = "ad183x", | 184 | .modalias = "ad183x", |
212 | .max_speed_hz = 16, | 185 | .max_speed_hz = 16, |
213 | .bus_num = 1, | 186 | .bus_num = 1, |
214 | .chip_select = 4, | 187 | .chip_select = 4, |
215 | .controller_data = &ad1836_spi_chip_info, | ||
216 | }, | 188 | }, |
217 | #endif | 189 | #endif |
218 | 190 | ||
diff --git a/arch/blackfin/mach-bf533/boards/blackstamp.c b/arch/blackfin/mach-bf533/boards/blackstamp.c index 87b5af3693c1..b0ec825fb4ec 100644 --- a/arch/blackfin/mach-bf533/boards/blackstamp.c +++ b/arch/blackfin/mach-bf533/boards/blackstamp.c | |||
@@ -102,21 +102,12 @@ static struct flash_platform_data bfin_spi_flash_data = { | |||
102 | /* SPI flash chip (m25p64) */ | 102 | /* SPI flash chip (m25p64) */ |
103 | static struct bfin5xx_spi_chip spi_flash_chip_info = { | 103 | static struct bfin5xx_spi_chip spi_flash_chip_info = { |
104 | .enable_dma = 0, /* use dma transfer with this chip*/ | 104 | .enable_dma = 0, /* use dma transfer with this chip*/ |
105 | .bits_per_word = 8, | ||
106 | }; | 105 | }; |
107 | #endif | 106 | #endif |
108 | 107 | ||
109 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 108 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
110 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 109 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
111 | .enable_dma = 0, | 110 | .enable_dma = 0, |
112 | .bits_per_word = 8, | ||
113 | }; | ||
114 | #endif | ||
115 | |||
116 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
117 | static struct bfin5xx_spi_chip spidev_chip_info = { | ||
118 | .enable_dma = 0, | ||
119 | .bits_per_word = 8, | ||
120 | }; | 111 | }; |
121 | #endif | 112 | #endif |
122 | 113 | ||
@@ -151,7 +142,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
151 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 142 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
152 | .bus_num = 0, | 143 | .bus_num = 0, |
153 | .chip_select = 7, | 144 | .chip_select = 7, |
154 | .controller_data = &spidev_chip_info, | ||
155 | }, | 145 | }, |
156 | #endif | 146 | #endif |
157 | }; | 147 | }; |
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index 4d5604eaa7c2..14f54a31e74c 100644 --- a/arch/blackfin/mach-bf533/boards/cm_bf533.c +++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c | |||
@@ -59,29 +59,12 @@ static struct flash_platform_data bfin_spi_flash_data = { | |||
59 | /* SPI flash chip (m25p64) */ | 59 | /* SPI flash chip (m25p64) */ |
60 | static struct bfin5xx_spi_chip spi_flash_chip_info = { | 60 | static struct bfin5xx_spi_chip spi_flash_chip_info = { |
61 | .enable_dma = 0, /* use dma transfer with this chip*/ | 61 | .enable_dma = 0, /* use dma transfer with this chip*/ |
62 | .bits_per_word = 8, | ||
63 | }; | ||
64 | #endif | ||
65 | |||
66 | /* SPI ADC chip */ | ||
67 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
68 | static struct bfin5xx_spi_chip spi_adc_chip_info = { | ||
69 | .enable_dma = 1, /* use dma transfer with this chip*/ | ||
70 | .bits_per_word = 16, | ||
71 | }; | ||
72 | #endif | ||
73 | |||
74 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | ||
75 | static struct bfin5xx_spi_chip ad1836_spi_chip_info = { | ||
76 | .enable_dma = 0, | ||
77 | .bits_per_word = 16, | ||
78 | }; | 62 | }; |
79 | #endif | 63 | #endif |
80 | 64 | ||
81 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 65 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
82 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 66 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
83 | .enable_dma = 0, | 67 | .enable_dma = 0, |
84 | .bits_per_word = 8, | ||
85 | }; | 68 | }; |
86 | #endif | 69 | #endif |
87 | 70 | ||
@@ -99,24 +82,12 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
99 | }, | 82 | }, |
100 | #endif | 83 | #endif |
101 | 84 | ||
102 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
103 | { | ||
104 | .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ | ||
105 | .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ | ||
106 | .bus_num = 0, /* Framework bus number */ | ||
107 | .chip_select = 2, /* Framework chip select. */ | ||
108 | .platform_data = NULL, /* No spi_driver specific config */ | ||
109 | .controller_data = &spi_adc_chip_info, | ||
110 | }, | ||
111 | #endif | ||
112 | |||
113 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | 85 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) |
114 | { | 86 | { |
115 | .modalias = "ad183x", | 87 | .modalias = "ad183x", |
116 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 88 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
117 | .bus_num = 0, | 89 | .bus_num = 0, |
118 | .chip_select = 4, | 90 | .chip_select = 4, |
119 | .controller_data = &ad1836_spi_chip_info, | ||
120 | }, | 91 | }, |
121 | #endif | 92 | #endif |
122 | 93 | ||
diff --git a/arch/blackfin/mach-bf533/boards/ezkit.c b/arch/blackfin/mach-bf533/boards/ezkit.c index b67b91d82242..ecd2801f050d 100644 --- a/arch/blackfin/mach-bf533/boards/ezkit.c +++ b/arch/blackfin/mach-bf533/boards/ezkit.c | |||
@@ -210,29 +210,6 @@ static struct flash_platform_data bfin_spi_flash_data = { | |||
210 | /* SPI flash chip (m25p64) */ | 210 | /* SPI flash chip (m25p64) */ |
211 | static struct bfin5xx_spi_chip spi_flash_chip_info = { | 211 | static struct bfin5xx_spi_chip spi_flash_chip_info = { |
212 | .enable_dma = 0, /* use dma transfer with this chip*/ | 212 | .enable_dma = 0, /* use dma transfer with this chip*/ |
213 | .bits_per_word = 8, | ||
214 | }; | ||
215 | #endif | ||
216 | |||
217 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
218 | /* SPI ADC chip */ | ||
219 | static struct bfin5xx_spi_chip spi_adc_chip_info = { | ||
220 | .enable_dma = 1, /* use dma transfer with this chip*/ | ||
221 | .bits_per_word = 16, | ||
222 | }; | ||
223 | #endif | ||
224 | |||
225 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | ||
226 | static struct bfin5xx_spi_chip ad1836_spi_chip_info = { | ||
227 | .enable_dma = 0, | ||
228 | .bits_per_word = 16, | ||
229 | }; | ||
230 | #endif | ||
231 | |||
232 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
233 | static struct bfin5xx_spi_chip spidev_chip_info = { | ||
234 | .enable_dma = 0, | ||
235 | .bits_per_word = 8, | ||
236 | }; | 213 | }; |
237 | #endif | 214 | #endif |
238 | 215 | ||
@@ -250,24 +227,12 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
250 | }, | 227 | }, |
251 | #endif | 228 | #endif |
252 | 229 | ||
253 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
254 | { | ||
255 | .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ | ||
256 | .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ | ||
257 | .bus_num = 0, /* Framework bus number */ | ||
258 | .chip_select = 1, /* Framework chip select. */ | ||
259 | .platform_data = NULL, /* No spi_driver specific config */ | ||
260 | .controller_data = &spi_adc_chip_info, | ||
261 | }, | ||
262 | #endif | ||
263 | |||
264 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | 230 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) |
265 | { | 231 | { |
266 | .modalias = "ad183x", | 232 | .modalias = "ad183x", |
267 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 233 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
268 | .bus_num = 0, | 234 | .bus_num = 0, |
269 | .chip_select = 4, | 235 | .chip_select = 4, |
270 | .controller_data = &ad1836_spi_chip_info, | ||
271 | }, | 236 | }, |
272 | #endif | 237 | #endif |
273 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | 238 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) |
@@ -276,7 +241,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
276 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 241 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
277 | .bus_num = 0, | 242 | .bus_num = 0, |
278 | .chip_select = 1, | 243 | .chip_select = 1, |
279 | .controller_data = &spidev_chip_info, | ||
280 | }, | 244 | }, |
281 | #endif | 245 | #endif |
282 | }; | 246 | }; |
diff --git a/arch/blackfin/mach-bf533/boards/ip0x.c b/arch/blackfin/mach-bf533/boards/ip0x.c index a377d8afea03..fbee77fa9211 100644 --- a/arch/blackfin/mach-bf533/boards/ip0x.c +++ b/arch/blackfin/mach-bf533/boards/ip0x.c | |||
@@ -110,7 +110,6 @@ static struct platform_device dm9000_device2 = { | |||
110 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 110 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
111 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 111 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
112 | .enable_dma = 0, /* if 1 - block!!! */ | 112 | .enable_dma = 0, /* if 1 - block!!! */ |
113 | .bits_per_word = 8, | ||
114 | }; | 113 | }; |
115 | #endif | 114 | #endif |
116 | 115 | ||
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index eccb82036c0c..964a8e5f79b4 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -175,29 +175,6 @@ static struct flash_platform_data bfin_spi_flash_data = { | |||
175 | /* SPI flash chip (m25p64) */ | 175 | /* SPI flash chip (m25p64) */ |
176 | static struct bfin5xx_spi_chip spi_flash_chip_info = { | 176 | static struct bfin5xx_spi_chip spi_flash_chip_info = { |
177 | .enable_dma = 0, /* use dma transfer with this chip*/ | 177 | .enable_dma = 0, /* use dma transfer with this chip*/ |
178 | .bits_per_word = 8, | ||
179 | }; | ||
180 | #endif | ||
181 | |||
182 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
183 | /* SPI ADC chip */ | ||
184 | static struct bfin5xx_spi_chip spi_adc_chip_info = { | ||
185 | .enable_dma = 1, /* use dma transfer with this chip*/ | ||
186 | .bits_per_word = 16, | ||
187 | }; | ||
188 | #endif | ||
189 | |||
190 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | ||
191 | static struct bfin5xx_spi_chip ad1836_spi_chip_info = { | ||
192 | .enable_dma = 0, | ||
193 | .bits_per_word = 16, | ||
194 | }; | ||
195 | #endif | ||
196 | |||
197 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | ||
198 | static struct bfin5xx_spi_chip spidev_chip_info = { | ||
199 | .enable_dma = 0, | ||
200 | .bits_per_word = 8, | ||
201 | }; | 178 | }; |
202 | #endif | 179 | #endif |
203 | 180 | ||
@@ -224,7 +201,6 @@ static struct mmc_spi_platform_data bfin_mmc_spi_pdata = { | |||
224 | 201 | ||
225 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 202 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
226 | .enable_dma = 0, | 203 | .enable_dma = 0, |
227 | .bits_per_word = 8, | ||
228 | .pio_interrupt = 0, | 204 | .pio_interrupt = 0, |
229 | }; | 205 | }; |
230 | #endif | 206 | #endif |
@@ -243,17 +219,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
243 | }, | 219 | }, |
244 | #endif | 220 | #endif |
245 | 221 | ||
246 | #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE) | ||
247 | { | ||
248 | .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ | ||
249 | .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ | ||
250 | .bus_num = 0, /* Framework bus number */ | ||
251 | .chip_select = 1, /* Framework chip select. */ | ||
252 | .platform_data = NULL, /* No spi_driver specific config */ | ||
253 | .controller_data = &spi_adc_chip_info, | ||
254 | }, | ||
255 | #endif | ||
256 | |||
257 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) | 222 | #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) |
258 | { | 223 | { |
259 | .modalias = "ad183x", | 224 | .modalias = "ad183x", |
@@ -261,7 +226,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
261 | .bus_num = 0, | 226 | .bus_num = 0, |
262 | .chip_select = 4, | 227 | .chip_select = 4, |
263 | .platform_data = "ad1836", /* only includes chip name for the moment */ | 228 | .platform_data = "ad1836", /* only includes chip name for the moment */ |
264 | .controller_data = &ad1836_spi_chip_info, | ||
265 | .mode = SPI_MODE_3, | 229 | .mode = SPI_MODE_3, |
266 | }, | 230 | }, |
267 | #endif | 231 | #endif |
@@ -272,7 +236,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
272 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ | 236 | .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */ |
273 | .bus_num = 0, | 237 | .bus_num = 0, |
274 | .chip_select = 1, | 238 | .chip_select = 1, |
275 | .controller_data = &spidev_chip_info, | ||
276 | }, | 239 | }, |
277 | #endif | 240 | #endif |
278 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 241 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |