]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: mvebu: db-mv784mp-gp: Enable PCI support
authorStefan Roese <sr@denx.de>
Tue, 11 Aug 2015 07:36:15 +0000 (09:36 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:24:14 +0000 (10:24 +0200)
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@denx.de>
Cc: Anton Schubert <anton.schubert@gmx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
include/configs/db-mv784mp-gp.h

index 78c7b7e4e6bdf76f13a10205edb1fe5fcd2c51e2..d7aa1499adf00aa6484107d8d9c6f7c70ebd2a9c 100644 (file)
@@ -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>
@@ -80,6 +81,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)
index f4e669dd7953fdd048077ebaa3bc285a1a738139..eec2ba933ffe351e064c0c1d96ba7fd4cf6ab115 100644 (file)
@@ -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
 #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