Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applespi: Document ACPI methods #1

Merged
merged 1 commit into from
Aug 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions applespi.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/**
* The keyboard and touchpad controller on the MacBook8,1, MacBook9,1 and
* MacBookPro12,1 can be driven either by USB or SPI. However the USB pins
* are only connected on the MacBookPro12,1, all others need this driver.
* The interface is selected using ACPI methods:
*
* * UIEN ("USB Interface Enable"): If invoked with argument 1, disables SPI
* and enables USB. If invoked with argument 0, disables USB.
* * UIST ("USB Interface Status"): Returns 1 if USB is enabled, 0 otherwise.
* * SIEN ("SPI Interface Enable"): If invoked with argument 1, disables USB
* and enables SPI. If invoked with argument 0, disables SPI.
* * SIST ("SPI Interface Status"): Returns 1 if SPI is enabled, 0 otherwise.
* * ISOL: Resets the four GPIO pins used for SPI. Intended to be invoked with
* argument 0, then once more with argument 1.
*
* UIEN and UIST are only provided on the MacBookPro12,1.
*/

#define pr_fmt(fmt) "applespi: " fmt

#include <linux/platform_device.h>
Expand Down