Commit ce2cb1d3ed92e91b24db516802be3688f7c28e26
Committed by
Luka Perkov
1 parent
41e705ac79
Exists in
v2017.01-smarct4x
and in
30 other branches
arm: mvebu: db-88f6820-gp: Enable PCI support
This patch enabled the MVEBU PCIe support on the db-88f6820-gp A38x 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> Cc: Dirk Eibach <eibach@gdsys.de>
Showing 2 changed files with 15 additions and 0 deletions Side-by-side Diff
board/Marvell/db-88f6820-gp/db-88f6820-gp.c
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | #include <common.h> |
8 | 8 | #include <i2c.h> |
9 | 9 | #include <miiphy.h> |
10 | +#include <netdev.h> | |
10 | 11 | #include <asm/io.h> |
11 | 12 | #include <asm/arch/cpu.h> |
12 | 13 | #include <asm/arch/soc.h> |
... | ... | @@ -129,5 +130,11 @@ |
129 | 130 | puts("Board: Marvell DB-88F6820-GP\n"); |
130 | 131 | |
131 | 132 | return 0; |
133 | +} | |
134 | + | |
135 | +int board_eth_init(bd_t *bis) | |
136 | +{ | |
137 | + cpu_eth_init(bis); /* Built in controller(s) come first */ | |
138 | + return pci_eth_init(bis); | |
132 | 139 | } |
include/configs/db-88f6820-gp.h
... | ... | @@ -41,6 +41,7 @@ |
41 | 41 | #define CONFIG_CMD_FS_GENERIC |
42 | 42 | #define CONFIG_CMD_I2C |
43 | 43 | #define CONFIG_CMD_MMC |
44 | +#define CONFIG_CMD_PCI | |
44 | 45 | #define CONFIG_CMD_PING |
45 | 46 | #define CONFIG_CMD_SCSI |
46 | 47 | #define CONFIG_CMD_SF |
... | ... | @@ -105,6 +106,13 @@ |
105 | 106 | #define CONFIG_PHY_ADDR { 1, 0 } |
106 | 107 | #define CONFIG_SYS_NETA_INTERFACE_TYPE PHY_INTERFACE_MODE_RGMII |
107 | 108 | #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */ |
109 | + | |
110 | +/* PCIe support */ | |
111 | +#define CONFIG_PCI | |
112 | +#define CONFIG_PCI_MVEBU | |
113 | +#define CONFIG_PCI_PNP | |
114 | +#define CONFIG_PCI_SCAN_SHOW | |
115 | +#define CONFIG_E1000 /* enable Intel E1000 support for testing */ | |
108 | 116 | |
109 | 117 | #define CONFIG_SYS_CONSOLE_INFO_QUIET /* don't print console @ startup */ |
110 | 118 | #define CONFIG_SYS_ALT_MEMTEST |