diff options
Diffstat (limited to 'drivers/spi/spi-fsl-cpm.c')
| -rw-r--r-- | drivers/spi/spi-fsl-cpm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/spi/spi-fsl-cpm.c b/drivers/spi/spi-fsl-cpm.c index e85ab1cb17a2..9c46a3058743 100644 --- a/drivers/spi/spi-fsl-cpm.c +++ b/drivers/spi/spi-fsl-cpm.c | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | #include <linux/dma-mapping.h> | 20 | #include <linux/dma-mapping.h> |
| 21 | #include <linux/fsl_devices.h> | 21 | #include <linux/fsl_devices.h> |
| 22 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
| 23 | #include <linux/module.h> | ||
| 23 | #include <linux/of_address.h> | 24 | #include <linux/of_address.h> |
| 24 | #include <linux/spi/spi.h> | 25 | #include <linux/spi/spi.h> |
| 25 | #include <linux/types.h> | 26 | #include <linux/types.h> |
| @@ -68,6 +69,7 @@ void fsl_spi_cpm_reinit_txrx(struct mpc8xxx_spi *mspi) | |||
| 68 | } | 69 | } |
| 69 | } | 70 | } |
| 70 | } | 71 | } |
| 72 | EXPORT_SYMBOL_GPL(fsl_spi_cpm_reinit_txrx); | ||
| 71 | 73 | ||
| 72 | static void fsl_spi_cpm_bufs_start(struct mpc8xxx_spi *mspi) | 74 | static void fsl_spi_cpm_bufs_start(struct mpc8xxx_spi *mspi) |
| 73 | { | 75 | { |
| @@ -162,6 +164,7 @@ err_rx_dma: | |||
| 162 | dma_unmap_single(dev, mspi->tx_dma, t->len, DMA_TO_DEVICE); | 164 | dma_unmap_single(dev, mspi->tx_dma, t->len, DMA_TO_DEVICE); |
| 163 | return -ENOMEM; | 165 | return -ENOMEM; |
| 164 | } | 166 | } |
| 167 | EXPORT_SYMBOL_GPL(fsl_spi_cpm_bufs); | ||
| 165 | 168 | ||
| 166 | void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) | 169 | void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) |
| 167 | { | 170 | { |
| @@ -174,6 +177,7 @@ void fsl_spi_cpm_bufs_complete(struct mpc8xxx_spi *mspi) | |||
| 174 | dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE); | 177 | dma_unmap_single(dev, mspi->rx_dma, t->len, DMA_FROM_DEVICE); |
| 175 | mspi->xfer_in_progress = NULL; | 178 | mspi->xfer_in_progress = NULL; |
| 176 | } | 179 | } |
| 180 | EXPORT_SYMBOL_GPL(fsl_spi_cpm_bufs_complete); | ||
| 177 | 181 | ||
| 178 | void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) | 182 | void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) |
| 179 | { | 183 | { |
| @@ -198,6 +202,7 @@ void fsl_spi_cpm_irq(struct mpc8xxx_spi *mspi, u32 events) | |||
| 198 | else | 202 | else |
| 199 | complete(&mspi->done); | 203 | complete(&mspi->done); |
| 200 | } | 204 | } |
| 205 | EXPORT_SYMBOL_GPL(fsl_spi_cpm_irq); | ||
| 201 | 206 | ||
| 202 | static void *fsl_spi_alloc_dummy_rx(void) | 207 | static void *fsl_spi_alloc_dummy_rx(void) |
| 203 | { | 208 | { |
| @@ -375,6 +380,7 @@ err_pram: | |||
| 375 | fsl_spi_free_dummy_rx(); | 380 | fsl_spi_free_dummy_rx(); |
| 376 | return -ENOMEM; | 381 | return -ENOMEM; |
| 377 | } | 382 | } |
| 383 | EXPORT_SYMBOL_GPL(fsl_spi_cpm_init); | ||
| 378 | 384 | ||
| 379 | void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) | 385 | void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) |
| 380 | { | 386 | { |
| @@ -389,3 +395,6 @@ void fsl_spi_cpm_free(struct mpc8xxx_spi *mspi) | |||
| 389 | cpm_muram_free(cpm_muram_offset(mspi->pram)); | 395 | cpm_muram_free(cpm_muram_offset(mspi->pram)); |
| 390 | fsl_spi_free_dummy_rx(); | 396 | fsl_spi_free_dummy_rx(); |
| 391 | } | 397 | } |
| 398 | EXPORT_SYMBOL_GPL(fsl_spi_cpm_free); | ||
| 399 | |||
| 400 | MODULE_LICENSE("GPL"); | ||
