diff options
author | 2016-03-10 14:44:13 -0600 | |
---|---|---|
committer | 2016-03-10 14:44:13 -0600 | |
commit | c1678ffcdea25afe4fbbebfab13d65a7db5458fb (patch) | |
tree | 41be9cd7cef62752ad396046315ba633258842cd /arch/arc/kernel/pcibios.c | |
parent | PCI: designware: Remove PCI_PROBE_ONLY handling (diff) | |
download | linux-dev-c1678ffcdea25afe4fbbebfab13d65a7db5458fb.tar.xz linux-dev-c1678ffcdea25afe4fbbebfab13d65a7db5458fb.zip |
ARC: Add PCI support
Add PCI support to ARC and update drivers/pci Makefile enabling the ARC
arch to use the generic PCI setup functions.
[bhelgaas: fold in Joao's pci-dma-compat.h & pci-bridge.h build fix (I
should have caught this myself, sorry]
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/pcibios.c')
-rw-r--r-- | arch/arc/kernel/pcibios.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arc/kernel/pcibios.c b/arch/arc/kernel/pcibios.c new file mode 100644 index 000000000000..72e1d73d0bd6 --- /dev/null +++ b/arch/arc/kernel/pcibios.c @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2014-2015 Synopsys, Inc. (www.synopsys.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include <linux/pci.h> + +/* + * We don't have to worry about legacy ISA devices, so nothing to do here + */ +resource_size_t pcibios_align_resource(void *data, const struct resource *res, + resource_size_t size, resource_size_t align) +{ + return res->start; +} + +void pcibios_fixup_bus(struct pci_bus *bus) +{ +} |