blob: a764e0c8b53201325f87301dafb7e5754ccfac80 (
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
|
/* 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.
*/
#ifndef ZEPHYR_CHROME_POWER_POWER_H
#define ZEPHYR_CHROME_POWER_POWER_H
#include <zephyr/devicetree.h>
#include <zephyr/drivers/gpio.h>
#if CONFIG_CROS_EC_POWER_SIGNAL_LIST
#define POWER_SIGNAL_LIST_NODE DT_NODELABEL(power_signal_list)
#define GEN_POWER_SIGNAL_ENUM_ENTRY(cid) \
DT_STRING_UPPER_TOKEN(cid, power_enum_name)
enum power_signal {
DT_FOREACH_CHILD_SEP(POWER_SIGNAL_LIST_NODE,
GEN_POWER_SIGNAL_ENUM_ENTRY, (, )),
POWER_SIGNAL_COUNT
};
#endif /* CONFIG_CROS_EC_POWER_SIGNAL_LIST */
#endif /* ZEPHYR_CHROME_POWER_POWER_H */
|