From: Marcello Sylvester Bauer <[email protected]> Write the BMC's PCIe device ID (0x03D8) to the FN2 pcie_dev_id register during board_init.
Signed-off-by: Marcello Sylvester Bauer <[email protected]> Signed-off-by: Tan Siewert <[email protected]> --- board/hpe/gxp/gxp_board.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/board/hpe/gxp/gxp_board.c b/board/hpe/gxp/gxp_board.c index 0cd05c00079..032554649b2 100644 --- a/board/hpe/gxp/gxp_board.c +++ b/board/hpe/gxp/gxp_board.c @@ -20,7 +20,9 @@ DECLARE_GLOBAL_DATA_PTR; -#define ECHI_CMD 0xcefe0010 +#define ECHI_CMD 0xcefe0010 +#define GXP_FN2_PCIE_DEV_ID 0x802f002e +#define GXP_PCIE_DEV_ID_VAL 0x03d8 #define GXP_XREG_BASE 0xd1000000 #define GXP_XREG_SERVER_ID GENMASK(23, 8) @@ -139,6 +141,9 @@ int board_init(void) { writel(0x00080002, ECHI_CMD); + /* Configure PCIe device ID presented to the host */ + writew(GXP_PCIE_DEV_ID_VAL, GXP_FN2_PCIE_DEV_ID); + return 0; } -- 2.53.0
