drivers: pci: separate SPL & U-Boot proper build

It fixes SPL compile issue after PCI enabled.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic3d4a464defd2074be083effd25f513ae19d2e01
This commit is contained in:
Joseph Chen 2020-12-29 15:52:09 +08:00 committed by Jianhong Chen
parent ee7b0fb8d5
commit 00f93bdf98
2 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ int ns16550_serial_ofdata_to_platdata(struct udevice *dev)
/* try Processor Local Bus device first */
addr = dev_read_addr(dev);
#if defined(CONFIG_PCI) && defined(CONFIG_DM_PCI)
#if defined(CONFIG_PCI) && CONFIG_IS_ENABLED(DM_PCI)
if (addr == FDT_ADDR_T_NONE) {
/* then try pci device */
struct fdt_pci_addr pci_addr;

View File

@ -186,7 +186,7 @@ fdt_addr_t fdtdec_get_addr(const void *blob, int node,
return fdtdec_get_addr_size(blob, node, prop_name, NULL);
}
#if defined(CONFIG_PCI) && defined(CONFIG_DM_PCI)
#if defined(CONFIG_PCI) && CONFIG_IS_ENABLED(DM_PCI)
int fdtdec_get_pci_addr(const void *blob, int node, enum fdt_pci_space type,
const char *prop_name, struct fdt_pci_addr *addr)
{