Commit d15aae73 authored by Kevin Hilman's avatar Kevin Hilman Committed by Vinod Koul

dmaengine: ti: convert PSIL to be buildable as module

Combine all the SoC specific files into a single lib that can be
built-in or built as a module.
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20220929234820.940048-4-khilman@baylibre.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 56b0a668
...@@ -56,7 +56,8 @@ config TI_K3_UDMA_GLUE_LAYER ...@@ -56,7 +56,8 @@ config TI_K3_UDMA_GLUE_LAYER
If unsure, say N. If unsure, say N.
config TI_K3_PSIL config TI_K3_PSIL
bool tristate
default TI_K3_UDMA
config TI_DMA_CROSSBAR config TI_DMA_CROSSBAR
bool bool
...@@ -4,11 +4,12 @@ obj-$(CONFIG_TI_EDMA) += edma.o ...@@ -4,11 +4,12 @@ obj-$(CONFIG_TI_EDMA) += edma.o
obj-$(CONFIG_DMA_OMAP) += omap-dma.o obj-$(CONFIG_DMA_OMAP) += omap-dma.o
obj-$(CONFIG_TI_K3_UDMA) += k3-udma.o obj-$(CONFIG_TI_K3_UDMA) += k3-udma.o
obj-$(CONFIG_TI_K3_UDMA_GLUE_LAYER) += k3-udma-glue.o obj-$(CONFIG_TI_K3_UDMA_GLUE_LAYER) += k3-udma-glue.o
obj-$(CONFIG_TI_K3_PSIL) += k3-psil.o \ k3-psil-lib-objs := k3-psil.o \
k3-psil-am654.o \ k3-psil-am654.o \
k3-psil-j721e.o \ k3-psil-j721e.o \
k3-psil-j7200.o \ k3-psil-j7200.o \
k3-psil-am64.o \ k3-psil-am64.o \
k3-psil-j721s2.o \ k3-psil-j721s2.o \
k3-psil-am62.o k3-psil-am62.o
obj-$(CONFIG_TI_K3_PSIL) += k3-psil-lib.o
obj-$(CONFIG_TI_DMA_CROSSBAR) += dma-crossbar.o obj-$(CONFIG_TI_DMA_CROSSBAR) += dma-crossbar.o
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/mutex.h> #include <linux/mutex.h>
...@@ -101,3 +102,4 @@ int psil_set_new_ep_config(struct device *dev, const char *name, ...@@ -101,3 +102,4 @@ int psil_set_new_ep_config(struct device *dev, const char *name,
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(psil_set_new_ep_config); EXPORT_SYMBOL_GPL(psil_set_new_ep_config);
MODULE_LICENSE("GPL v2");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment