arm: mvebu: AXP: Enhance PCIe port capability configuration
authorStefan Roese <sr@denx.de>
Mon, 8 Apr 2019 12:51:49 +0000 (14:51 +0200)
committerStefan Roese <sr@denx.de>
Fri, 12 Apr 2019 05:04:18 +0000 (07:04 +0200)
commit0a590243d17c197fafa52be96db4cfaa7676ce69
tree1d8acef47aa5c0fc26223f207e300ec9e1b37901
parent82a00be35382b537cbe1338ade00252242383a90
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>
arch/arm/mach-mvebu/serdes/axp/high_speed_env_lib.c
board/Synology/ds414/ds414.c
board/maxbcm/maxbcm.c
board/theadorable/theadorable.c