Re: How to use Xilinx ZynqMP DMA Engine driver?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 03, 2016 at 01:19:37PM +0530, Muni Sekhar wrote:
> Hi All,
> 
> I see that following dma engine driver uses MODULE_DEVICE_TABLE with ‘type=of’.
> What does ‘type=of’ mean? How to trigger this driver’s probe and
> remove to be called?

it means open firmware. This is specfied here by Device tree, so if you have this
device you need to have the bindings as well.

see Documentation/devicetree/bindings/dma/xilinx/zynqmp_dma.txt

> 
> 
> 
> http://lxr.linux.no/linux+v4.8/drivers/dma/xilinx/zynqmp_dma.c
> 
> 
> 
> static const struct of_device_id zynqmp_dma_of_match[] = {
> 
>         { .compatible = "xlnx,zynqmp-dma-1.0", },
> 
>         {}
> 
> };
> 
> MODULE_DEVICE_TABLE(of, zynqmp_dma_of_match);
> 
> 
> 
> static struct platform_driver zynqmp_dma_driver = {
> 
>         .driver = {
> 
>                 .name = "xilinx-zynqmp-dma",
> 
>                 .of_match_table = zynqmp_dma_of_match,
> 
>         },
> 
>         .probe = zynqmp_dma_probe,
> 
>         .remove = zynqmp_dma_remove,
> 
> };
> 
> 
> 
> module_platform_driver(zynqmp_dma_driver);
> 
> 
> 
> MODULE_AUTHOR("Xilinx, Inc.");
> 
> MODULE_DESCRIPTION("Xilinx ZynqMP DMA driver");
> 
> 
> -- 
> Thanks,
> Sekhar
> --
> To unsubscribe from this list: send the line "unsubscribe dmaengine" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux