mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-29 05:31:08 +01:00
intel/compute-stick/stck1a: init
This commit is contained in:
parent
9ed85f8afe
commit
5051632234
6 changed files with 95 additions and 0 deletions
29
intel/compute-stick/stck1a/dsl/sd-slot-cd-gpio-fix.dsl
Normal file
29
intel/compute-stick/stck1a/dsl/sd-slot-cd-gpio-fix.dsl
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
DefinitionBlock ("sd-slot-cd-gpio-fix.aml", "SSDT", 5, "NIXOS", "SDHDFIX", 0x00000001)
|
||||
{
|
||||
External (\_SB.SDHD, DeviceObj)
|
||||
|
||||
Scope (\_SB.SDHD)
|
||||
{
|
||||
Name (_DSD, Package ()
|
||||
{
|
||||
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
|
||||
Package ()
|
||||
{
|
||||
/*
|
||||
* The sdhci-acpi driver expects a cd (card-detect) GPIO
|
||||
* from the first Gpio/GpioInt entry in the device's _CRS.
|
||||
*
|
||||
* Unfortunately, the first entry is a GpioInt, which the driver
|
||||
* cannot use for card detection (it only supports plain Gpio).
|
||||
*
|
||||
* As a result, the driver fails to detect the SD card.
|
||||
*
|
||||
* This SSDT patch explicitly directs the driver to use
|
||||
* the second Gpio resource (index 1), which is the correct
|
||||
* Gpio entry for card detection.
|
||||
*/
|
||||
Package () { "gpios", Package () { ^SDHD, 1, 0, 0 } },
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue