]> git.ipfire.org Git - people/ms/u-boot.git/blame - drivers/video/vesa.c
Convert CONFIG_VIDEO_CT69000 to Kconfig
[people/ms/u-boot.git] / drivers / video / vesa.c
CommitLineData
02c57abd
BM
1/*
2 * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
8#include <dm.h>
9#include <pci.h>
10#include <vbe.h>
11
12static int vesa_video_probe(struct udevice *dev)
13{
14 return vbe_setup_video(dev, NULL);
15}
16
17static const struct udevice_id vesa_video_ids[] = {
18 { .compatible = "vesa-fb" },
19 { }
20};
21
22U_BOOT_DRIVER(vesa_video) = {
23 .name = "vesa_video",
24 .id = UCLASS_VIDEO,
25 .of_match = vesa_video_ids,
26 .probe = vesa_video_probe,
27};
28
29static struct pci_device_id vesa_video_supported[] = {
30 { PCI_DEVICE_CLASS(PCI_CLASS_DISPLAY_VGA << 8, ~0) },
31 { },
32};
33
34U_BOOT_PCI_DEVICE(vesa_video, vesa_video_supported);