From c3a53742f3ae16443ee80dfe3c525a863c577e40 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Fri, 16 Apr 2021 08:24:34 +0200 Subject: PCI: support PCI BIOS preassigned buses When running under UEFI, barebox should no redo PCI enumeration, because the UEFI implementation will likely already have drivers that won't cope with e.g. BAR addresses changing. The user-visible effect of this is that likely the framebuffer will stop working because the UEFI driver won't be able to access it any longer. Support this configuration by changing the PCI code to consult the new pcibios_assign_all_busses(). When it's true, there is no change to previous behavior. When it's false, reconfiguration is omitted and instead current configuration is read back from the bus. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20210416062436.332665-3-ahmad@a3f.at Signed-off-by: Sascha Hauer --- arch/mips/include/asm/pci.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 arch/mips/include/asm/pci.h (limited to 'arch/mips') diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h new file mode 100644 index 0000000000..d7419cabe7 --- /dev/null +++ b/arch/mips/include/asm/pci.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_PCI_H +#define __ASM_PCI_H + +#define pcibios_assign_all_busses() 1 + +#endif -- cgit v1.2.3