From 7bee46fd4057449eef8f698cb2f28219538f2f0a Mon Sep 17 00:00:00 2001
From: Marek Vasut <marek.vasut+renesas@gmail.com>
Date: Sat, 9 May 2020 23:02:33 +0200
Subject: [PATCH] sh: r2dplus: Add pci enum to preboot

The ethernet on r2dplus is on PCI bus, enumerate the PCI early
to get the ethernet operational.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 configs/r2dplus_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig
index 9e6331dc8a..53b7c2e05d 100644
--- a/configs/r2dplus_defconfig
+++ b/configs/r2dplus_defconfig
@@ -8,6 +8,8 @@ CONFIG_TARGET_R2DPLUS=y
 CONFIG_BOOTDELAY=-1
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttySC0,115200"
+CONFIG_USE_PREBOOT=y
+CONFIG_PREBOOT="pci enum"
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_IMLS=y
 CONFIG_CMD_DM=y
-- 
2.39.5