diff options
| author | Olof Johansson <olof@lixom.net> | 2013-10-28 00:42:44 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-10-28 00:42:44 -0400 |
| commit | 3316dee245ef297155fa45b8d14263dfd6a9164b (patch) | |
| tree | 7adbf9875893ce0405f771d92d266d70df1aedbb /include/linux/platform_data | |
| parent | f2c4e82e350dab489ae0d8fcd84b780de508ab64 (diff) | |
| parent | 1fecf8958eb7f90791f2c7e99afac393b64fa976 (diff) | |
Merge tag 's3c24xx-dma' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/drivers
From Kukjin Kim, this branch adds device-tree support to the DMA controller
on the older Samsung SoCs. It also adds support for one of the missing SoCs
in the family (2410).
The driver has been Ack:ed by Vinod Koul, but is merged through here due
to dependencies with platform code.
* tag 's3c24xx-dma' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
ARM: S3C24XX: add dma pdata for s3c2410, s3c2440 and s3c2442
dmaengine: s3c24xx-dma: add support for the s3c2410 type of controller
ARM: S3C24XX: Fix possible dma selection warning
ARM: SAMSUNG: set s3c24xx_dma_filter for s3c64xx-spi0 device
ARM: S3C24XX: add platform-devices for new dma driver for s3c2412 and s3c2443
dmaengine: add driver for Samsung s3c24xx SoCs
ARM: S3C24XX: number the dma clocks
+ Linux 3.12-rc3
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/dma-s3c24xx.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/linux/platform_data/dma-s3c24xx.h b/include/linux/platform_data/dma-s3c24xx.h new file mode 100644 index 000000000000..89ba1b0c90e4 --- /dev/null +++ b/include/linux/platform_data/dma-s3c24xx.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* | ||
| 2 | * S3C24XX DMA handling | ||
| 3 | * | ||
| 4 | * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms of the GNU General Public License as published by the Free | ||
| 8 | * Software Foundation; either version 2 of the License, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | */ | ||
| 11 | |||
| 12 | /* Helper to encode the source selection constraints for early s3c socs. */ | ||
| 13 | #define S3C24XX_DMA_CHANREQ(src, chan) ((BIT(3) | src) << chan * 4) | ||
| 14 | |||
| 15 | enum s3c24xx_dma_bus { | ||
| 16 | S3C24XX_DMA_APB, | ||
| 17 | S3C24XX_DMA_AHB, | ||
| 18 | }; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * @bus: on which bus does the peripheral reside - AHB or APB. | ||
| 22 | * @handshake: is a handshake with the peripheral necessary | ||
| 23 | * @chansel: channel selection information, depending on variant; reqsel for | ||
| 24 | * s3c2443 and later and channel-selection map for earlier SoCs | ||
| 25 | * see CHANSEL doc in s3c2443-dma.c | ||
| 26 | */ | ||
| 27 | struct s3c24xx_dma_channel { | ||
| 28 | enum s3c24xx_dma_bus bus; | ||
| 29 | bool handshake; | ||
| 30 | u16 chansel; | ||
| 31 | }; | ||
| 32 | |||
| 33 | /** | ||
| 34 | * struct s3c24xx_dma_platdata - platform specific settings | ||
| 35 | * @num_phy_channels: number of physical channels | ||
| 36 | * @channels: array of virtual channel descriptions | ||
| 37 | * @num_channels: number of virtual channels | ||
| 38 | */ | ||
| 39 | struct s3c24xx_dma_platdata { | ||
| 40 | int num_phy_channels; | ||
| 41 | struct s3c24xx_dma_channel *channels; | ||
| 42 | int num_channels; | ||
| 43 | }; | ||
| 44 | |||
| 45 | struct dma_chan; | ||
| 46 | bool s3c24xx_dma_filter(struct dma_chan *chan, void *param); | ||
