From 69bbeb8af0a300aef51e70e31f1c2c102bc501f6 Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Tue, 5 Nov 2019 13:03:10 -0800 Subject: hatch_fp: Switch to UNUSED pins mechanism This CL enables UNUSED pins for hatch_fp. This places the unused/unconnected pins in the lowest power state. Using the UNUSED pins mechanism should be functionally equivalent to the previous method of declaring these pins as analog inputs. See crrev.com/c/1894242 for implementation details. BRANCH=nocturne,hatch BUG=b:130561737 TEST=make buildall -j TEST=make BOARD=bloonchipper # Connect dragonclaw dev board over servo micro sudo servod --board=bloonchipper --config bloonchipper_rev0.1.xml & ./util/flash_ec --board=bloonchipper minicom -D $(dut-control raw_fpmcu_uart_pty | cut -d: -f2) > sysinfo # Check that we are in RW Change-Id: I412118287893ec63cef42c6c190d0a4755de06cb Signed-off-by: Craig Hesling Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1900122 Reviewed-by: Daisuke Nojiri Reviewed-by: Tom Hughes --- board/hatch_fp/gpio.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/board/hatch_fp/gpio.inc b/board/hatch_fp/gpio.inc index 757cdfaf52..131c372385 100644 --- a/board/hatch_fp/gpio.inc +++ b/board/hatch_fp/gpio.inc @@ -27,14 +27,14 @@ GPIO(USER_PRES_L, PIN(B, 9), GPIO_ODR_HIGH) * look at "USING STM32F4 MCU POWER MODES WITH BEST DYNAMIC EFFICIENCY" * ("AN4365") section 1.2.6 and STM32F412 reference manual section 7.3.12. */ -GPIO(UNUSED_PA2, PIN(A, 2), GPIO_ANALOG) -GPIO(UNUSED_PA3, PIN(A, 3), GPIO_ANALOG) -GPIO(UNUSED_PA8, PIN(A, 8), GPIO_ANALOG) -GPIO(UNUSED_PC13, PIN(C, 13), GPIO_ANALOG) -GPIO(UNUSED_PC14, PIN(C, 14), GPIO_ANALOG) -GPIO(UNUSED_PC15, PIN(C, 15), GPIO_ANALOG) -GPIO(UNUSED_PH0, PIN(H, 0), GPIO_ANALOG) -GPIO(UNUSED_PH1, PIN(H, 1), GPIO_ANALOG) +UNUSED(PIN(A, 2)) +UNUSED(PIN(A, 3)) +UNUSED(PIN(A, 8)) +UNUSED(PIN(C, 13)) +UNUSED(PIN(C, 14)) +UNUSED(PIN(C, 15)) +UNUSED(PIN(H, 0)) +UNUSED(PIN(H, 1)) UNIMPLEMENTED(ENTERING_RW) -- cgit v1.2.1