1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# 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 / "adc_nivviks.dts",
here / "gpio_nivviks.dts",
here / "i2c_nivviks.dts",
],
extra_kconfig_files=[here / "prj_nivviks.conf"],
)
|