diff options
author | Nikita Shubin <nikita.shubin@maquefel.me> | 2024-09-09 11:10:34 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-09-12 14:33:11 +0000 |
commit | 2e7f55ce430240a5547b8a94b4c532fc8c20b18b (patch) | |
tree | 2b5bcabee0d85d88d0f9285749adeb7d779a1383 /include/linux/platform_data | |
parent | 581e2ff84f2d708885da10414c65cb41b3c13dc3 (diff) | |
download | linux-2e7f55ce430240a5547b8a94b4c532fc8c20b18b.tar.gz linux-2e7f55ce430240a5547b8a94b4c532fc8c20b18b.tar.bz2 linux-2e7f55ce430240a5547b8a94b4c532fc8c20b18b.zip |
dmaengine: cirrus: Convert to DT for Cirrus EP93xx
Convert Cirrus EP93xx DMA to device tree usage:
- add OF ID match table with data
- add of_probe for device tree
- add xlate for m2m/m2p
- drop subsys_initcall code
- drop platform probe
- drop platform structs usage
>From now on it only supports device tree probing.
Co-developed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/dma-ep93xx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/platform_data/dma-ep93xx.h b/include/linux/platform_data/dma-ep93xx.h index eb9805bb3fe8..9ec5cdd5a1eb 100644 --- a/include/linux/platform_data/dma-ep93xx.h +++ b/include/linux/platform_data/dma-ep93xx.h @@ -3,8 +3,11 @@ #define __ASM_ARCH_DMA_H #include <linux/types.h> +#include <linux/device.h> #include <linux/dmaengine.h> #include <linux/dma-mapping.h> +#include <linux/property.h> +#include <linux/string.h> /* * M2P channels. @@ -70,6 +73,9 @@ struct ep93xx_dma_platform_data { static inline bool ep93xx_dma_chan_is_m2p(struct dma_chan *chan) { + if (device_is_compatible(chan->device->dev, "cirrus,ep9301-dma-m2p")) + return true; + return !strcmp(dev_name(chan->device->dev), "ep93xx-dma-m2p"); } |