mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
pci_ep: Add the init function
Some EP deivces need to initialize before RC scan it, e.g. NXP layerscape platform, so add the init function in pci_ep uclass. Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
committed by
Priyanka Jain
parent
118e58e26e
commit
fd00c53fb3
@@ -233,6 +233,15 @@ static int initr_unlock_ram_in_cache(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PCI_ENDPOINT
|
||||
static int initr_pci_ep(void)
|
||||
{
|
||||
pci_ep_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
static int initr_pci(void)
|
||||
{
|
||||
@@ -816,6 +825,9 @@ static init_fnc_t init_sequence_r[] = {
|
||||
#ifdef CONFIG_BITBANGMII
|
||||
initr_bbmii,
|
||||
#endif
|
||||
#ifdef CONFIG_PCI_ENDPOINT
|
||||
initr_pci_ep,
|
||||
#endif
|
||||
#ifdef CONFIG_CMD_NET
|
||||
INIT_FUNC_WATCHDOG_RESET
|
||||
initr_net,
|
||||
|
Reference in New Issue
Block a user