ptn3460.c 626 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2015 Google, Inc
  4. * Written by Simon Glass <sjg@chromium.org>
  5. */
  6. #include <common.h>
  7. #include <dm.h>
  8. #include <video_bridge.h>
  9. static int ptn3460_attach(struct udevice *dev)
  10. {
  11. debug("%s: %s\n", __func__, dev->name);
  12. return video_bridge_set_active(dev, true);
  13. }
  14. struct video_bridge_ops ptn3460_ops = {
  15. .attach = ptn3460_attach,
  16. };
  17. static const struct udevice_id ptn3460_ids[] = {
  18. { .compatible = "nxp,ptn3460", },
  19. { }
  20. };
  21. U_BOOT_DRIVER(parade_ptn3460) = {
  22. .name = "nmp_ptn3460",
  23. .id = UCLASS_VIDEO_BRIDGE,
  24. .of_match = ptn3460_ids,
  25. .ops = &ptn3460_ops,
  26. };