diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-03-30 21:11:36 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-04-07 22:48:55 +0000 |
commit | 2789952302b0d9df909f89c7caf48ee1a5a4f784 (patch) | |
tree | eab744933c3df4d67c0da5705830e92a7d6bb736 /src | |
parent | 5f5ca0c6f1b552d9f1bea58ff300926843d39547 (diff) |
vc/amd/fsp/cezanne/FspmUpd: use arrays for DXIO/DDI descriptors
This allows coreboot to easily iterate over the descriptors.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I2ecb3b543f90b8c6a957794f0c55b0ba5c72d59d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51955
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vendorcode/amd/fsp/cezanne/FspmUpd.h | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/src/vendorcode/amd/fsp/cezanne/FspmUpd.h b/src/vendorcode/amd/fsp/cezanne/FspmUpd.h index 0ba9f8993e..e51cbef143 100644 --- a/src/vendorcode/amd/fsp/cezanne/FspmUpd.h +++ b/src/vendorcode/amd/fsp/cezanne/FspmUpd.h @@ -9,6 +9,9 @@ #include <FspUpd.h> +#define FSPM_UPD_DXIO_DESCRIPTOR_COUNT 14 +#define FSPM_UPD_DDI_DESCRIPTOR_COUNT 5 + /** Fsp M Configuration **/ typedef struct __packed { @@ -21,26 +24,9 @@ typedef struct __packed { /** Offset 0x0074**/ uint32_t serial_port_baudrate; /** Offset 0x0078**/ uint32_t serial_port_refclk; /** Offset 0x007C**/ uint32_t serial_reserved; - /** Offset 0x0080**/ uint8_t dxio_descriptor0[52]; - /** Offset 0x00B4**/ uint8_t dxio_descriptor1[52]; - /** Offset 0x00E8**/ uint8_t dxio_descriptor2[52]; - /** Offset 0x011C**/ uint8_t dxio_descriptor3[52]; - /** Offset 0x0150**/ uint8_t dxio_descriptor4[52]; - /** Offset 0x0184**/ uint8_t dxio_descriptor5[52]; - /** Offset 0x01B8**/ uint8_t dxio_descriptor6[52]; - /** Offset 0x01EC**/ uint8_t dxio_descriptor7[52]; - /** Offset 0x0220**/ uint8_t dxio_descriptor8[52]; - /** Offset 0x0254**/ uint8_t dxio_descriptor9[52]; - /** Offset 0x0288**/ uint8_t dxio_descriptor10[52]; - /** Offset 0x02BC**/ uint8_t dxio_descriptor11[52]; - /** Offset 0x02F0**/ uint8_t dxio_descriptor12[52]; - /** Offset 0x0324**/ uint8_t dxio_descriptor13[52]; + /** Offset 0x0080**/ uint8_t dxio_descriptor[FSPM_UPD_DXIO_DESCRIPTOR_COUNT][52]; /** Offset 0x0358**/ uint8_t pcie_reserved[52]; - /** Offset 0x038C**/ uint32_t ddi_descriptor0; - /** Offset 0x0390**/ uint32_t ddi_descriptor1; - /** Offset 0x0394**/ uint32_t ddi_descriptor2; - /** Offset 0x0398**/ uint32_t ddi_descriptor3; - /** Offset 0x039C**/ uint32_t ddi_descriptor4; + /** Offset 0x038C**/ uint32_t ddi_descriptor[FSPM_UPD_DDI_DESCRIPTOR_COUNT]; /** Offset 0x03A0**/ uint8_t ddi_reserved[6]; /** Offset 0x03A6**/ uint8_t ccx_down_core_mode; /** Offset 0x03A7**/ uint8_t ccx_disable_smt; |