summaryrefslogtreecommitdiff
path: root/zephyr/projects/nissa/BUILD.py
blob: 41d56411d271a49c22602340f091a4c1a1630a14 (plain)
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
# 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=["cbi.dts", *extra_dts_overlays],
        kconfig_files=[here / "prj.conf", *extra_kconfig_files],
    )


register_nissa_project(
    project_name="nivviks",
    chip="npcx9",
    extra_dts_overlays=[
        here / "nivviks_generated.dts",
        here / "nivviks_overlay.dts",
        here / "nivviks_motionsense.dts",
        here / "nivviks_keyboard.dts",
        here / "nivviks_power_signals.dts",
    ],
    extra_kconfig_files=[here / "prj_nivviks.conf"],
)

register_nissa_project(
    project_name="nereid",
    chip="it8xxx2",
    extra_dts_overlays=[
        here / "nereid_generated.dts",
        here / "nereid_overlay.dts",
        here / "nereid_motionsense.dts",
        here / "nereid_keyboard.dts",
        here / "nereid_power_signals.dts",
    ],
    extra_kconfig_files=[here / "prj_nereid.conf"],
)