Skip to contentSkip to conversation

HPE GXP: board information and dynamic DTB configuration

PATCH In review Tan Siewert 3 participants 11 messages Jul 23 – Aug 11

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover HPE GXP: board information and dynamic DTB configuration

We have teamed up with HPE to extend and maintain the upstream code for the HPE GXP, a BMC-specific SoC found on HPE ProLiant systems, via an OpenBMC distribution called Canopy [0].

This series adds support to dynamically add the matching runtime FIT configuration based on the server ID, and also to display the board information on an HPE GXP SoC. For querying the data it also requires a GXP-specific EEPROM driver.

The code is based on an implementation written by HPE in a hard-fork downstream that is available as tarball.

[0] https://github.com/canopybmc/canopybmc

---
Marcello Sylvester Bauer (7):
misc: add HPE GXP EEPROM driver
arm: dts: hpe-gxp: enable GXP EEPROM
sysinfo: add HPE GXP sysinfo driver
board: hpe: gxp: dynamic dtb configuration based on server id
board: hpe: gxp: add boardinfo support
board: hpe: gxp: display product name
board: hpe: gxp: configure PCIe device ID in board_init

Tan Siewert (1):
MAINTAINERS: GXP: Add Marcello and Tan

 MAINTAINERS               |   5 ++
 arch/arm/dts/hpe-gxp.dtsi |  41 +++++++++++++++
 board/hpe/gxp/gxp_board.c | 130 ++++++++++++++++++++++++++++++++++++++++++++--
 configs/gxp_defconfig     |   4 ++
 drivers/misc/Kconfig      |   9 ++++
 drivers/misc/Makefile     |   1 +
 drivers/misc/gxp_eeprom.c | 107 ++++++++++++++++++++++++++++++++++++++
 drivers/sysinfo/Kconfig   |   8 +++
 drivers/sysinfo/Makefile  |   1 +
 drivers/sysinfo/gxp.c     | 115 ++++++++++++++++++++++++++++++++++++++++
 10 files changed, 417 insertions(+), 4 deletions(-)

---
base-commit: de02bc0eccb76aec8272abed651c35ab120f4844
change-id: 20260612-9e-gxp-345c4f82b280

Best regards,

Signature · 1 line
Tan Siewert <[email protected]>
#1 lore raw

PATCH 1/8 MAINTAINERS: GXP: Add Marcello and Tan

Add Marcello and myself as maintainers for the HPE GXP architecture, alongside to Jean-Marie and Nick. Both of us work on this SoC in cooperation with HPE and will help maintain it going forward. The maintainership was acked by Jean-Marie in a private conversation.

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index 323b1b172b1..3ecbb50e03a 100644
@@ -335,6 +335,8 @@ F:	arch/arm/mach-histb
 ARM HPE GXP ARCHITECTURE
 M:	Jean-Marie Verdun <[email protected]>
 M:	Nick Hawkins <[email protected]>
+M:	Marcello Sylvester Bauer <[email protected]>
+M:	Tan Siewert <[email protected]>
 S:	Maintained
 F:	arch/arm/dts/hpe-bmc*
 F:	arch/arm/dts/hpe-gxp*
Signature · 1 line
2.53.0
Acked-by Nick Hawkins on v1 1/8
#2 lore raw

RE: [PATCH 1/8] MAINTAINERS: GXP: Add Marcello and Tan

-----Original Message-----
From: Tan Siewert <[email protected]>
Sent: Thursday, July 23, 2026 8:30 AM
To: [email protected]; Verdun, Jean-Marie <[email protected]>; Hawkins, Nick <[email protected]>; [email protected]
Cc: Tom Rini <[email protected]>; Marcello Sylvester Bauer <[email protected]>; Tan Siewert <[email protected]>
Subject: [PATCH 1/8] MAINTAINERS: GXP: Add Marcello and Tan

Add Marcello and myself as maintainers for the HPE GXP architecture, alongside to Jean-Marie and Nick. Both of us work on this SoC in cooperation with HPE and will help maintain it going forward. The maintainership was acked by Jean-Marie in a private conversation.

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index 323b1b172b1..3ecbb50e03a 100644
@@ -335,6 +335,8 @@ F:	arch/arm/mach-histb
 ARM HPE GXP ARCHITECTURE
 M:	Jean-Marie Verdun <[email protected]>
 M:	Nick Hawkins <[email protected]>
+M:	Marcello Sylvester Bauer <[email protected]>
+M:	Tan Siewert <[email protected]>
 S:	Maintained
 F:	arch/arm/dts/hpe-bmc*
 F:	arch/arm/dts/hpe-gxp*
Signature · 1 line
2.53.0
#3 lore raw

PATCH 2/8 misc: add HPE GXP EEPROM driver

In reply to Tan Siewert

From: Marcello Sylvester Bauer <[email protected]>

Add driver providing access to the memory-mapped system information area on HPE GXP BMC SoCs. The 256-byte region at 0xa0017f00 contains board data organized in two 128-byte blocks, each protected by a 16-bit checksum.

---
 MAINTAINERS               |   1 +
 drivers/misc/Kconfig      |   9 ++++
 drivers/misc/Makefile     |   1 +
 drivers/misc/gxp_eeprom.c | 107 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 118 insertions(+)
MAINTAINERS +1 -0
index 3ecbb50e03a..81ebed7e865 100644
@@ -344,6 +344,7 @@ F:	arch/arm/mach-hpe/
 F:	board/hpe/
 F:	configs/gxp_defconfig
 F:	doc/device-tree-bindings/spi/hpe,gxp-spi.yaml
+F:	drivers/misc/gxp_eeprom.c
 F:	drivers/timer/gxp-timer.c
 F:	drivers/spi/gxp_spi.c
 
drivers/misc/Kconfig +9 -0
index 44415f24ae1..5f22bcb330e 100644
@@ -83,6 +83,15 @@ config GATEWORKS_SC
 	  boards to provide a boot watchdog, power control, temperature monitor,
 	  voltage ADCs, and EEPROM.
 
+config GXP_EEPROM
+	bool "HPE GXP EEPROM driver"
+	depends on MISC
+	select NVMEM
+	help
+	  Enable access to the memory-mapped system information area
+	  on HPE GXP BMC SoCs. This region contains board data such as
+	  MAC addresses, serial number, and part number.
+
 config QCOM_GENI
 	bool "Qualcomm Generic Interface (GENI) driver"
 	depends on MISC
drivers/misc/Makefile +1 -0
index e2170212e5a..9ddbe9cd114 100644
@@ -38,6 +38,7 @@ obj-$(CONFIG_FSL_IIM) += fsl_iim.o
 obj-$(CONFIG_FSL_SEC_MON) += fsl_sec_mon.o
 obj-$(CONFIG_$(PHASE_)FS_LOADER) += fs_loader.o
 obj-$(CONFIG_GATEWORKS_SC) += gsc.o
+obj-$(CONFIG_GXP_EEPROM) += gxp_eeprom.o
 obj-$(CONFIG_GDSYS_IOEP) += gdsys_ioep.o
 obj-$(CONFIG_GDSYS_RXAUI_CTRL) += gdsys_rxaui_ctrl.o
 obj-$(CONFIG_GDSYS_SOC) += gdsys_soc.o
drivers/misc/gxp_eeprom.c new file +107 -0

107 lines not on this page · raw message

Signature · 1 line
2.53.0
#4 lore raw

PATCH 3/8 arm: dts: hpe-gxp: enable GXP EEPROM

In reply to Tan Siewert

From: Marcello Sylvester Bauer <[email protected]>

Enable the board information EEPROM in the GXP device tree to collect the MAC address, as well as the serial- and part-number.

---
 arch/arm/dts/hpe-gxp.dtsi | 32 ++++++++++++++++++++++++++++++++
 configs/gxp_defconfig     |  2 ++
 2 files changed, 34 insertions(+)
arch/arm/dts/hpe-gxp.dtsi +32 -0
index cf735b3c4f3..fa174bdc582 100644
@@ -45,6 +45,38 @@
 		ranges;
 		dma-ranges;
 
+		eeprom: eeprom@a0017f00 {
+			compatible = "hpe,gxp-eeprom";
+			reg = <0xa0017f00 0x100>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			bootph-all;
+
+			serial_number: serial-number@1 {
+				reg = <0x01 0x10>;
+			};
+
+			part_number: part-number@6d {
+				reg = <0x6d 0x10>;
+			};
+
+			mac_address0: mac-address@84 {
+				reg = <0x84 0x6>;
+			};
+
+			mac_address1: mac-address@8a {
+				reg = <0x8a 0x6>;
+			};
+
+			pca_serial_number: pca-serial-number@90 {
+				reg = <0x90 0x10>;
+			};
+
+			pca_part_number: pca-part-number@a0 {
+				reg = <0xa0 0x10>;
+			};
+		};
+
 		L2: cache-controller@b0040000 {
 			compatible = "arm,pl310-cache";
 			reg = <0xb0040000 0x1000>;
configs/gxp_defconfig +2 -0
index 7821759f83d..2369b4cd07d 100644
@@ -39,6 +39,8 @@ CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_REDUNDANT=y
 CONFIG_NETCONSOLE=y
 CONFIG_MISC=y
+CONFIG_NVMEM=y
+CONFIG_GXP_EEPROM=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
Signature · 1 line
2.53.0
#5 lore raw

PATCH 4/8 sysinfo: add HPE GXP sysinfo driver

In reply to Tan Siewert

From: Marcello Sylvester Bauer <[email protected]>

Add sysinfo driver for HPE GXP BMC SoCs providing board information. It reads serial and part numbers from nvmem cells defined in the device tree.

---
 MAINTAINERS               |  2 +
 arch/arm/dts/hpe-gxp.dtsi |  7 ++++
 configs/gxp_defconfig     |  1 +
 drivers/sysinfo/Kconfig   |  8 ++++
 drivers/sysinfo/Makefile  |  1 +
 drivers/sysinfo/gxp.c     | 99 +++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 118 insertions(+)
MAINTAINERS +2 -0
index 81ebed7e865..323c0777cd1 100644
@@ -345,6 +345,8 @@ F:	board/hpe/
 F:	configs/gxp_defconfig
 F:	doc/device-tree-bindings/spi/hpe,gxp-spi.yaml
 F:	drivers/misc/gxp_eeprom.c
+F:	drivers/sysinfo/gxp.c
+F:	drivers/sysinfo/gxp.h
 F:	drivers/timer/gxp-timer.c
 F:	drivers/spi/gxp_spi.c
 
arch/arm/dts/hpe-gxp.dtsi +7 -0
index fa174bdc582..9c761a675be 100644
@@ -10,6 +10,13 @@
 	#address-cells = <1>;
 	#size-cells = <1>;
 
+	sysinfo {
+		compatible = "hpe,gxp-sysinfo";
+		nvmem-cells = <&serial_number>, <&part_number>;
+		nvmem-cell-names = "serial-number", "part-number";
+		bootph-all;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
configs/gxp_defconfig +1 -0
index 2369b4cd07d..5501f9aefae 100644
@@ -27,6 +27,7 @@ CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="run spiboot"
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
+CONFIG_SYSINFO=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="gxp# "
 # CONFIG_BOOTM_PLAN9 is not set
drivers/sysinfo/Kconfig +8 -0
index 6922dac9170..00d924a9c15 100644
@@ -67,4 +67,12 @@ config SYSINFO_TQ_EEPROM
 	  Support querying EEPROM of TQ-Systems SOMs to determine board
 	  information.
 
+config SYSINFO_GXP
+	bool "HPE GXP sysinfo driver"
+	depends on ARCH_GXP && GXP_EEPROM
+	default y if ARCH_GXP
+	help
+	  Support querying board information for HPE GXP BMC SoCs.
+	  Uses the GXP EEPROM driver to retrieve serial and part numbers.
+
 endif
drivers/sysinfo/Makefile +1 -0
index d21fb3c2270..ebc239320e7 100644
@@ -10,3 +10,4 @@ obj-$(CONFIG_SYSINFO_RCAR3) += rcar3.o
 obj-$(CONFIG_SYSINFO_SANDBOX) += sandbox.o
 obj-$(CONFIG_SYSINFO_SMBIOS) += smbios.o
 obj-$(CONFIG_SYSINFO_TQ_EEPROM) += tq_eeprom.o
+obj-$(CONFIG_SYSINFO_GXP) += gxp.o
drivers/sysinfo/gxp.c new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
2.53.0
#6 lore raw

PATCH 5/8 board: hpe: gxp: dynamic dtb configuration based on server id

In reply to Tan Siewert

From: Marcello Sylvester Bauer <[email protected]>

Add board_fit_config_name_match() for runtime FIT configuration selection based on server ID register.
Add ft_board_setup() to populate device tree with board properties.

---
 board/hpe/gxp/gxp_board.c | 61 ++++++++++++++++++++++++++++++++++++++++++++---
 configs/gxp_defconfig     |  1 +
 2 files changed, 59 insertions(+), 3 deletions(-)
board/hpe/gxp/gxp_board.c +58 -3
index d94d9b8a19e..b37725761af 100644
@@ -1,22 +1,78 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * GXP timer driver
+ * GXP board support
  *
  * (C) Copyright 2022 Hewlett Packard Enterprise Development LP.
  * Author: Nick Hawkins <[email protected]>
  * Author: Jean-Marie Verdun <[email protected]>
+ *
+ * Copyright (C) 2026 9elements GmbH
  */
 
+#include <linux/bitfield.h>
 #include <linux/sizes.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <dm/uclass.h>
-#include <ram.h>
+#include <fdt_support.h>
+#include <init.h>
+#include <sysinfo.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
 #define ECHI_CMD 0xcefe0010
 
+#define GXP_XREG_BASE		0xd1000000
+#define GXP_XREG_SERVER_ID	GENMASK(23, 8)
+
+static u16 gxp_get_server_id(void)
+{
+	return FIELD_GET(GXP_XREG_SERVER_ID, readl(GXP_XREG_BASE));
+}
+
+int board_fit_config_name_match(const char *name)
+{
+	char expected[16];
+	u16 server_id;
+
+	server_id = gxp_get_server_id();
+	snprintf(expected, sizeof(expected), "gxp-0x%04x", server_id);
+
+	if (strstr(name, expected))
+		return 0;
+
+	return -1;
+}
+
+int ft_board_setup(void *blob, struct bd_info *bd)
+{
+	struct udevice *dev;
+	char str[64];
+	int ret;
+
+	ret = sysinfo_get(&dev);
+	if (ret)
+		return 0;
+
+	ret = sysinfo_detect(dev);
+	if (ret)
+		return 0;
+
+	ret = sysinfo_get_str(dev, SYSID_BOARD_MANUFACTURER, sizeof(str), str);
+	if (!ret)
+		fdt_setprop_string(blob, 0, "manufacturer", str);
+
+	ret = sysinfo_get_str(dev, SYSID_SM_SYSTEM_SERIAL, sizeof(str), str);
+	if (!ret)
+		fdt_setprop_string(blob, 0, "serial-number", str);
+
+	ret = sysinfo_get_str(dev, SYSID_SM_BASEBOARD_PRODUCT, sizeof(str), str);
+	if (!ret)
+		fdt_setprop_string(blob, 0, "part-number", str);
+
+	return 0;
+}
+
 int board_init(void)
 {
 	writel(0x00080002, ECHI_CMD);
@@ -72,4 +128,3 @@ int dram_init(void)
 
 	return 0;
 }
-
configs/gxp_defconfig +1 -0
index 5501f9aefae..fd59fc8e50e 100644
@@ -28,6 +28,7 @@ CONFIG_BOOTCOMMAND="run spiboot"
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_SYSINFO=y
+CONFIG_OF_BOARD_SETUP=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="gxp# "
 # CONFIG_BOOTM_PLAN9 is not set
Signature · 1 line
2.53.0
#7 lore raw

PATCH 6/8 board: hpe: gxp: add boardinfo support

In reply to Tan Siewert

From: Marcello Sylvester Bauer <[email protected]>

Add support to display server identification during boot.

---
 board/hpe/gxp/gxp_board.c | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
board/hpe/gxp/gxp_board.c +29 -0
index b37725761af..4a51ff55797 100644
@@ -30,6 +30,35 @@ static u16 gxp_get_server_id(void)
 	return FIELD_GET(GXP_XREG_SERVER_ID, readl(GXP_XREG_BASE));
 }
 
+int checkboard(void)
+{
+	struct udevice *dev;
+	char str[64];
+	u16 server_id;
+	int ret;
+
+	server_id = gxp_get_server_id();
+	printf("Server ID: 0x%04x\n", server_id);
+
+	ret = sysinfo_get(&dev);
+	if (ret)
+		return 0;
+
+	ret = sysinfo_detect(dev);
+	if (ret)
+		return 0;
+
+	ret = sysinfo_get_str(dev, SYSID_SM_SYSTEM_SERIAL, sizeof(str), str);
+	if (!ret)
+		printf("Serial Number: %s\n", str);
+
+	ret = sysinfo_get_str(dev, SYSID_SM_BASEBOARD_PRODUCT, sizeof(str), str);
+	if (!ret)
+		printf("Part Number: %s\n", str);
+
+	return 0;
+}
+
 int board_fit_config_name_match(const char *name)
 {
 	char expected[16];
Signature · 1 line
2.53.0
#8 lore raw

PATCH 7/8 board: hpe: gxp: display product name

In reply to Tan Siewert

From: Marcello Sylvester Bauer <[email protected]>

Print the product name provided by the Linux device tree during ft_board_setup().

---
 arch/arm/dts/hpe-gxp.dtsi |  6 ++++--
 board/hpe/gxp/gxp_board.c | 39 ++++++++++++++++++++++++++++++++++++---
 drivers/sysinfo/gxp.c     | 22 +++++++++++++++++++---
 3 files changed, 59 insertions(+), 8 deletions(-)
arch/arm/dts/hpe-gxp.dtsi +4 -2
index 9c761a675be..66ddbd924f7 100644
@@ -12,8 +12,10 @@
 
 	sysinfo {
 		compatible = "hpe,gxp-sysinfo";
-		nvmem-cells = <&serial_number>, <&part_number>;
-		nvmem-cell-names = "serial-number", "part-number";
+		nvmem-cells = <&serial_number>, <&part_number>,
+			      <&pca_serial_number>, <&pca_part_number>;
+		nvmem-cell-names = "serial-number", "part-number",
+				   "pca-serial-number", "pca-part-number";
 		bootph-all;
 	};
 
board/hpe/gxp/gxp_board.c +36 -3
index 4a51ff55797..0cd05c00079 100644
@@ -73,6 +73,17 @@ int board_fit_config_name_match(const char *name)
 	return -1;
 }
 
+static void ft_board_show_product(void *blob)
+{
+	if (CONFIG_IS_ENABLED(DISPLAY_BOARDINFO)) {
+		const char *model;
+
+		model = fdt_getprop(blob, 0, "model", NULL);
+		if (model)
+			printf("Product: %s\n", model);
+	}
+}
+
 int ft_board_setup(void *blob, struct bd_info *bd)
 {
 	struct udevice *dev;
@@ -81,11 +92,11 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
 	ret = sysinfo_get(&dev);
 	if (ret)
-		return 0;
+		goto skip_sysinfo;
 
 	ret = sysinfo_detect(dev);
 	if (ret)
-		return 0;
+		goto skip_sysinfo;
 
 	ret = sysinfo_get_str(dev, SYSID_BOARD_MANUFACTURER, sizeof(str), str);
 	if (!ret)
@@ -95,10 +106,32 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 	if (!ret)
 		fdt_setprop_string(blob, 0, "serial-number", str);
 
-	ret = sysinfo_get_str(dev, SYSID_SM_BASEBOARD_PRODUCT, sizeof(str), str);
+	ret = sysinfo_get_str(dev, SYSID_SM_SYSTEM_PRODUCT, sizeof(str), str);
 	if (!ret)
 		fdt_setprop_string(blob, 0, "part-number", str);
 
+	/* Populate baseboard (PCA) properties in a subnode */
+	int bb_off = fdt_add_subnode(blob, 0, "baseboard");
+
+	if (bb_off >= 0) {
+		fdt_setprop_string(blob, bb_off, "compatible",
+				   "hpe,gxp-baseboard");
+
+		ret = sysinfo_get_str(dev, SYSID_SM_BASEBOARD_SERIAL,
+				      sizeof(str), str);
+		if (!ret)
+			fdt_setprop_string(blob, bb_off, "serial-number", str);
+
+		ret = sysinfo_get_str(dev, SYSID_SM_BASEBOARD_PRODUCT,
+				      sizeof(str), str);
+		if (!ret)
+			fdt_setprop_string(blob, bb_off, "part-number", str);
+	}
+
+skip_sysinfo:
+	if (CONFIG_IS_ENABLED(DISPLAY_BOARDINFO))
+		ft_board_show_product(blob);
+
 	return 0;
 }
 
drivers/sysinfo/gxp.c +19 -3
index a1f33be11df..1d242239eb4 100644
@@ -15,12 +15,16 @@
 
 /**
  * struct gxp_sysinfo_priv - GXP sysinfo private data
- * @serial_cell: NVMEM cell for serial number
- * @part_cell: NVMEM cell for part number
+ * @serial_cell: NVMEM cell for system serial number
+ * @part_cell: NVMEM cell for system part number
+ * @pca_serial_cell: NVMEM cell for baseboard (PCA) serial number
+ * @pca_part_cell: NVMEM cell for baseboard (PCA) part number
  */
 struct gxp_sysinfo_priv {
 	struct nvmem_cell serial_cell;
 	struct nvmem_cell part_cell;
+	struct nvmem_cell pca_serial_cell;
+	struct nvmem_cell pca_part_cell;
 };
 
 static int gxp_sysinfo_detect(struct udevice *dev)
@@ -47,11 +51,21 @@ static int gxp_sysinfo_get_str(struct udevice *dev, int id, size_t size,
 			return -ENODEV;
 		cell = &priv->serial_cell;
 		break;
-	case SYSID_SM_BASEBOARD_PRODUCT:
+	case SYSID_SM_SYSTEM_PRODUCT:
 		if (!priv->part_cell.nvmem)
 			return -ENODEV;
 		cell = &priv->part_cell;
 		break;
+	case SYSID_SM_BASEBOARD_SERIAL:
+		if (!priv->pca_serial_cell.nvmem)
+			return -ENODEV;
+		cell = &priv->pca_serial_cell;
+		break;
+	case SYSID_SM_BASEBOARD_PRODUCT:
+		if (!priv->pca_part_cell.nvmem)
+			return -ENODEV;
+		cell = &priv->pca_part_cell;
+		break;
 	default:
 		return -EINVAL;
 	}
@@ -74,6 +88,8 @@ static int gxp_sysinfo_probe(struct udevice *dev)
 
 	nvmem_cell_get_by_name(dev, "serial-number", &priv->serial_cell);
 	nvmem_cell_get_by_name(dev, "part-number", &priv->part_cell);
+	nvmem_cell_get_by_name(dev, "pca-serial-number", &priv->pca_serial_cell);
+	nvmem_cell_get_by_name(dev, "pca-part-number", &priv->pca_part_cell);
 
 	return 0;
 }
Signature · 1 line
2.53.0
#9 lore raw

PATCH 8/8 board: hpe: gxp: configure PCIe device ID in board_init

In reply to Tan Siewert

From: Marcello Sylvester Bauer <[email protected]>

Write the BMC's PCIe device ID (0x03D8) to the FN2 pcie_dev_id register during board_init.

---
 board/hpe/gxp/gxp_board.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
board/hpe/gxp/gxp_board.c +6 -1
index 0cd05c00079..032554649b2 100644
@@ -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;
 }
 
Signature · 1 line
2.53.0
#10 lore raw
In reply to Tan Siewert
Quoted 10 lines · Tan Siewert

We have teamed up with HPE to extend and maintain the upstream code for the HPE GXP, a BMC-specific SoC found on HPE ProLiant systems, via an OpenBMC distribution called Canopy [0].

This series adds support to dynamically add the matching runtime FIT configuration based on the server ID, and also to display the board information on an HPE GXP SoC. For querying the data it also requires a GXP-specific EEPROM driver.

[...]

Applied to u-boot/next, thanks!

[1/8] MAINTAINERS: GXP: Add Marcello and Tan

      commit: f4bfc451ec34db9d3c7ec66bebef88e20b712265
[2/8] misc: add HPE GXP EEPROM driver
      commit: 2b1309286571ff761f356d51c3903c4650adbdd0
[3/8] arm: dts: hpe-gxp: enable GXP EEPROM
      commit: 9cc25e33cc5b06bbc12ac6bbf28ccaabd8a44a63
[4/8] sysinfo: add HPE GXP sysinfo driver
      commit: d44c3a7bca77533427dac117507659e22d5929ac
[5/8] board: hpe: gxp: dynamic dtb configuration based on server id
      commit: cdf6ddb420891c68509fd0cfe7c2b3acd045085a
[6/8] board: hpe: gxp: add boardinfo support
      commit: 732957df8c10a0ff79bbc67f845aa67ac2e8f2e4
[7/8] board: hpe: gxp: display product name
      commit: 8a5b0750f98af2ac70f14834297e92301b693c71
[8/8] board: hpe: gxp: configure PCIe device ID in board_init
      commit: 338d2b47463487666f54d6d9d9f9263ebaff5e8b
Signature · 1 line
Tom