2 * Copyright 2014 Google Inc.
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <displayport.h>
12 int display_port_read_edid(struct udevice *dev, u8 *buf, int buf_size)
14 struct dm_display_port_ops *ops = display_port_get_ops(dev);
16 if (!ops || !ops->read_edid)
18 return ops->read_edid(dev, buf, buf_size);
21 int display_port_enable(struct udevice *dev, int panel_bpp,
22 const struct display_timing *timing)
24 struct dm_display_port_ops *ops = display_port_get_ops(dev);
26 if (!ops || !ops->enable)
28 return ops->enable(dev, panel_bpp, timing);
31 UCLASS_DRIVER(display_port) = {
32 .id = UCLASS_DISPLAY_PORT,
33 .name = "display_port",