From 36714d9fe6adc4e27ea3e98d2b4743087b0e2b4c Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 12 Mar 2021 18:19:21 +0100 Subject: haswell boards: Use zero length for disabled USB ports For disabled USB ports, the length setting does not matter. In future commits, disabled USB ports will end up with length field set to zero. Change-Id: I7613e1b0c89c0b58eca790ca14fcd1633c8a93af Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/51450 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Tristan Corrick --- src/mainboard/asrock/h81m-hds/romstage.c | 8 ++++---- src/mainboard/supermicro/x10slm-f/romstage.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/mainboard/asrock/h81m-hds/romstage.c b/src/mainboard/asrock/h81m-hds/romstage.c index a5b667f053..faac6809e3 100644 --- a/src/mainboard/asrock/h81m-hds/romstage.c +++ b/src/mainboard/asrock/h81m-hds/romstage.c @@ -31,14 +31,14 @@ const struct usb2_port_setting mainboard_usb2_ports[MAX_USB2_PORTS] = { { 0x0040, 1, 1, USB_PORT_BACK_PANEL }, { 0x0040, 1, 2, USB_PORT_BACK_PANEL }, { 0x0040, 1, 2, USB_PORT_BACK_PANEL }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, { 0x0040, 1, 4, USB_PORT_BACK_PANEL }, { 0x0040, 1, 4, USB_PORT_BACK_PANEL }, { 0x0040, 1, 5, USB_PORT_BACK_PANEL }, { 0x0040, 1, 5, USB_PORT_BACK_PANEL }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, }; const struct usb3_port_setting mainboard_usb3_ports[MAX_USB3_PORTS] = { diff --git a/src/mainboard/supermicro/x10slm-f/romstage.c b/src/mainboard/supermicro/x10slm-f/romstage.c index e555bea29b..ff77854428 100644 --- a/src/mainboard/supermicro/x10slm-f/romstage.c +++ b/src/mainboard/supermicro/x10slm-f/romstage.c @@ -33,12 +33,12 @@ const struct usb2_port_setting mainboard_usb2_ports[MAX_USB2_PORTS] = { { 0x0110, 1, 1, USB_PORT_BACK_PANEL }, { 0x0110, 1, 2, USB_PORT_BACK_PANEL }, { 0x0110, 1, 2, USB_PORT_BACK_PANEL }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, { 0x0040, 1, 4, USB_PORT_BACK_PANEL }, { 0x0040, 1, 4, USB_PORT_BACK_PANEL }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, - { 0x0040, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, + { 0x0000, 0, USB_OC_PIN_SKIP, USB_PORT_SKIP }, { 0x0040, 1, 6, USB_PORT_BACK_PANEL }, { 0x0040, 1, 6, USB_PORT_BACK_PANEL }, }; -- cgit v1.2.3