diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-05 19:25:31 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 17:11:09 (GMT) |
commit | a219daeafef4df1b219db68c80116d82113c82b2 (patch) | |
tree | c6e22aaa30e02a998a34df18bcf8529321fe062d /drivers/pci/pci_x86.c | |
parent | a33aca10ac962ef54e2c9abbcc17c532f046bd74 (diff) | |
download | u-boot-a219daeafef4df1b219db68c80116d82113c82b2.tar.xz |
dm: x86: pci: Add a PCI driver for driver model
Add a simple x86 PCI driver which uses standard functions provided by the
architecture.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pci/pci_x86.c')
-rw-r--r-- | drivers/pci/pci_x86.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/pci/pci_x86.c b/drivers/pci/pci_x86.c new file mode 100644 index 0000000..901bdca --- /dev/null +++ b/drivers/pci/pci_x86.c @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2015 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <dm.h> +#include <pci.h> + +static const struct dm_pci_ops x86_pci_ops = { +}; + +static const struct udevice_id x86_pci_ids[] = { + { .compatible = "x86,pci" }, + { } +}; + +U_BOOT_DRIVER(pci_x86) = { + .name = "pci_x86", + .id = UCLASS_PCI, + .of_match = x86_pci_ids, + .ops = &x86_pci_ops, +}; |