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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Define zmake projects for nissa."""
# Nivviks and Craask, Pujjo, Xivu, Xivur, Uldren has NPCX993F, Nereid
# and Joxer, Yaviks, Yavilla has ITE81302
def register_nissa_project(
project_name,
chip="it81302bx",
):
"""Register a variant of nissa."""
register_func = register_binman_project
if chip.startswith("npcx"):
register_func = register_npcx_project
chip_kconfig = {"it81302bx": "it8xxx2", "npcx9m3f": "npcx"}[chip]
return register_func(
project_name=project_name,
zephyr_board=chip,
dts_overlays=[here / project_name / "project.overlay"],
kconfig_files=[
here / "program.conf",
here / f"{chip_kconfig}_program.conf",
here / project_name / "project.conf",
],
inherited_from=["nissa"],
)
def register_nivviks_project(
project_name,
):
"""Wrapper function for registering a variant of nivviks."""
return register_nissa_project(
project_name=project_name,
chip="npcx9m3f",
)
def register_nereid_project(
project_name,
):
"""Wrapper function for registering a variant of nereid."""
return register_nissa_project(
project_name=project_name,
chip="it81302bx",
)
nivviks = register_nissa_project(
project_name="nivviks",
chip="npcx9m3f",
)
nereid = register_nissa_project(
project_name="nereid",
chip="it81302bx",
)
nereid_cx = register_binman_project(
project_name="nereid_cx",
zephyr_board="it81302cx",
dts_overlays=[here / "nereid" / "project.overlay"],
kconfig_files=[
here / "program.conf",
here / "it8xxx2_program.conf",
here / "it8xxx2cx_program.conf",
here / "nereid" / "project.conf",
],
)
craask = register_nissa_project(
project_name="craask",
chip="npcx9m3f",
)
pujjo = register_nissa_project(
project_name="pujjo",
chip="npcx9m3f",
)
xivu = register_nissa_project(
project_name="xivu",
chip="npcx9m3f",
)
xivur = register_nissa_project(
project_name="xivur",
chip="npcx9m3f",
)
joxer = register_nissa_project(
project_name="joxer",
chip="it81302bx",
)
yaviks = register_nissa_project(
project_name="yaviks",
chip="it81302bx",
)
yavilla = register_nissa_project(
project_name="yavilla",
chip="it81302bx",
)
uldren = register_nissa_project(
project_name="uldren",
chip="npcx9m3f",
)
gothrax = register_nereid_project(
project_name="gothrax",
)
|