Merge git://www.denx.de/git/u-boot-marvell
[oweals/u-boot.git] / arch / arm / mach-mvebu / serdes / a38x / ctrl_pex.c
index 06a7715773c92317d910d07afb5cfc284b7d23bb..9e5b647e2555437f0f9dd059d8114063e173fadb 100644 (file)
 #include "ctrl_pex.h"
 #include "sys_env_lib.h"
 
+__weak void board_pex_config(void)
+{
+       /* nothing in this weak default implementation */
+}
+
 int hws_pex_config(const struct serdes_map *serdes_map, u8 count)
 {
        u32 pex_idx, tmp, next_busno, first_busno, temp_pex_reg,
@@ -77,6 +82,9 @@ int hws_pex_config(const struct serdes_map *serdes_map, u8 count)
 
        /* Support gen1/gen2 */
        DEBUG_INIT_FULL_S("Support gen1/gen2\n");
+
+       board_pex_config();
+
        next_busno = 0;
        mdelay(150);
 
@@ -184,7 +192,7 @@ int hws_pex_config(const struct serdes_map *serdes_map, u8 count)
                DEBUG_INIT_S("PCIe, Idx ");
                DEBUG_INIT_D(pex_idx, 1);
                DEBUG_INIT_S
-                       (": Link upgraded to Gen2 based on client cpabilities\n");
+                       (": Link upgraded to Gen2 based on client capabilities\n");
        }
 
        /* Update pex DEVICE ID */