blob: 89e8c119b7d554874d738fb052d31f983df0edd5 [file] [log] [blame]
Simon Glassa219dae2015-03-05 12:25:31 -07001/*
2 * Copyright (c) 2015 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
8#include <dm.h>
9#include <pci.h>
Simon Glass945cae72015-07-03 18:28:25 -060010#include <asm/pci.h>
Simon Glassa219dae2015-03-05 12:25:31 -070011
Simon Glass945cae72015-07-03 18:28:25 -060012static const struct dm_pci_ops pci_x86_ops = {
13 .read_config = pci_x86_read_config,
14 .write_config = pci_x86_write_config,
Simon Glassa219dae2015-03-05 12:25:31 -070015};
16
Simon Glass945cae72015-07-03 18:28:25 -060017static const struct udevice_id pci_x86_ids[] = {
18 { .compatible = "pci-x86" },
Simon Glassa219dae2015-03-05 12:25:31 -070019 { }
20};
21
22U_BOOT_DRIVER(pci_x86) = {
23 .name = "pci_x86",
24 .id = UCLASS_PCI,
Simon Glass945cae72015-07-03 18:28:25 -060025 .of_match = pci_x86_ids,
26 .ops = &pci_x86_ops,
Simon Glassa219dae2015-03-05 12:25:31 -070027};