mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-03 04:51:35 +02:00
ppc/8xxx: Don't use pci_cfg on FSL_CORENET platforms
The FSL_CORENET platforms use a completely different means to determine which PCIe port is enabled as well as if its a host or agent/end-point. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
11588b5dc4
commit
178e39e199
@ -210,10 +210,12 @@ static struct pci_info pci_config_info[] =
|
|||||||
.cfg = (1 << 2) | (1 << 4),
|
.cfg = (1 << 2) | (1 << 4),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
#elif defined(CONFIG_FSL_CORENET)
|
||||||
#else
|
#else
|
||||||
#error Need to define pci_config_info for processor
|
#error Need to define pci_config_info for processor
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_FSL_CORENET
|
||||||
int is_fsl_pci_agent(enum law_trgt_if trgt, u32 host_agent)
|
int is_fsl_pci_agent(enum law_trgt_if trgt, u32 host_agent)
|
||||||
{
|
{
|
||||||
return ((1 << host_agent) & pci_config_info[trgt].agent);
|
return ((1 << host_agent) & pci_config_info[trgt].agent);
|
||||||
@ -223,3 +225,4 @@ int is_fsl_pci_cfg(enum law_trgt_if trgt, u32 io_sel)
|
|||||||
{
|
{
|
||||||
return ((1 << io_sel) & pci_config_info[trgt].cfg);
|
return ((1 << io_sel) & pci_config_info[trgt].cfg);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user