All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sh: r2dplus: Enable board_eth_init only for non-DM case
@ 2020-05-09 20:37 Marek Vasut
  2020-05-09 20:37 ` [PATCH 2/2] sh: r2dplus: Switch to DM ETH Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2020-05-09 20:37 UTC (permalink / raw)
  To: u-boot

The board_eth_init() is not used for DM case, enable it only for
the non-DM case. This function should eventually be removed.

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

diff --git a/board/renesas/r2dplus/r2dplus.c b/board/renesas/r2dplus/r2dplus.c
index f2da4686c3..079f778f22 100644
--- a/board/renesas/r2dplus/r2dplus.c
+++ b/board/renesas/r2dplus/r2dplus.c
@@ -45,7 +45,9 @@ void ide_set_reset(int idereset)
 	}
 }
 
+#ifndef CONFIG_DM_ETH
 int board_eth_init(bd_t *bis)
 {
 	return pci_eth_init(bis);
 }
+#endif
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] sh: r2dplus: Switch to DM ETH
  2020-05-09 20:37 [PATCH 1/2] sh: r2dplus: Enable board_eth_init only for non-DM case Marek Vasut
@ 2020-05-09 20:37 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2020-05-09 20:37 UTC (permalink / raw)
  To: u-boot

Enable DM ethernet support for the board, now that rtl8139 is converted.

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

diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig
index 8ae4ba1a1c..1aed84905f 100644
--- a/configs/r2dplus_defconfig
+++ b/configs/r2dplus_defconfig
@@ -27,9 +27,9 @@ CONFIG_DM=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
 CONFIG_SYS_FLASH_CFI=y
+CONFIG_DM_ETH=y
 CONFIG_RTL8139=y
 CONFIG_PCI=y
 CONFIG_DM_PCI=y
-CONFIG_DM_PCI_COMPAT=y
 CONFIG_SCIF_CONSOLE=y
 CONFIG_USE_PRIVATE_LIBGCC=y
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-09 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 20:37 [PATCH 1/2] sh: r2dplus: Enable board_eth_init only for non-DM case Marek Vasut
2020-05-09 20:37 ` [PATCH 2/2] sh: r2dplus: Switch to DM ETH Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.