soc/intel/tigerlake: Add PCH-H USB ACPI devices

Change-Id: Ia1c1c3d172366ddcc8c194cb2e0b0c2fb2acf678
This commit is contained in:
Jeremy Soller
2021-06-23 10:56:13 -06:00
committed by Tim Crawford
parent 4bf74a81d5
commit e37a3ced0e
2 changed files with 48 additions and 0 deletions

View File

@@ -24,6 +24,41 @@ Device (XHCI)
}
#if CONFIG(SOC_INTEL_TIGERLAKE_PCH_H)
/* Root Hub for Tigerlake-H PCH */
Device (RHUB)
{
Name (_ADR, Zero)
/* USB2 */
Device (HS01) { Name (_ADR, 1) }
Device (HS02) { Name (_ADR, 2) }
Device (HS03) { Name (_ADR, 3) }
Device (HS04) { Name (_ADR, 4) }
Device (HS05) { Name (_ADR, 5) }
Device (HS06) { Name (_ADR, 6) }
Device (HS07) { Name (_ADR, 7) }
Device (HS08) { Name (_ADR, 8) }
Device (HS09) { Name (_ADR, 9) }
Device (HS10) { Name (_ADR, 10) }
Device (HS11) { Name (_ADR, 11) }
Device (HS12) { Name (_ADR, 12) }
Device (HS13) { Name (_ADR, 13) }
Device (HS14) { Name (_ADR, 14) }
/* USB3 */
Device (SS01) { Name (_ADR, 15) }
Device (SS02) { Name (_ADR, 16) }
Device (SS03) { Name (_ADR, 17) }
Device (SS04) { Name (_ADR, 18) }
Device (SS05) { Name (_ADR, 19) }
Device (SS06) { Name (_ADR, 20) }
Device (SS07) { Name (_ADR, 21) }
Device (SS08) { Name (_ADR, 22) }
Device (SS09) { Name (_ADR, 23) }
Device (SS10) { Name (_ADR, 24) }
}
#else
/* Root Hub for Tigerlake-LP PCH */
Device (RHUB)
{
@@ -47,4 +82,5 @@ Device (XHCI)
Device (SS03) { Name (_ADR, 15) }
Device (SS04) { Name (_ADR, 16) }
}
#endif
}

View File

@@ -55,6 +55,11 @@ const char *soc_acpi_name(const struct device *dev)
case 7: return "HS08";
case 8: return "HS09";
case 9: return "HS10";
/* PCH-H only */
case 10: return "HS11";
case 11: return "HS12";
case 12: return "HS13";
case 13: return "HS14";
}
break;
case 3:
@@ -64,6 +69,13 @@ const char *soc_acpi_name(const struct device *dev)
case 1: return "SS02";
case 2: return "SS03";
case 3: return "SS04";
/* PCH-H only */
case 4: return "SS05";
case 5: return "SS06";
case 6: return "SS07";
case 7: return "SS08";
case 8: return "SS09";
case 9: return "SS10";
}
break;
}