AM64X SoC supports PCIe boot, when PCIe controller is configured in
endpoint mode. Now U-Boot has support required for PCIe boot add PCIe
as a valid "bootmedia" to allow booting over PCIe on AM64X.

Signed-off-by: Hrushikesh Salunke <h-salu...@ti.com>
---
 arch/arm/mach-k3/am64x/boot.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-k3/am64x/boot.c b/arch/arm/mach-k3/am64x/boot.c
index ce8ae941be6..dbaf89e3b0d 100644
--- a/arch/arm/mach-k3/am64x/boot.c
+++ b/arch/arm/mach-k3/am64x/boot.c
@@ -80,6 +80,9 @@ static u32 __get_primary_bootmedia(u32 main_devstat)
                        return BOOT_DEVICE_USB;
                return BOOT_DEVICE_DFU;
 
+       case BOOT_DEVICE_PCIE:
+               return BOOT_DEVICE_PCIE;
+
        case BOOT_DEVICE_NOBOOT:
                return BOOT_DEVICE_RAM;
        }
-- 
2.34.1

Reply via email to