]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive: initialize PCI on Unmatched
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 25 Jul 2023 10:41:30 +0000 (12:41 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 2 Aug 2023 03:02:33 +0000 (11:02 +0800)
The Unmatched board is typically booted from NVMe which requires PCI.
When dropping to a console PCI is not initialized yet. 'pci enum' has to be
called.

Change the configuration to call  pci_init() in board_init_r().

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Rick Chen <rick@andestech.com>
configs/sifive_unmatched_defconfig

index ffae8655c98957c6c21bd5156ca9dcb7d324c788..867611b6b4ed8c8d82f45be69311548c91e6d52d 100644 (file)
@@ -31,6 +31,7 @@ CONFIG_DISPLAY_CPUINFO=y
 CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_ID_EEPROM=y
+CONFIG_PCI_INIT_R=y
 CONFIG_SPL_MAX_SIZE=0x100000
 CONFIG_SPL_BSS_START_ADDR=0x85000000
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set