File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 55
55
#define PCIE_MASK_ENABLE_INTS 0x0f000000
56
56
#define PCIE_CTRL_OFF 0x1a00
57
57
#define PCIE_CTRL_X1_MODE 0x0001
58
+ #define PCIE_CTRL_RC_MODE BIT(1)
58
59
#define PCIE_STAT_OFF 0x1a04
59
60
#define PCIE_STAT_BUS 0xff00
60
61
#define PCIE_STAT_DEV 0x1f0000
@@ -213,7 +214,12 @@ static void mvebu_pcie_setup_wins(struct mvebu_pcie_port *port)
213
214
214
215
static void mvebu_pcie_setup_hw (struct mvebu_pcie_port * port )
215
216
{
216
- u32 cmd , mask ;
217
+ u32 ctrl , cmd , mask ;
218
+
219
+ /* Setup PCIe controller to Root Complex mode. */
220
+ ctrl = mvebu_readl (port , PCIE_CTRL_OFF );
221
+ ctrl |= PCIE_CTRL_RC_MODE ;
222
+ mvebu_writel (port , ctrl , PCIE_CTRL_OFF );
217
223
218
224
/* Disable Root Bridge I/O space, memory space and bus mastering. */
219
225
cmd = mvebu_readl (port , PCIE_CMD_OFF );
You can’t perform that action at this time.
0 commit comments