diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-07-13 00:58:36 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-07-14 16:49:37 +0000 |
commit | d1c33aeef4f8effbaacc54be99f9b7c5dd9fbcc5 (patch) | |
tree | 8eb76945fa05c9ee9dec2fe8aad0ffc732510e77 /src/mainboard/amd/birman | |
parent | e479b3e356fae73b10deb147005c2e2a6be72d91 (diff) |
mb/amd,google/*/port_descriptors: use dxio_link_hotplug_type enum values
Use the proper dxio_link_hotplug_type enum values for the link_hotplug
field in the DXIO descriptors to replace the magic values in the code.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ieb1513737e6022a668287dc80a39d96cda2b18d5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76439
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/amd/birman')
-rw-r--r-- | src/mainboard/amd/birman/port_descriptors_glinda.c | 6 | ||||
-rw-r--r-- | src/mainboard/amd/birman/port_descriptors_phoenix.c | 18 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/mainboard/amd/birman/port_descriptors_glinda.c b/src/mainboard/amd/birman/port_descriptors_glinda.c index df961bfce6..a0dbd17b34 100644 --- a/src/mainboard/amd/birman/port_descriptors_glinda.c +++ b/src/mainboard/amd/birman/port_descriptors_glinda.c @@ -19,7 +19,7 @@ static const fsp_dxio_descriptor birman_dxio_descriptors[] = { .link_speed_capability = GEN3, .turn_off_unused_lanes = true, .link_aspm = 2, - .link_hotplug = 3, + .link_hotplug = HOTPLUG_ENHANCED, .clk_req = CLK_REQ3, }, { @@ -32,7 +32,7 @@ static const fsp_dxio_descriptor birman_dxio_descriptors[] = { .link_speed_capability = GEN3, .turn_off_unused_lanes = true, .link_aspm = 2, - .link_hotplug = 3, + .link_hotplug = HOTPLUG_ENHANCED, .clk_req = CLK_REQ1, }, { @@ -45,7 +45,7 @@ static const fsp_dxio_descriptor birman_dxio_descriptors[] = { .link_speed_capability = GEN3, .turn_off_unused_lanes = true, .link_aspm = 2, - .link_hotplug = 3, + .link_hotplug = HOTPLUG_ENHANCED, .gpio_group_id = GPIO_27, .clk_req = CLK_REQ0, }, diff --git a/src/mainboard/amd/birman/port_descriptors_phoenix.c b/src/mainboard/amd/birman/port_descriptors_phoenix.c index 5f4b1788bb..ffd5e3a3d2 100644 --- a/src/mainboard/amd/birman/port_descriptors_phoenix.c +++ b/src/mainboard/amd/birman/port_descriptors_phoenix.c @@ -17,7 +17,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ0, \ } @@ -32,7 +32,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ0, \ } @@ -46,7 +46,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ1, \ } @@ -61,7 +61,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ1, \ } @@ -75,7 +75,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ6, \ } @@ -89,7 +89,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ5, \ } @@ -103,7 +103,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ4, \ } @@ -117,7 +117,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ3, \ } @@ -131,7 +131,7 @@ .link_speed_capability = GEN3, \ .turn_off_unused_lanes = true, \ .link_aspm = ASPM_L1, \ - .link_hotplug = 0, \ + .link_hotplug = HOTPLUG_DISABLED, \ .clk_req = CLK_REQ2, \ } |