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