drivers/intel/pmc_mux/conn: Change usb{23}_port_number fields to device pointers

Currently, the pmc_mux/conn driver uses integer fields to store the
USB-2 and USB-3 port numbers from the SoC's point of view. Specifying
these as integers in the devicetree is error-prone, and this
information can instead be represented using pointers to the USB-2 and
USB-3 devices. The port numbers can then be obtained from the paths of
the linked devices, i.e. dev->path.usb.port_id.

Modify the driver to store device pointers instead of integer port
numbers, and update all devicetrees using the driver. These are the
mainboards affected (all are Intel TGL or ADL based):
google/brya
google/volteer
intel/adlrvp
intel/shadowmountain
intel/tglrvp
system76/darp7
system76/galp5
system76/lemp10

Command used to update the devicetrees:
git grep -l "usb._port_number" src/mainboard/ | \
  xargs sed -i \
  -e 's/register "usb2_port_number" = "\(.*\)"/use usb2_port\1 as usb2_port/g' \
  -e 's/register "usb3_port_number" = "\(.*\)"/use tcss_usb3_port\1 as usb3_port/g'

BUG=b:208502191
TEST=Build test all affected boards. On brya0, boot device and check
that the ACPI tables generated with and without the change are the same.

Change-Id: I5045b8ea57e8ca6f9ebd7d68a19486736b7e2809
Signed-off-by: Reka Norman <rekanorman@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60143
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Tim Crawford <tcrawford@system76.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Reka Norman 2021-12-09 12:09:27 +11:00 committed by Felix Held
parent 9fe2ce802a
commit d448f8ce0f
41 changed files with 173 additions and 168 deletions

View File

@ -6,10 +6,10 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
struct drivers_intel_pmc_mux_conn_config { struct drivers_intel_pmc_mux_conn_config {
/* 1-based port numbers (from SoC point of view) */ /* A pointer to the SoC's USB-2 device */
int usb2_port_number; DEVTREE_CONST struct device *usb2_port;
/* 1-based port numbers (from SoC point of view) */ /* A pointer to the SoC's USB-3 device */
int usb3_port_number; DEVTREE_CONST struct device *usb3_port;
/* Orientation of the sideband signals (SBU) */ /* Orientation of the sideband signals (SBU) */
enum type_c_orientation sbu_orientation; enum type_c_orientation sbu_orientation;
/* Orientation of the High Speed lines */ /* Orientation of the High Speed lines */

View File

@ -16,6 +16,11 @@ static void conn_init(struct device *dev)
total_conn_count++; total_conn_count++;
} }
static unsigned int get_usb_port_number(const struct device *usb_port)
{
return usb_port->path.usb.port_id + 1;
}
static struct type_c_info *conn_get_cbmem_buffer(void) static struct type_c_info *conn_get_cbmem_buffer(void)
{ {
struct type_c_info *info; struct type_c_info *info;
@ -57,8 +62,8 @@ static void conn_write_cbmem_entry(struct device *dev)
count = info->port_count; count = info->port_count;
port_info = &info->port_info[count]; port_info = &info->port_info[count];
port_info->usb2_port_number = config->usb2_port_number; port_info->usb2_port_number = get_usb_port_number(config->usb2_port);
port_info->usb3_port_number = config->usb3_port_number; port_info->usb3_port_number = get_usb_port_number(config->usb3_port);
port_info->sbu_orientation = config->sbu_orientation; port_info->sbu_orientation = config->sbu_orientation;
port_info->data_orientation = config->hsl_orientation; port_info->data_orientation = config->hsl_orientation;
@ -109,8 +114,8 @@ static void conn_fill_ssdt(const struct device *dev)
/* _DSD, Device-Specific Data */ /* _DSD, Device-Specific Data */
dsd = acpi_dp_new_table("_DSD"); dsd = acpi_dp_new_table("_DSD");
acpi_dp_add_integer(dsd, "usb2-port-number", config->usb2_port_number); acpi_dp_add_integer(dsd, "usb2-port-number", get_usb_port_number(config->usb2_port));
acpi_dp_add_integer(dsd, "usb3-port-number", config->usb3_port_number); acpi_dp_add_integer(dsd, "usb3-port-number", get_usb_port_number(config->usb3_port));
/* /*
* The kernel assumes that these Type-C signals (SBUs and HSLs) follow the CC lines, * The kernel assumes that these Type-C signals (SBUs and HSLs) follow the CC lines,
@ -161,8 +166,8 @@ bool intel_pmc_mux_conn_get_ports(const struct device *conn, unsigned int *usb2_
return false; return false;
mux_config = conn->chip_info; mux_config = conn->chip_info;
*usb2_port = mux_config->usb2_port_number; *usb2_port = get_usb_port_number(mux_config->usb2_port);
*usb3_port = mux_config->usb3_port_number; *usb3_port = get_usb_port_number(mux_config->usb3_port);
return true; return true;
}; };

View File

@ -282,13 +282,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -282,13 +282,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -188,18 +188,18 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 2 alias conn2 on end device generic 2 alias conn2 on end
end end
end end

View File

@ -626,18 +626,18 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 2 alias conn2 on end device generic 2 alias conn2 on end
end end
end end

View File

@ -626,18 +626,18 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 2 alias conn2 on end device generic 2 alias conn2 on end
end end
end end

View File

@ -309,13 +309,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 2 alias conn2 on end device generic 2 alias conn2 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -254,13 +254,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -217,13 +217,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -487,13 +487,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -310,13 +310,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -304,13 +304,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -436,13 +436,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -440,13 +440,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -421,13 +421,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 2 alias conn1 on end device generic 2 alias conn1 on end
end end
end end

View File

@ -421,13 +421,13 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
device generic 2 alias conn1 on end device generic 2 alias conn1 on end
end end
end end

View File

@ -264,14 +264,14 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -205,15 +205,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "5" use usb2_port5 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -230,15 +230,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "5" use usb2_port5 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -211,15 +211,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -209,15 +209,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -211,14 +211,14 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -281,14 +281,14 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -289,14 +289,14 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follows CC # SBU & HSL follows CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -158,15 +158,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "5" use usb2_port5 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -147,15 +147,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "5" use usb2_port5 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -115,13 +115,13 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "5" use usb2_port5 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -152,13 +152,13 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -221,14 +221,14 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -288,14 +288,14 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
end end

View File

@ -244,15 +244,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "9" use usb2_port9 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -14,15 +14,15 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -34,22 +34,22 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 2 alias conn2 on end device generic 2 alias conn2 on end

View File

@ -14,15 +14,15 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "1" use usb2_port1 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "2" use usb2_port2 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -279,15 +279,15 @@ chip soc/intel/alderlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "6" use usb2_port6 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "4" use usb2_port4 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -319,15 +319,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "6" use usb2_port6 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "7" use usb2_port7 as usb2_port
register "usb3_port_number" = "4" use tcss_usb3_port4 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -323,15 +323,15 @@ chip soc/intel/tigerlake
chip drivers/intel/pmc_mux chip drivers/intel/pmc_mux
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "6" use usb2_port6 as usb2_port
register "usb3_port_number" = "3" use tcss_usb3_port3 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
register "usb2_port_number" = "5" use usb2_port5 as usb2_port
register "usb3_port_number" = "2" use tcss_usb3_port2 as usb3_port
# SBU is fixed, HSL follows CC # SBU is fixed, HSL follows CC
register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL" register "sbu_orientation" = "TYPEC_ORIENTATION_NORMAL"
device generic 1 alias conn1 on end device generic 1 alias conn1 on end

View File

@ -316,8 +316,8 @@ chip soc/intel/tigerlake
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
# J_TYPEC2 # J_TYPEC2
register "usb2_port_number" = "6" use usb2_port6 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end

View File

@ -320,8 +320,8 @@ chip soc/intel/tigerlake
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
# J_TYPEC2 # J_TYPEC2
register "usb2_port_number" = "6" use usb2_port6 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end

View File

@ -281,8 +281,8 @@ chip soc/intel/tigerlake
device generic 0 on device generic 0 on
chip drivers/intel/pmc_mux/conn chip drivers/intel/pmc_mux/conn
# J_TYPEC1 # J_TYPEC1
register "usb2_port_number" = "3" use usb2_port3 as usb2_port
register "usb3_port_number" = "1" use tcss_usb3_port1 as usb3_port
# SBU & HSL follow CC # SBU & HSL follow CC
device generic 0 alias conn0 on end device generic 0 alias conn0 on end
end end