summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/sdhc_acpi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't detach non-removable devices during resume on "sdhc* at acpi?".stsp2019-04-021-3/+8
| | | | | | Makes hibernate work with rootfs on built-in emmc storage. Tested on King Jim Portabook. ok deraadt@ kettenis@
* Remove semicolon before printing the AML name.kettenis2018-07-011-2/+2
| | | | spotted by deraadt@
* Let acpi(4) pass down the bus dma tag.kettenis2018-06-261-4/+2
| | | | ok deraadt@
* Call acpi_attach_deps() for the child devices before attempting to powerkettenis2018-05-221-1/+3
| | | | | | | | | them on. Prevents a panic on the AZW Z83-S that is somewhat buggy and checks whether the GPO3 controller is available and then pokes a pin on GPO2. It shouldn't do that but we should make sure all the devices that it depends on attach first anyway. ok patrick@
* Put controllers and child devices in D0 by calling _PS0 when we attach thekettenis2018-05-211-5/+61
| | | | | | | | controller. Some BIOSen deliver them to us in D3. Override card detect if ACPI says that the child devices are non-removable. ok mlarkin@
* Add the resource index to aml_parse_resource() callback function.pirofti2016-10-251-3/+3
| | | | | | | This is needed by an upcoming acpiec commit that handles machines breaking the current ACPI specifications. Change suggested by and ok kettenis@, guenther@
* Implement DMA support. Bits and pieces taken from NetBSD, but we onlykettenis2016-04-301-2/+5
| | | | | | | | | | | | support ADMA2. The older SDMA mode has too many limitations to be really usable. Gives us only moderate speed improvements, bus reduces the CPU load considerably. We will reap the full benefits once we implement wider bus widths and high speed modes. There is a remining issue with simultanious use of eMMC and external SD card on (some) Intel Bay Trail hardware. Still under investigation. ok patrick@, stsp@, deraadt@
* Remove debug printfs, but do print "gpio" to indicate that card detection iskettenis2016-04-261-10/+4
| | | | done through a gpio pin instead of the standard register.
* Make the gpio intr_establish callback return an int so the same functionjsg2016-04-021-3/+5
| | | | | | pointer can be used with gpio and acpi intr_establish. ok kettenis@
* Hook up the gpio interrupt on devices that use it for card detection.kettenis2016-03-301-1/+19
| | | | | | | Makes the SD card slot on machines based on Intel's Bay Trail SoC fully functional. ok jsg@
* Check if a device is present (using _STA) in acpi_foundhid. This preventskettenis2016-03-291-13/+2
| | | | | | | us from reporting devices as "not configured" that aren't actually present, and allows us to remove duplicated code from several drivers. ok deraadt@, ok jsg@
* Replace 0 with NULL.kettenis2016-03-281-2/+2
|
* Add support for card detect through a GPIO signal.kettenis2016-03-281-3/+38
|
* Add glue to make sdhc(4) attach to acpi(4). Needed to support the SD hostkettenis2016-01-111-0/+155
controllers integrated on Intel's Bay Trail SoCs.