-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform: OLPC: Add XO-1.75 EC driver
It's based off the driver from the OLPC kernel sources. Somewhat modernized and cleaned up, for better or worse. Modified to plug into the olpc-ec driver infrastructure (so that battery interface and debugfs could be reused) and the SPI slave framework. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
- Loading branch information
Lubomir Rintel
authored and
Andy Shevchenko
committed
May 20, 2019
1 parent
8097548
commit 0c3d931
Showing
7 changed files
with
774 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
config OLPC_EC | ||
bool | ||
|
||
config OLPC_XO175_EC | ||
tristate "OLPC XO 1.75 Embedded Controller" | ||
depends on ARCH_MMP || COMPILE_TEST | ||
select SPI_SLAVE | ||
select OLPC_EC | ||
help | ||
Include support for the OLPC XO Embedded Controller (EC). The EC | ||
provides various platform services, including support for the power, | ||
button, restart, shutdown and battery charging status. | ||
|
||
Unless you have an OLPC XO laptop, you will want to say N. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# | ||
# OLPC XO platform-specific drivers | ||
# | ||
obj-$(CONFIG_OLPC) += olpc-ec.o | ||
obj-$(CONFIG_OLPC_EC) += olpc-ec.o | ||
obj-$(CONFIG_OLPC_XO175_EC) += olpc-xo175-ec.o |
Oops, something went wrong.