blob: 6c03611e80c8e4419bc352408eb1b89250c18e15 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Meng02c57ab2016-10-09 04:14:11 -07002/*
3 * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
Bin Meng02c57ab2016-10-09 04:14:11 -07004 */
5
6#include <common.h>
7#include <dm.h>
8#include <pci.h>
9#include <vbe.h>
10
11static int vesa_video_probe(struct udevice *dev)
12{
13 return vbe_setup_video(dev, NULL);
14}
15
16static const struct udevice_id vesa_video_ids[] = {
17 { .compatible = "vesa-fb" },
18 { }
19};
20
21U_BOOT_DRIVER(vesa_video) = {
22 .name = "vesa_video",
23 .id = UCLASS_VIDEO,
24 .of_match = vesa_video_ids,
25 .probe = vesa_video_probe,
26};
27
28static struct pci_device_id vesa_video_supported[] = {
29 { PCI_DEVICE_CLASS(PCI_CLASS_DISPLAY_VGA << 8, ~0) },
30 { },
31};
32
33U_BOOT_PCI_DEVICE(vesa_video, vesa_video_supported);