[U-Boot] [PATCH 2/3] arm: mvebu: db-mv784mp-gp: Enable PCI support
Stefan Roese
sr at denx.de
Tue Aug 11 17:14:54 CEST 2015
This patch enabled the MVEBU PCIe support on the db-mv784mp-gp AXP
eval board. It also enabled the Intel E1000 driver support and
adds the initialization of PCIe network controllers to the
board code.
Signed-off-by: Stefan Roese <sr at denx.de>
Cc: Anton Schubert <anton.schubert at gmx.de>
Cc: Luka Perkov <luka.perkov at sartura.hr>
---
board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c | 7 +++++++
include/configs/db-mv784mp-gp.h | 8 ++++++++
2 files changed, 15 insertions(+)
diff --git a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
index 00ca878..84e3e96 100644
--- a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
+++ b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <miiphy.h>
+#include <netdev.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
@@ -82,6 +83,12 @@ int checkboard(void)
return 0;
}
+int board_eth_init(bd_t *bis)
+{
+ cpu_eth_init(bis); /* Built in controller(s) come first */
+ return pci_eth_init(bis);
+}
+
#ifdef CONFIG_RESET_PHY_R
/* Configure and enable MV88E1545 PHY */
void reset_phy(void)
diff --git a/include/configs/db-mv784mp-gp.h b/include/configs/db-mv784mp-gp.h
index 2b177d7..a503465 100644
--- a/include/configs/db-mv784mp-gp.h
+++ b/include/configs/db-mv784mp-gp.h
@@ -33,6 +33,7 @@
#define CONFIG_CMD_ENV
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IDE
+#define CONFIG_CMD_PCI
#define CONFIG_CMD_PING
#define CONFIG_CMD_SF
#define CONFIG_CMD_SPI
@@ -94,6 +95,13 @@
#define CONFIG_DOS_PARTITION
#endif /* CONFIG_CMD_IDE */
+/* PCIe support */
+#define CONFIG_PCI
+#define CONFIG_PCI_MVEBU
+#define CONFIG_PCI_PNP
+#define CONFIG_PCI_SCAN_SHOW
+#define CONFIG_E1000 /* enable Intel E1000 support for testing */
+
/*
* mv-common.h should be defined after CMD configs since it used them
* to enable certain macros
--
2.4.8
More information about the U-Boot
mailing list