mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 15:13:02 +00:00
kboot: Only initialize PCIe when booting a kernel payload
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
bd8ae6f4f6
commit
a21e46031e
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "exception.h"
|
||||
#include "malloc.h"
|
||||
#include "memory.h"
|
||||
#include "pcie.h"
|
||||
#include "smp.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
|
@ -301,6 +302,8 @@ int kboot_prepare_dt(void *fdt)
|
|||
|
||||
int kboot_boot(void *kernel)
|
||||
{
|
||||
pcie_init();
|
||||
|
||||
printf("Preparing to boot kernel at %p with fdt at %p\n", kernel, dt);
|
||||
|
||||
next_stage.entry = kernel;
|
||||
|
|
|
@ -83,7 +83,6 @@ void m1n1_main(void)
|
|||
print_info();
|
||||
wdt_disable();
|
||||
pmgr_init();
|
||||
pcie_init();
|
||||
|
||||
printf("Initialization complete.\n");
|
||||
|
||||
|
|
Loading…
Reference in a new issue