summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/power.c
blob: 007c40ab712bbdc6ec480819ce1bb5ff3e97deb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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.
 */

#include <zephyr/sys/util.h>

#include "console.h"
#include "power.h"
#include "power/power.h"

#if (SYSTEM_DT_POWER_SIGNAL_CONFIG)

const struct power_signal_info power_signal_list[] = { DT_FOREACH_CHILD(
	POWER_SIGNAL_LIST_NODE, GEN_POWER_SIGNAL_STRUCT) };
BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);

#endif /* SYSTEM_DT_POWER_SIGNAL_CONFIG */