blob: 9ebe658590fa5583ac817aa4dce552f709ebbbab [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/arm/mach-pxa/ssp.c
3 *
4 * based on linux/arch/arm/mach-sa1100/ssp.c by Russell King
5 *
6 * Copyright (C) 2003 Russell King.
7 * Copyright (C) 2003 Wolfson Microelectronics PLC
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 *
13 * PXA2xx SSP driver. This provides the generic core for simple
14 * IO-based SSP applications and allows easy port setup for DMA access.
15 *
16 * Author: Liam Girdwood <liam.girdwood@wolfsonmicro.com>
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 */
18
19#include <linux/module.h>
20#include <linux/kernel.h>
21#include <linux/sched.h>
22#include <linux/slab.h>
23#include <linux/errno.h>
24#include <linux/interrupt.h>
25#include <linux/ioport.h>
26#include <linux/init.h>
Arjan van de Ven00431702006-01-12 18:42:23 +000027#include <linux/mutex.h>
eric miao88286452007-12-06 17:56:42 +080028#include <linux/clk.h>
29#include <linux/err.h>
30#include <linux/platform_device.h>
Russell Kingfced80c2008-09-06 12:10:45 +010031#include <linux/io.h>
eric miao88286452007-12-06 17:56:42 +080032
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#include <asm/irq.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010034#include <mach/hardware.h>
35#include <mach/ssp.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010036#include <mach/regs-ssp.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +010038#define TIMEOUT 100000
39
Linus Torvalds0cd61b62006-10-06 10:53:39 -070040static irqreturn_t ssp_interrupt(int irq, void *dev_id)
Linus Torvalds1da177e2005-04-16 15:20:36 -070041{
Jeff Garzik2a7057e2007-10-26 05:40:22 -040042 struct ssp_dev *dev = dev_id;
eric miao3dcb00e2007-11-30 18:26:56 +080043 struct ssp_device *ssp = dev->ssp;
44 unsigned int status;
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
eric miao3dcb00e2007-11-30 18:26:56 +080046 status = __raw_readl(ssp->mmio_base + SSSR);
47 __raw_writel(status, ssp->mmio_base + SSSR);
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
49 if (status & SSSR_ROR)
50 printk(KERN_WARNING "SSP(%d): receiver overrun\n", dev->port);
51
52 if (status & SSSR_TUR)
53 printk(KERN_WARNING "SSP(%d): transmitter underrun\n", dev->port);
54
55 if (status & SSSR_BCE)
56 printk(KERN_WARNING "SSP(%d): bit count error\n", dev->port);
57
58 return IRQ_HANDLED;
59}
60
61/**
62 * ssp_write_word - write a word to the SSP port
63 * @data: 32-bit, MSB justified data to write.
64 *
65 * Wait for a free entry in the SSP transmit FIFO, and write a data
66 * word to the SSP port.
67 *
68 * The caller is expected to perform the necessary locking.
69 *
70 * Returns:
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +010071 * %-ETIMEDOUT timeout occurred
Linus Torvalds1da177e2005-04-16 15:20:36 -070072 * 0 success
73 */
74int ssp_write_word(struct ssp_dev *dev, u32 data)
75{
eric miao3dcb00e2007-11-30 18:26:56 +080076 struct ssp_device *ssp = dev->ssp;
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +010077 int timeout = TIMEOUT;
78
eric miao3dcb00e2007-11-30 18:26:56 +080079 while (!(__raw_readl(ssp->mmio_base + SSSR) & SSSR_TNF)) {
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +010080 if (!--timeout)
81 return -ETIMEDOUT;
Linus Torvalds1da177e2005-04-16 15:20:36 -070082 cpu_relax();
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +010083 }
Linus Torvalds1da177e2005-04-16 15:20:36 -070084
eric miao3dcb00e2007-11-30 18:26:56 +080085 __raw_writel(data, ssp->mmio_base + SSDR);
Linus Torvalds1da177e2005-04-16 15:20:36 -070086
87 return 0;
88}
89
90/**
91 * ssp_read_word - read a word from the SSP port
92 *
93 * Wait for a data word in the SSP receive FIFO, and return the
94 * received data. Data is LSB justified.
95 *
96 * Note: Currently, if data is not expected to be received, this
97 * function will wait for ever.
98 *
99 * The caller is expected to perform the necessary locking.
100 *
101 * Returns:
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100102 * %-ETIMEDOUT timeout occurred
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103 * 32-bit data success
104 */
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100105int ssp_read_word(struct ssp_dev *dev, u32 *data)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106{
eric miao3dcb00e2007-11-30 18:26:56 +0800107 struct ssp_device *ssp = dev->ssp;
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100108 int timeout = TIMEOUT;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109
eric miao3dcb00e2007-11-30 18:26:56 +0800110 while (!(__raw_readl(ssp->mmio_base + SSSR) & SSSR_RNE)) {
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100111 if (!--timeout)
112 return -ETIMEDOUT;
113 cpu_relax();
114 }
115
eric miao3dcb00e2007-11-30 18:26:56 +0800116 *data = __raw_readl(ssp->mmio_base + SSDR);
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100117 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118}
119
120/**
121 * ssp_flush - flush the transmit and receive FIFOs
122 *
123 * Wait for the SSP to idle, and ensure that the receive FIFO
124 * is empty.
125 *
126 * The caller is expected to perform the necessary locking.
127 */
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100128int ssp_flush(struct ssp_dev *dev)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700129{
eric miao3dcb00e2007-11-30 18:26:56 +0800130 struct ssp_device *ssp = dev->ssp;
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100131 int timeout = TIMEOUT * 2;
132
eric miao732ce162007-11-23 14:55:59 +0800133 /* ensure TX FIFO is empty instead of not full */
134 if (cpu_is_pxa3xx()) {
135 while (__raw_readl(ssp->mmio_base + SSSR) & 0xf00) {
136 if (!--timeout)
137 return -ETIMEDOUT;
138 cpu_relax();
139 }
140 timeout = TIMEOUT * 2;
141 }
142
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143 do {
eric miao3dcb00e2007-11-30 18:26:56 +0800144 while (__raw_readl(ssp->mmio_base + SSSR) & SSSR_RNE) {
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100145 if (!--timeout)
146 return -ETIMEDOUT;
eric miao3dcb00e2007-11-30 18:26:56 +0800147 (void)__raw_readl(ssp->mmio_base + SSDR);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700148 }
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100149 if (!--timeout)
150 return -ETIMEDOUT;
eric miao3dcb00e2007-11-30 18:26:56 +0800151 } while (__raw_readl(ssp->mmio_base + SSSR) & SSSR_BSY);
Paul Sokolovsky8f1bf872006-08-27 12:54:56 +0100152
153 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154}
155
156/**
157 * ssp_enable - enable the SSP port
158 *
159 * Turn on the SSP port.
160 */
161void ssp_enable(struct ssp_dev *dev)
162{
eric miao3dcb00e2007-11-30 18:26:56 +0800163 struct ssp_device *ssp = dev->ssp;
164 uint32_t sscr0;
165
166 sscr0 = __raw_readl(ssp->mmio_base + SSCR0);
167 sscr0 |= SSCR0_SSE;
168 __raw_writel(sscr0, ssp->mmio_base + SSCR0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169}
170
171/**
172 * ssp_disable - shut down the SSP port
173 *
174 * Turn off the SSP port, optionally powering it down.
175 */
176void ssp_disable(struct ssp_dev *dev)
177{
eric miao3dcb00e2007-11-30 18:26:56 +0800178 struct ssp_device *ssp = dev->ssp;
179 uint32_t sscr0;
180
181 sscr0 = __raw_readl(ssp->mmio_base + SSCR0);
182 sscr0 &= ~SSCR0_SSE;
183 __raw_writel(sscr0, ssp->mmio_base + SSCR0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700184}
185
186/**
187 * ssp_save_state - save the SSP configuration
188 * @ssp: pointer to structure to save SSP configuration
189 *
190 * Save the configured SSP state for suspend.
191 */
eric miao3dcb00e2007-11-30 18:26:56 +0800192void ssp_save_state(struct ssp_dev *dev, struct ssp_state *state)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193{
eric miao3dcb00e2007-11-30 18:26:56 +0800194 struct ssp_device *ssp = dev->ssp;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700195
eric miao3dcb00e2007-11-30 18:26:56 +0800196 state->cr0 = __raw_readl(ssp->mmio_base + SSCR0);
197 state->cr1 = __raw_readl(ssp->mmio_base + SSCR1);
198 state->to = __raw_readl(ssp->mmio_base + SSTO);
199 state->psp = __raw_readl(ssp->mmio_base + SSPSP);
200
201 ssp_disable(dev);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700202}
203
204/**
205 * ssp_restore_state - restore a previously saved SSP configuration
206 * @ssp: pointer to configuration saved by ssp_save_state
207 *
208 * Restore the SSP configuration saved previously by ssp_save_state.
209 */
eric miao3dcb00e2007-11-30 18:26:56 +0800210void ssp_restore_state(struct ssp_dev *dev, struct ssp_state *state)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700211{
eric miao3dcb00e2007-11-30 18:26:56 +0800212 struct ssp_device *ssp = dev->ssp;
213 uint32_t sssr = SSSR_ROR | SSSR_TUR | SSSR_BCE;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700214
eric miao3dcb00e2007-11-30 18:26:56 +0800215 __raw_writel(sssr, ssp->mmio_base + SSSR);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700216
eric miao3dcb00e2007-11-30 18:26:56 +0800217 __raw_writel(state->cr0 & ~SSCR0_SSE, ssp->mmio_base + SSCR0);
218 __raw_writel(state->cr1, ssp->mmio_base + SSCR1);
219 __raw_writel(state->to, ssp->mmio_base + SSTO);
220 __raw_writel(state->psp, ssp->mmio_base + SSPSP);
221 __raw_writel(state->cr0, ssp->mmio_base + SSCR0);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700222}
223
224/**
225 * ssp_config - configure SSP port settings
226 * @mode: port operating mode
227 * @flags: port config flags
228 * @psp_flags: port PSP config flags
229 * @speed: port speed
230 *
231 * Port MUST be disabled by ssp_disable before making any config changes.
232 */
233int ssp_config(struct ssp_dev *dev, u32 mode, u32 flags, u32 psp_flags, u32 speed)
234{
eric miao3dcb00e2007-11-30 18:26:56 +0800235 struct ssp_device *ssp = dev->ssp;
236
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237 dev->mode = mode;
238 dev->flags = flags;
239 dev->psp_flags = psp_flags;
240 dev->speed = speed;
241
242 /* set up port type, speed, port settings */
eric miao3dcb00e2007-11-30 18:26:56 +0800243 __raw_writel((dev->speed | dev->mode), ssp->mmio_base + SSCR0);
244 __raw_writel(dev->flags, ssp->mmio_base + SSCR1);
245 __raw_writel(dev->psp_flags, ssp->mmio_base + SSPSP);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700246
247 return 0;
248}
249
250/**
251 * ssp_init - setup the SSP port
252 *
253 * initialise and claim resources for the SSP port.
254 *
255 * Returns:
256 * %-ENODEV if the SSP port is unavailable
257 * %-EBUSY if the resources are already in use
258 * %0 on success
259 */
Liam Girdwoodb216c012005-11-10 17:45:39 +0000260int ssp_init(struct ssp_dev *dev, u32 port, u32 init_flags)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261{
eric miao88286452007-12-06 17:56:42 +0800262 struct ssp_device *ssp;
Liam Girdwoodb216c012005-11-10 17:45:39 +0000263 int ret;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700264
eric miao88286452007-12-06 17:56:42 +0800265 ssp = ssp_request(port, "SSP");
266 if (ssp == NULL)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700267 return -ENODEV;
268
eric miao88286452007-12-06 17:56:42 +0800269 dev->ssp = ssp;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270 dev->port = port;
271
Liam Girdwoodb216c012005-11-10 17:45:39 +0000272 /* do we need to get irq */
273 if (!(init_flags & SSP_NO_IRQ)) {
eric miao88286452007-12-06 17:56:42 +0800274 ret = request_irq(ssp->irq, ssp_interrupt,
Liam Girdwoodb216c012005-11-10 17:45:39 +0000275 0, "SSP", dev);
276 if (ret)
277 goto out_region;
eric miao88286452007-12-06 17:56:42 +0800278 dev->irq = ssp->irq;
Liam Girdwoodb216c012005-11-10 17:45:39 +0000279 } else
Mark Brownbbae0202008-06-19 03:18:09 +0100280 dev->irq = NO_IRQ;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281
282 /* turn on SSP port clock */
eric miao88286452007-12-06 17:56:42 +0800283 clk_enable(ssp->clk);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700284 return 0;
285
286out_region:
eric miao88286452007-12-06 17:56:42 +0800287 ssp_free(ssp);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700288 return ret;
289}
290
291/**
292 * ssp_exit - undo the effects of ssp_init
293 *
294 * release and free resources for the SSP port.
295 */
296void ssp_exit(struct ssp_dev *dev)
297{
eric miao88286452007-12-06 17:56:42 +0800298 struct ssp_device *ssp = dev->ssp;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299
eric miao3dcb00e2007-11-30 18:26:56 +0800300 ssp_disable(dev);
Mark Brownbbae0202008-06-19 03:18:09 +0100301 if (dev->irq != NO_IRQ)
302 free_irq(dev->irq, dev);
eric miao88286452007-12-06 17:56:42 +0800303 clk_disable(ssp->clk);
304 ssp_free(ssp);
305}
306
307static DEFINE_MUTEX(ssp_lock);
308static LIST_HEAD(ssp_list);
309
310struct ssp_device *ssp_request(int port, const char *label)
311{
312 struct ssp_device *ssp = NULL;
313
314 mutex_lock(&ssp_lock);
315
316 list_for_each_entry(ssp, &ssp_list, node) {
317 if (ssp->port_id == port && ssp->use_count == 0) {
318 ssp->use_count++;
319 ssp->label = label;
320 break;
321 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322 }
323
eric miao88286452007-12-06 17:56:42 +0800324 mutex_unlock(&ssp_lock);
325
Guennadi Liakhovetskia4aff222008-06-05 10:43:14 +0100326 if (&ssp->node == &ssp_list)
eric miao88286452007-12-06 17:56:42 +0800327 return NULL;
328
329 return ssp;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330}
eric miao88286452007-12-06 17:56:42 +0800331EXPORT_SYMBOL(ssp_request);
332
333void ssp_free(struct ssp_device *ssp)
334{
335 mutex_lock(&ssp_lock);
336 if (ssp->use_count) {
337 ssp->use_count--;
338 ssp->label = NULL;
339 } else
340 dev_err(&ssp->pdev->dev, "device already free\n");
341 mutex_unlock(&ssp_lock);
342}
343EXPORT_SYMBOL(ssp_free);
344
Eric Miao6427d452009-10-23 00:09:47 +0800345static int __devinit ssp_probe(struct platform_device *pdev)
eric miao88286452007-12-06 17:56:42 +0800346{
Eric Miao6427d452009-10-23 00:09:47 +0800347 const struct platform_device_id *id = platform_get_device_id(pdev);
eric miao88286452007-12-06 17:56:42 +0800348 struct resource *res;
349 struct ssp_device *ssp;
350 int ret = 0;
351
352 ssp = kzalloc(sizeof(struct ssp_device), GFP_KERNEL);
353 if (ssp == NULL) {
354 dev_err(&pdev->dev, "failed to allocate memory");
355 return -ENOMEM;
356 }
Mark Brown919dcb22008-06-19 02:55:52 +0100357 ssp->pdev = pdev;
eric miao88286452007-12-06 17:56:42 +0800358
Russell Kinge0d8b132008-11-11 17:52:32 +0000359 ssp->clk = clk_get(&pdev->dev, NULL);
eric miao88286452007-12-06 17:56:42 +0800360 if (IS_ERR(ssp->clk)) {
361 ret = PTR_ERR(ssp->clk);
362 goto err_free;
363 }
364
365 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
366 if (res == NULL) {
367 dev_err(&pdev->dev, "no memory resource defined\n");
368 ret = -ENODEV;
369 goto err_free_clk;
370 }
371
372 res = request_mem_region(res->start, res->end - res->start + 1,
373 pdev->name);
374 if (res == NULL) {
375 dev_err(&pdev->dev, "failed to request memory resource\n");
376 ret = -EBUSY;
377 goto err_free_clk;
378 }
379
380 ssp->phys_base = res->start;
381
382 ssp->mmio_base = ioremap(res->start, res->end - res->start + 1);
383 if (ssp->mmio_base == NULL) {
384 dev_err(&pdev->dev, "failed to ioremap() registers\n");
385 ret = -ENODEV;
386 goto err_free_mem;
387 }
388
389 ssp->irq = platform_get_irq(pdev, 0);
390 if (ssp->irq < 0) {
391 dev_err(&pdev->dev, "no IRQ resource defined\n");
392 ret = -ENODEV;
393 goto err_free_io;
394 }
395
396 res = platform_get_resource(pdev, IORESOURCE_DMA, 0);
397 if (res == NULL) {
398 dev_err(&pdev->dev, "no SSP RX DRCMR defined\n");
399 ret = -ENODEV;
400 goto err_free_io;
401 }
402 ssp->drcmr_rx = res->start;
403
404 res = platform_get_resource(pdev, IORESOURCE_DMA, 1);
405 if (res == NULL) {
406 dev_err(&pdev->dev, "no SSP TX DRCMR defined\n");
407 ret = -ENODEV;
408 goto err_free_io;
409 }
410 ssp->drcmr_tx = res->start;
411
412 /* PXA2xx/3xx SSP ports starts from 1 and the internal pdev->id
413 * starts from 0, do a translation here
414 */
415 ssp->port_id = pdev->id + 1;
416 ssp->use_count = 0;
Eric Miao6427d452009-10-23 00:09:47 +0800417 ssp->type = (int)id->driver_data;
eric miao88286452007-12-06 17:56:42 +0800418
419 mutex_lock(&ssp_lock);
420 list_add(&ssp->node, &ssp_list);
421 mutex_unlock(&ssp_lock);
422
423 platform_set_drvdata(pdev, ssp);
424 return 0;
425
426err_free_io:
427 iounmap(ssp->mmio_base);
428err_free_mem:
429 release_mem_region(res->start, res->end - res->start + 1);
430err_free_clk:
431 clk_put(ssp->clk);
432err_free:
433 kfree(ssp);
434 return ret;
435}
436
437static int __devexit ssp_remove(struct platform_device *pdev)
438{
439 struct resource *res;
440 struct ssp_device *ssp;
441
442 ssp = platform_get_drvdata(pdev);
443 if (ssp == NULL)
444 return -ENODEV;
445
446 iounmap(ssp->mmio_base);
447
448 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
449 release_mem_region(res->start, res->end - res->start + 1);
450
451 clk_put(ssp->clk);
452
453 mutex_lock(&ssp_lock);
454 list_del(&ssp->node);
455 mutex_unlock(&ssp_lock);
456
457 kfree(ssp);
458 return 0;
459}
460
Eric Miao6427d452009-10-23 00:09:47 +0800461static const struct platform_device_id ssp_id_table[] = {
462 { "pxa25x-ssp", PXA25x_SSP },
463 { "pxa25x-nssp", PXA25x_NSSP },
464 { "pxa27x-ssp", PXA27x_SSP },
465 { },
eric miao88286452007-12-06 17:56:42 +0800466};
467
Eric Miao6427d452009-10-23 00:09:47 +0800468static struct platform_driver ssp_driver = {
469 .probe = ssp_probe,
eric miao88286452007-12-06 17:56:42 +0800470 .remove = __devexit_p(ssp_remove),
eric miao88286452007-12-06 17:56:42 +0800471 .driver = {
Eric Miao6427d452009-10-23 00:09:47 +0800472 .owner = THIS_MODULE,
473 .name = "pxa2xx-ssp",
eric miao88286452007-12-06 17:56:42 +0800474 },
Eric Miao6427d452009-10-23 00:09:47 +0800475 .id_table = ssp_id_table,
eric miao88286452007-12-06 17:56:42 +0800476};
477
478static int __init pxa_ssp_init(void)
479{
Eric Miao6427d452009-10-23 00:09:47 +0800480 return platform_driver_register(&ssp_driver);
eric miao88286452007-12-06 17:56:42 +0800481}
482
483static void __exit pxa_ssp_exit(void)
484{
Eric Miao6427d452009-10-23 00:09:47 +0800485 platform_driver_unregister(&ssp_driver);
eric miao88286452007-12-06 17:56:42 +0800486}
487
Russell Kingcae05542007-12-10 15:35:54 +0000488arch_initcall(pxa_ssp_init);
eric miao88286452007-12-06 17:56:42 +0800489module_exit(pxa_ssp_exit);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700490
491EXPORT_SYMBOL(ssp_write_word);
492EXPORT_SYMBOL(ssp_read_word);
493EXPORT_SYMBOL(ssp_flush);
494EXPORT_SYMBOL(ssp_enable);
495EXPORT_SYMBOL(ssp_disable);
496EXPORT_SYMBOL(ssp_save_state);
497EXPORT_SYMBOL(ssp_restore_state);
498EXPORT_SYMBOL(ssp_init);
499EXPORT_SYMBOL(ssp_exit);
500EXPORT_SYMBOL(ssp_config);
501
502MODULE_DESCRIPTION("PXA SSP driver");
503MODULE_AUTHOR("Liam Girdwood");
504MODULE_LICENSE("GPL");
505