summaryrefslogtreecommitdiff
path: root/zephyr/boards
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-05-07 13:38:19 +1000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-09 07:06:10 +0000
commit127aeb547c8f39c0482bf734339f386d988c1216 (patch)
treeccb1ce618509b69a03f4aaa386cccafb3a23dba4 /zephyr/boards
parent16898114ec28ce243ce4e4cdd621f4bc93519e6c (diff)
downloadchrome-ec-127aeb547c8f39c0482bf734339f386d988c1216.tar.gz
zephyr: it8xxx2: Do not default GPIO groups K/L to inputs
By default groups k/l are set to input/pull down on startup since for some variants they are not exposed on pins. For the IT81302 they are, so do not set these as inputs at startup by default, otherwise it breaks warm reboot for any of these pins that are configured as outputs. BUG=b:231727461 TEST=zmake build nereid; flash & run BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I036b2ef5ec6bb38431b00644b90db44393a9384f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3631842 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'zephyr/boards')
-rw-r--r--zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig b/zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig
index 9650d50caf..a070a1bcee 100644
--- a/zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig
+++ b/zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig
@@ -25,6 +25,11 @@ CONFIG_SHELL_HISTORY=y
# GPIO Controller
CONFIG_GPIO=y
CONFIG_GPIO_ITE_IT8XXX2=y
+# For IT81202, the GPIO group k/l are not brought out to pins,
+# so by default they can be set to pull down inputs.
+# However with the IT81302, they are available on pins,
+# and should not be set to pull down inputs by default.
+CONFIG_SOC_IT8XXX2_GPIO_GROUP_K_L_DEFAULT_PULL_DOWN=n
# ADC Driver
CONFIG_ADC_ITE_IT8XXX2=y