]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: theadorable: Configure board for PCIe 2.0 capability
authorStefan Roese <sr@denx.de>
Thu, 25 Aug 2016 14:22:10 +0000 (16:22 +0200)
committerStefan Roese <sr@denx.de>
Sat, 24 Sep 2016 08:00:41 +0000 (10:00 +0200)
Use a board-specific board_sat_r_get() function to configure the board
for PCIe 2.0 capability (e.g. 5GB/s link speed). Otherwise the default
of 2.5GB/s will be established.

Signed-off-by: Stefan Roese <sr@denx.de>
board/theadorable/theadorable.c

index c1db28985ae25abe203850f8369a4a49680ffdd5..d621682d07228d94747a1eb468134fbd51cfa22d 100644 (file)
@@ -126,6 +126,12 @@ MV_BIN_SERDES_CFG *board_serdes_cfg_get(u8 pex_mode)
        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;
+}
+
 int board_early_init_f(void)
 {
        /* Configure MPP */