Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 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 | |
| 8 | #include <common.h> |
| 9 | #include <dm.h> |
| 10 | #include <video_bridge.h> |
| 11 | |
| 12 | static int ptn3460_attach(struct udevice *dev) |
| 13 | { |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 14 | debug("%s: %s\n", __func__, dev->name); |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 15 | |
Masahiro Yamada | bf528cd | 2016-09-06 22:17:33 +0900 | [diff] [blame] | 16 | return video_bridge_set_active(dev, true); |
Simon Glass | 97dd3e5 | 2015-07-02 18:16:10 -0600 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | struct video_bridge_ops ptn3460_ops = { |
| 20 | .attach = ptn3460_attach, |
| 21 | }; |
| 22 | |
| 23 | static const struct udevice_id ptn3460_ids[] = { |
| 24 | { .compatible = "nxp,ptn3460", }, |
| 25 | { } |
| 26 | }; |
| 27 | |
| 28 | U_BOOT_DRIVER(parade_ptn3460) = { |
| 29 | .name = "nmp_ptn3460", |
| 30 | .id = UCLASS_VIDEO_BRIDGE, |
| 31 | .of_match = ptn3460_ids, |
| 32 | .ops = &ptn3460_ops, |
| 33 | }; |