diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2015-02-14 23:38:39 +0100 |
---|---|---|
committer | Robert Jarzmik <robert.jarzmik@free.fr> | 2015-07-18 12:16:33 +0200 |
commit | 4be0856fa34ef3b0681aeec669e50c13e394f145 (patch) | |
tree | 76bd16b3ba03eaac9bab6fa284e40215d62781be /arch/arm/plat-pxa/include | |
parent | Linux 4.2-rc1 (diff) | |
download | linux-4be0856fa34ef3b0681aeec669e50c13e394f145.tar.xz linux-4be0856fa34ef3b0681aeec669e50c13e394f145.zip |
ARM: pxa: transition to dmaengine phase 1
In order to slowly transition pxa to dmaengine, the legacy code will now
rely on dmaengine to request a channel.
This implies that PXA architecture selects DMADEVICES and PXA_DMA,
which is not pretty. Yet it enables PXA drivers to be ported one by one,
with part of them using dmaengine, and the other part using the legacy
code.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Diffstat (limited to 'arch/arm/plat-pxa/include')
-rw-r--r-- | arch/arm/plat-pxa/include/plat/dma.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/plat-pxa/include/plat/dma.h b/arch/arm/plat-pxa/include/plat/dma.h index a7b91dc06852..28848b344e2d 100644 --- a/arch/arm/plat-pxa/include/plat/dma.h +++ b/arch/arm/plat-pxa/include/plat/dma.h @@ -82,4 +82,19 @@ int pxa_request_dma (char *name, void pxa_free_dma (int dma_ch); +/* + * Cooperation with pxa_dma + dmaengine while there remains at least one pxa + * driver not converted to dmaengine. + */ +#if defined(CONFIG_PXA_DMA) +extern int pxad_toggle_reserved_channel(int legacy_channel); +#else +static inline int pxad_toggle_reserved_channel(int legacy_channel) +{ + return 0; +} +#endif + +extern void __init pxa2xx_set_dmac_info(int nb_channels); + #endif /* __PLAT_DMA_H */ |