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/google | |
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/google')
-rw-r--r-- | src/mainboard/google/myst/port_descriptors.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/skyrim/port_descriptors.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/myst/port_descriptors.c b/src/mainboard/google/myst/port_descriptors.c index 2c9985c298..7c3ddb3825 100644 --- a/src/mainboard/google/myst/port_descriptors.c +++ b/src/mainboard/google/myst/port_descriptors.c @@ -39,7 +39,7 @@ static fsp_dxio_descriptor myst_dxio_descriptors[] = { .function_number = PCI_FUNC(SD_DEVFN), .link_speed_capability = GEN1, .turn_off_unused_lanes = true, - .link_hotplug = 3, + .link_hotplug = HOTPLUG_ENHANCED, .clk_req = CLK_REQ1, }, [DXIO_STORAGE] = { 0 }, diff --git a/src/mainboard/google/skyrim/port_descriptors.c b/src/mainboard/google/skyrim/port_descriptors.c index 80839a0b0c..5a9539f051 100644 --- a/src/mainboard/google/skyrim/port_descriptors.c +++ b/src/mainboard/google/skyrim/port_descriptors.c @@ -32,7 +32,7 @@ static const fsp_dxio_descriptor skyrim_mdn_dxio_descriptors[] = { .function_number = PCI_FUNC(SD_DEVFN), .link_speed_capability = GEN3, .turn_off_unused_lanes = true, - .link_hotplug = 3, + .link_hotplug = HOTPLUG_ENHANCED, .link_aspm = ASPM_L1, .link_aspm_L1_1 = true, .gpio_group_id = GPIO_27, |