xilinx_dpdma.c 859 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2021 Xilinx Inc.
  4. */
  5. #include <common.h>
  6. #include <cpu_func.h>
  7. #include <dm.h>
  8. #include <dma.h>
  9. #include <dma-uclass.h>
  10. #include <errno.h>
  11. #include <dm/device_compat.h>
  12. /**
  13. * struct zynqmp_dpdma_priv - Private structure
  14. * @dev: Device uclass for video_ops
  15. */
  16. struct zynqmp_dpdma_priv {
  17. struct udevice *dev;
  18. };
  19. static int zynqmp_dpdma_probe(struct udevice *dev)
  20. {
  21. /* Only placeholder for power domain driver */
  22. return 0;
  23. }
  24. static const struct dma_ops zynqmp_dpdma_ops = {
  25. };
  26. static const struct udevice_id zynqmp_dpdma_ids[] = {
  27. { .compatible = "xlnx,zynqmp-dpdma" },
  28. { }
  29. };
  30. U_BOOT_DRIVER(zynqmp_dpdma) = {
  31. .name = "zynqmp_dpdma",
  32. .id = UCLASS_DMA,
  33. .of_match = zynqmp_dpdma_ids,
  34. .ops = &zynqmp_dpdma_ops,
  35. .probe = zynqmp_dpdma_probe,
  36. .priv_auto = sizeof(struct zynqmp_dpdma_priv),
  37. };