mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 01:50:53 +00:00
89a8a082b13aa33d1352b94804fbe5885ea7fcf9
Note that this only handles lid and power button; see crosbug.com/p/8325 for write protect. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:8185 TEST=manual 1. Check state with lid open localhost ~ # ectool switches Current switches: 0x01 Lid switch: OPEN Power button: UP Write protect: ENABLED 2. Press power button localhost ~ # ectool switches Current switches: 0x03 Lid switch: OPEN Power button: DOWN Write protect: ENABLED 3. Release power button and close lid localhost ~ # ectool switches Current switches: 0x00 Lid switch: CLOSED Power button: UP Write protect: ENABLED Change-Id: I25f2fa3dfeac004dde9b10a4243ee235875f1b6e
- EC Lib
This wraps Blizzard driverlib and implements the EC chip interface defined
by Google. See below diagram for architecture.
+--------------------+
| Host BIOS/OS |
+--------------------+
---- host interface ----
+--------------------+
| Google EC features |
+--------------------+
---- chip interface ---- The interface is defined in
src/platform/ec/chip_interface/*.
+--------------------+ But the real implementation is in EC Lib.
| EC Lib |
+--------------------+
| Blizzard low level |
| driver, the |
| driverlib. |
+--------------------+
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%