pci: Enable PCI_MAP_SYSTEM_MEMORY when ARCH_MAP_SYSMEM is not set
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 17 May 2024 18:14:51 +0000 (19:14 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 22 Apr 2025 21:08:47 +0000 (15:08 -0600)
For MIPS we are always looking gd->dram in virtual address so
PCI_MAP_SYSTEM_MEMORY should always be enabled.

If in future we ever want to make it physical we have to set
ARCH_MAP_SYSMEM.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/pci/Kconfig

index 289d1de..14f6067 100644 (file)
@@ -67,6 +67,7 @@ config PCI_CONFIG_HOST_BRIDGE
 config PCI_MAP_SYSTEM_MEMORY
        bool "Map local system memory from a virtual base address"
        depends on MIPS
+       default y if !ARCH_MAP_SYSMEM
        help
          Say Y if base address of system memory is being used as a virtual address
          instead of a physical address (e.g. on MIPS). The PCI core will then remap