summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2019-11-05 13:03:10 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-08 22:58:56 +0000
commit69bbeb8af0a300aef51e70e31f1c2c102bc501f6 (patch)
tree4ea5227ad372ebbc9149e01fa9b48329a68cbe1c
parent4c349a1eafa02a1f520d7603464cdda1e0c62a7f (diff)
downloadchrome-ec-69bbeb8af0a300aef51e70e31f1c2c102bc501f6.tar.gz
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 <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1900122 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
-rw-r--r--board/hatch_fp/gpio.inc16
1 files 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)