projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f712f2
)
arm64: mvebu: Trigger PCI devices scan at early init stage
author
Konstantin Porotchkin
<
[email protected]
>
Wed, 5 Apr 2017 14:42:33 +0000
(17:42 +0300)
committer
Stefan Roese
<
[email protected]
>
Tue, 9 May 2017 11:38:18 +0000
(13:38 +0200)
Add PCIe initialization at early init stage.
This operation has a side effect of detecting all PCIe
plug-in cards, so the operator is not obligated to issue
"pci enum" command though CLI for this purpose.
Signed-off-by: Konstantin Porotchkin <
[email protected]
>
Cc: Stefan Roese <
[email protected]
>
Cc: Igal Liberman <
[email protected]
>
Cc: Nadav Haklai <
[email protected]
>
Reviewed-by: Stefan Roese <
[email protected]
>
arch/arm/mach-mvebu/arm64-common.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-mvebu/arm64-common.c
b/arch/arm/mach-mvebu/arm64-common.c
index 2ef5726905dedfa240e087eeb9c1006b178a8dea..c2c176e3d44f5274dc81c31c87ee7bdf01895d30 100644
(file)
--- a/
arch/arm/mach-mvebu/arm64-common.c
+++ b/
arch/arm/mach-mvebu/arm64-common.c
@@
-8,6
+8,7
@@
#include <dm.h>
#include <fdtdec.h>
#include <libfdt.h>
+#include <pci.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/arch/cpu.h>
@@
-147,5
+148,10
@@
int arch_early_init_r(void)
/* Cause the SATA device to do its early init */
uclass_first_device(UCLASS_AHCI, &dev);
+#ifdef CONFIG_DM_PCI
+ /* Trigger PCIe devices detection */
+ pci_init();
+#endif
+
return 0;
}