blob: 4760f04108f7e46e6e183f11d580352aa63a8b0a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glass97dd3e52015-07-02 18:16:10 -06002/*
3 * Copyright (C) 2015 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
Simon Glass97dd3e52015-07-02 18:16:10 -06005 */
6
7#include <common.h>
8#include <dm.h>
Simon Glass0f2af882020-05-10 11:40:05 -06009#include <log.h>
Simon Glass97dd3e52015-07-02 18:16:10 -060010#include <video_bridge.h>
11
12static int ptn3460_attach(struct udevice *dev)
13{
Simon Glass97dd3e52015-07-02 18:16:10 -060014 debug("%s: %s\n", __func__, dev->name);
Simon Glass97dd3e52015-07-02 18:16:10 -060015
Masahiro Yamadabf528cd2016-09-06 22:17:33 +090016 return video_bridge_set_active(dev, true);
Simon Glass97dd3e52015-07-02 18:16:10 -060017}
18
19struct video_bridge_ops ptn3460_ops = {
20 .attach = ptn3460_attach,
21};
22
23static const struct udevice_id ptn3460_ids[] = {
24 { .compatible = "nxp,ptn3460", },
25 { }
26};
27
28U_BOOT_DRIVER(parade_ptn3460) = {
29 .name = "nmp_ptn3460",
30 .id = UCLASS_VIDEO_BRIDGE,
31 .of_match = ptn3460_ids,
32 .ops = &ptn3460_ops,
33};