summaryrefslogtreecommitdiff
path: root/zephyr/projects/nissa/BUILD.py
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/projects/nissa/BUILD.py')
-rw-r--r--zephyr/projects/nissa/BUILD.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/BUILD.py b/zephyr/projects/nissa/BUILD.py
new file mode 100644
index 0000000000..f7a4473746
--- /dev/null
+++ b/zephyr/projects/nissa/BUILD.py
@@ -0,0 +1,34 @@
+# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Nivviks has NPCX993F, Nereid has ITE81302
+
+
+def register_nissa_project(
+ project_name,
+ chip="it8xxx2",
+ extra_dts_overlays=(),
+ extra_kconfig_files=(),
+):
+ register_func = register_binman_project
+ if chip.startswith("npcx9"):
+ register_func = register_npcx_project
+
+ register_func(
+ project_name=project_name,
+ zephyr_board=chip,
+ dts_overlays=[*extra_dts_overlays],
+ kconfig_files=[here / "prj.conf", *extra_kconfig_files],
+ )
+
+
+register_nissa_project(
+ project_name="nivviks",
+ chip="npcx9",
+ extra_dts_overlays=[
+ here / "gpio_nivviks.dts",
+ here / "i2c_nivviks.dts",
+ ],
+ extra_kconfig_files=[here / "prj_nivviks.conf"],
+)