Skip to content

Commit

Permalink
Rk356x: Disable host bridge device if PHY init fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmcneill committed Feb 23, 2024
1 parent 798f859 commit a5bc209
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions edk2-rockchip/Platform/Rockchip/Rk356x/AcpiTables/Pcie3x1.asl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ Device (PCI0) {
Name (_SEG, 1)
Name (_BBN, One)

OperationRegion (PGRF, SystemMemory, 0xFDCB8000, 0x100)
Field (PGRF, DWordAcc, NoLock, Preserve) {
Offset (0x80),
PSTA, 32
}
Method (_STA, 0, Serialized) {
If (PSTA & 0x4000) {
Return (0xF)
}
Return (0x0)
}

Name (_PRT, Package() {
Package (4) { 0x0FFFF, 0, Zero, 189 },
Package (4) { 0x0FFFF, 1, Zero, 189 },
Expand Down
12 changes: 12 additions & 0 deletions edk2-rockchip/Platform/Rockchip/Rk356x/AcpiTables/Pcie3x2.asl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ Device (PCI0) {
Name (_SEG, 2)
Name (_BBN, One)

OperationRegion (PGRF, SystemMemory, 0xFDCB8000, 0x100)
Field (PGRF, DWordAcc, NoLock, Preserve) {
Offset (0x80),
PSTA, 32
}
Method (_STA, 0, Serialized) {
If (PSTA & 0x4000) {
Return (0xF)
}
Return (0x0)
}

Name (_PRT, Package() {
Package (4) { 0x0FFFF, 0, Zero, 194 },
Package (4) { 0x0FFFF, 1, Zero, 194 },
Expand Down

0 comments on commit a5bc209

Please sign in to comment.