mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
fd5d6cc019cb35068f39cec808a769c6caf67776
This patch moves all I2C port initialization into configure_board to ensure the alternate function gets set properly. I2C ports should come up in their high-impedance state (Output, open-drain, output set) and then get set as alternate function. However, configure_board() runs before gpio_pre_init(), so the mode register was getting set set back to general purpose output instead of alt. function. TODO: Fix gpio_pre_init() so we do not need to explicitly handle port configuration in configure_board(). BUG=none TEST=tested on daisy using keyboard Change-Id: If837acd4f4204e467e7ed276f048b5b70ecbdb25 Signed-off-by: David Hendricks <dhendrix@chromium.org>
- 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%