blob: 520ea4649e11c1bcda350f02623bbfee9770f3bb [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glassa219dae2015-03-05 12:25:31 -07002/*
3 * Copyright (c) 2015 Google, Inc
Simon Glassa219dae2015-03-05 12:25:31 -07004 */
5
6#include <common.h>
7#include <dm.h>
8#include <pci.h>
Simon Glass945cae72015-07-03 18:28:25 -06009#include <asm/pci.h>
Simon Glassa219dae2015-03-05 12:25:31 -070010
Simon Glass945cae72015-07-03 18:28:25 -060011static const struct dm_pci_ops pci_x86_ops = {
12 .read_config = pci_x86_read_config,
13 .write_config = pci_x86_write_config,
Simon Glassa219dae2015-03-05 12:25:31 -070014};
15
Simon Glass945cae72015-07-03 18:28:25 -060016static const struct udevice_id pci_x86_ids[] = {
17 { .compatible = "pci-x86" },
Simon Glassa219dae2015-03-05 12:25:31 -070018 { }
19};
20
21U_BOOT_DRIVER(pci_x86) = {
22 .name = "pci_x86",
23 .id = UCLASS_PCI,
Simon Glass945cae72015-07-03 18:28:25 -060024 .of_match = pci_x86_ids,
25 .ops = &pci_x86_ops,
Simon Glassa219dae2015-03-05 12:25:31 -070026};