summaryrefslogtreecommitdiff
path: root/zephyr/boards/riscv
diff options
context:
space:
mode:
authorTim Lin <tim2.lin@ite.corp-partner.google.com>2022-07-07 13:06:08 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-15 05:02:50 +0000
commit206b8c67919c3d00dcfc493388093989af1c6ff8 (patch)
tree0d4cc1f2ede53dcd9269e03bf123c1515e0ee8dd /zephyr/boards/riscv
parent8eae0fbea14a4d386a483b30816cf1e58e0b2e06 (diff)
downloadchrome-ec-206b8c67919c3d00dcfc493388093989af1c6ff8.tar.gz
zephyr: boards: support chip variants of it81202bx and it81302bx
We divide baseboard into it81202bx and it81302bx, which is convenient for maintenance. BUG=none BRANCH=none TEST=zmake build it8xxx2_evb --clobber zmake build krabby --clobber zmake build tentacruel --clobber zmake build nereid --clobber zmake build joxer --clobber zmake build minimal-it8xxx2 --clobber TEST=zmake testall TEST=Make sure gpiok(0xf01690-0xf01697) and gpiol(0xf01698-0xf0169f) group are set as input and pull-down in krabby project and do not be set in nereid project. Change-Id: I5a12e9f97aef2ef14193491cfad46a6614969c8a Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3650301 Commit-Queue: Dino Li <Dino.Li@ite.com.tw> Tested-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-by: Andrew McRae <amcrae@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/boards/riscv')
-rw-r--r--zephyr/boards/riscv/it8xxx2/it81202bx.dts8
-rw-r--r--zephyr/boards/riscv/it8xxx2/it81202bx_defconfig (renamed from zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig)8
-rw-r--r--zephyr/boards/riscv/it8xxx2/it81302bx.dts8
-rw-r--r--zephyr/boards/riscv/it8xxx2/it81302bx_defconfig34
4 files changed, 52 insertions, 6 deletions
diff --git a/zephyr/boards/riscv/it8xxx2/it81202bx.dts b/zephyr/boards/riscv/it8xxx2/it81202bx.dts
new file mode 100644
index 0000000000..76080c0a80
--- /dev/null
+++ b/zephyr/boards/riscv/it8xxx2/it81202bx.dts
@@ -0,0 +1,8 @@
+/* Copyright 2022 The ChromiumOS Authors.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/dts-v1/;
+
+#include "it8xxx2.dts"
diff --git a/zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig b/zephyr/boards/riscv/it8xxx2/it81202bx_defconfig
index 34612e9b42..59fc3a1eaf 100644
--- a/zephyr/boards/riscv/it8xxx2/it8xxx2_defconfig
+++ b/zephyr/boards/riscv/it8xxx2/it81202bx_defconfig
@@ -1,10 +1,11 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Zephyr Kernel Configuration
CONFIG_SOC_SERIES_RISCV32_IT8XXX2=y
CONFIG_SOC_IT8XXX2=y
+CONFIG_SOC_IT81202_BX=y
# Platform Configuration
CONFIG_BOARD_IT8XXX2=y
@@ -19,11 +20,6 @@ CONFIG_CONSOLE=y
# GPIO Controller
CONFIG_GPIO=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
# Clock Controller
CONFIG_CLOCK_CONTROL=n
diff --git a/zephyr/boards/riscv/it8xxx2/it81302bx.dts b/zephyr/boards/riscv/it8xxx2/it81302bx.dts
new file mode 100644
index 0000000000..76080c0a80
--- /dev/null
+++ b/zephyr/boards/riscv/it8xxx2/it81302bx.dts
@@ -0,0 +1,8 @@
+/* Copyright 2022 The ChromiumOS Authors.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/dts-v1/;
+
+#include "it8xxx2.dts"
diff --git a/zephyr/boards/riscv/it8xxx2/it81302bx_defconfig b/zephyr/boards/riscv/it8xxx2/it81302bx_defconfig
new file mode 100644
index 0000000000..ae66217f86
--- /dev/null
+++ b/zephyr/boards/riscv/it8xxx2/it81302bx_defconfig
@@ -0,0 +1,34 @@
+# Copyright 2022 The ChromiumOS Authors.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Zephyr Kernel Configuration
+CONFIG_SOC_SERIES_RISCV32_IT8XXX2=y
+CONFIG_SOC_IT8XXX2=y
+CONFIG_SOC_IT81302_BX=y
+
+# Platform Configuration
+CONFIG_BOARD_IT8XXX2=y
+
+# Power Management
+CONFIG_PM=y
+CONFIG_PM_DEVICE=y
+CONFIG_PM_POLICY_CUSTOM=y
+
+# Console
+CONFIG_CONSOLE=y
+
+# GPIO Controller
+CONFIG_GPIO=y
+
+# Clock Controller
+CONFIG_CLOCK_CONTROL=n
+
+# Serial Drivers
+CONFIG_SERIAL=y
+
+# WATCHDOG configuration
+CONFIG_WATCHDOG=y
+
+# BBRAM
+CONFIG_BBRAM=y