mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-13 03:15:06 +00:00
Fizz: Add GPIOs used for CEC
The Fizz hardware has three pins for CEC. One GPIO is used as a pull-up. It is always an output and always high. The second GPIO is a data output. The third GPIO is the data input that can also be configured as a timer input (TA1). Signed-off-by: Stefan Adolfsson <sadolfsson@chromium.org> BUG=b:76467407 BRANCH=none TEST=Read and write the newly added GPIOs using ectool Change-Id: Ia33b36a0cdaa40fd1a4f7aa66a092b5833bf5cf8 Reviewed-on: https://chromium-review.googlesource.com/1030219 Commit-Ready: Stefan Adolfsson <sadolfsson@chromium.org> Tested-by: Stefan Adolfsson <sadolfsson@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
436dd71e5d
commit
bdc8b02528
@@ -44,6 +44,9 @@
|
||||
#define WIRELESS_GPIO_WLAN GPIO_WLAN_OFF_L
|
||||
#define WIRELESS_GPIO_WLAN_POWER GPIO_PP3300_DX_WLAN
|
||||
#define WIRELESS_GPIO_WWAN GPIO_PP3300_DX_LTE
|
||||
#define CEC_GPIO_OUT GPIO_CEC_OUT
|
||||
#define CEC_GPIO_IN GPIO_CEC_IN
|
||||
#define CEC_GPIO_PULL_UP GPIO_CEC_PULL_UP
|
||||
#define CONFIG_FANS 1
|
||||
#define CONFIG_FAN_RPM_CUSTOM
|
||||
#define CONFIG_THROTTLE_AP
|
||||
|
||||
@@ -84,6 +84,10 @@ GPIO(USB4_ENABLE, PIN(0, 0), GPIO_OUT_LOW) /* Front port 1 */
|
||||
GPIO(USB5_ENABLE, PIN(B, 1), GPIO_OUT_LOW) /* Front port 2 */
|
||||
GPIO(USB_A_CHARGE_EN_L, PIN(A, 5), GPIO_OUT_LOW)
|
||||
|
||||
GPIO(CEC_OUT, PIN(3, 6), GPIO_OUT_HIGH | GPIO_OPEN_DRAIN)
|
||||
GPIO(CEC_IN, PIN(4, 0), GPIO_INPUT)
|
||||
GPIO(CEC_PULL_UP, PIN(D, 3), GPIO_OUT_HIGH)
|
||||
|
||||
/* Board ID */
|
||||
GPIO(BOARD_VERSION1, PIN(C, 4), GPIO_INPUT) /* Board ID bit0 */
|
||||
GPIO(BOARD_VERSION2, PIN(C, 2), GPIO_INPUT) /* Board ID bit1 */
|
||||
|
||||
Reference in New Issue
Block a user