Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 Google, Inc |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <dm.h> |
| 9 | #include <video_bridge.h> |
| 10 | |
| 11 | static int ptn3460_attach(struct udevice *dev) |
| 12 | { |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 13 | debug("%s: %s\n", __func__, dev->name); |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 14 | |
Masahiro Yamada | bf528cd | 2016-09-06 22:17:33 +0900 | [diff] [blame] | 15 | return video_bridge_set_active(dev, true); |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | struct video_bridge_ops ptn3460_ops = { |
| 19 | .attach = ptn3460_attach, |
| 20 | }; |
| 21 | |
| 22 | static const struct udevice_id ptn3460_ids[] = { |
| 23 | { .compatible = "nxp,ptn3460", }, |
| 24 | { } |
| 25 | }; |
| 26 | |
| 27 | U_BOOT_DRIVER(parade_ptn3460) = { |
| 28 | .name = "nmp_ptn3460", |
| 29 | .id = UCLASS_VIDEO_BRIDGE, |
| 30 | .of_match = ptn3460_ids, |
| 31 | .ops = &ptn3460_ops, |
| 32 | }; |