ptn3460.c 629 B

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