mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 21:02:27 +00:00
zinger: change behavior of pin PA0 for wakeup functionality
Zinger EVT units will have hardware change for PA0 to be able to wake up from standby. Part of the change is that we have to output high on PA0 in order for the comparator to compare against 0.65V, which is inverted from the previous version. BUG=chrome-os-partner:28335 BRANCH=none TEST=reworked a p2 zinger with PA0 changes, plugged into samus, and verified we still charge. Change-Id: I7344f1d1decddc4e6600e41c313e1e7a5a5de067 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/209832 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
b466ab4c67
commit
ab8a50b84e
@@ -65,7 +65,7 @@ static void power_init(void)
|
||||
static void pins_init(void)
|
||||
{
|
||||
/* Pin usage:
|
||||
* PA0 (OUT - OD GPIO) : Wakeup on Vnc / Threshold
|
||||
* PA0 (OUT - GPIO) : Wakeup on Vnc / Threshold
|
||||
* PA1 (ANALOG - ADC_IN1) : CC sense
|
||||
* PA2 (ANALOG - ADC_IN2) : Current sense
|
||||
* PA3 (ANALOG - ADC_IN3) : Voltage sense
|
||||
@@ -81,10 +81,10 @@ static void pins_init(void)
|
||||
* PF0 (OUT - GPIO) : LM5050 FET driver off
|
||||
* PF1 (OUT - GPIO) : discharge FET
|
||||
*/
|
||||
STM32_GPIO_ODR(GPIO_A) = /* HIGH(0) | */ HIGH(4);
|
||||
STM32_GPIO_ODR(GPIO_A) = HIGH(0) | HIGH(4);
|
||||
STM32_GPIO_AFRL(GPIO_A) = AFx(7, 1);
|
||||
STM32_GPIO_AFRH(GPIO_A) = AFx(9, 1) | AFx(10, 1);
|
||||
STM32_GPIO_OTYPER(GPIO_A) = ODR(0) | ODR(4);
|
||||
STM32_GPIO_OTYPER(GPIO_A) = ODR(4);
|
||||
STM32_GPIO_OSPEEDR(GPIO_A) = HISPEED(5) | HISPEED(6) | HISPEED(7);
|
||||
STM32_GPIO_MODER(GPIO_A) = OUT(0) | ANALOG(1) | ANALOG(2) | ANALOG(3)
|
||||
| OUT(4) | AF(5) /*| AF(6)*/ | AF(7) | AF(9)
|
||||
|
||||
Reference in New Issue
Block a user