Skip to content

Commit

Permalink
soc/intel/tigerlake: Add PCH-H USB ACPI devices
Browse files Browse the repository at this point in the history
Change-Id: Ia1c1c3d172366ddcc8c194cb2e0b0c2fb2acf678
  • Loading branch information
jackpot51 authored and crawfxrd committed Jul 20, 2021
1 parent 4bf74a8 commit e37a3ce
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/soc/intel/tigerlake/acpi/xhci.asl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -47,4 +82,5 @@ Device (XHCI)
Device (SS03) { Name (_ADR, 15) }
Device (SS04) { Name (_ADR, 16) }
}
#endif
}
12 changes: 12 additions & 0 deletions src/soc/intel/tigerlake/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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;
}
Expand Down

0 comments on commit e37a3ce

Please sign in to comment.