Skip to content

Commit

Permalink
ACPI: Add broken-cd property for SDMMC
Browse files Browse the repository at this point in the history
Missed this change. The Windows driver needs to be made aware that the
internal card detect register cannot be trusted. But card detection
still works there, because sdport keeps track of the state based on the
GPIO interrupt.

Signed-off-by: Mario Bălănică <[email protected]>
  • Loading branch information
mariobalanica committed Jul 11, 2024
1 parent 416b2fa commit 0d37e72
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
gRK3588TokenSpaceGuid.PcdI2S1Supported
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
1 change: 1 addition & 0 deletions edk2-rockchip/Silicon/Rockchip/RK3588/AcpiTables/Sdhc.asl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Scope (\_SB_) {
Package () { "sd-uhs-ddr50", SDMMC_CAP_DDR50 },
Package () { "sd-uhs-sdr50", SDMMC_CAP_SDR50 },
Package () { "sd-uhs-sdr104", SDMMC_CAP_SDR104 },
Package () { "broken-cd", FixedPcdGetBool (PcdRkSdmmcCardDetectBroken) },
}
})

Expand Down

0 comments on commit 0d37e72

Please sign in to comment.