summaryrefslogtreecommitdiff
path: root/board/theadorable
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2019-04-08 14:51:49 +0200
committerStefan Roese <sr@denx.de>2019-04-12 07:04:18 +0200
commit0a590243d17c197fafa52be96db4cfaa7676ce69 (patch)
tree1d8acef47aa5c0fc26223f207e300ec9e1b37901 /board/theadorable
parent82a00be35382b537cbe1338ade00252242383a90 (diff)
arm: mvebu: AXP: Enhance PCIe port capability configuration
This patch enables the PCIe port specific link capabilities configuration for Armada XP. The weak function board_sat_r_get() was used to return a common flag for PCIe Gen1 vs Gen2 capability for all PCIe ports. This is now changed with this patch to return a bit per PCIe port (4 bits in this case, bit 0 for PCIe port 0, etc). The theadorable board uses this new feature to configure PCIe port 0 as Gen1 and all other PCIe ports as Gen2 capable. All other AXP boards using this function are not changed in the configuration and still configure all ports as PCIe Gen2. This patch also removes the parameter "pex_mode" from board_serdes_cfg_get() as this parameter was not used in any of the implementations. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'board/theadorable')
-rw-r--r--board/theadorable/theadorable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/theadorable/theadorable.c b/board/theadorable/theadorable.c
index 7b9c706cd4..d42350319c 100644
--- a/board/theadorable/theadorable.c
+++ b/board/theadorable/theadorable.c
@@ -132,15 +132,15 @@ MV_DRAM_MODES *ddr3_get_static_ddr_mode(void)
return &board_ddr_modes[0];
}
-MV_BIN_SERDES_CFG *board_serdes_cfg_get(u8 pex_mode)
+MV_BIN_SERDES_CFG *board_serdes_cfg_get(void)
{
return &theadorable_serdes_cfg[0];
}
u8 board_sat_r_get(u8 dev_num, u8 reg)
{
- /* Bit 0 enables PCI 2.0 link capabilities instead of PCI 1.x */
- return 0x01;
+ /* Bit x enables PCI 2.0 link capabilities instead of PCI 1.x */
+ return 0xe; /* PEX port 0 is PCIe Gen1, PEX port 1..3 PCIe Gen2 */
}
int board_early_init_f(void)