summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/charger_enum.h
blob: a10a274e280c2f9ca0d80c9144e1f13291cde3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright 2022 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_SHIM_INCLUDE_CHARGER_ENUM_H_
#define ZEPHYR_SHIM_INCLUDE_CHARGER_ENUM_H_

/*
 * Theoretically, this should enumerate all the chargers
 * by checking and processing each type, but practically
 * if OCPC is enabled, there are only 2 chargers.
 */
enum chg_id {
	CHARGER_PRIMARY,
#if (CONFIG_USB_PD_PORT_MAX_COUNT > 1)
	CHARGER_SECONDARY,
#endif /* CONFIG_USB_PD_PORT_MAX_COUNT > 1 */
	CHARGER_NUM,
};

#endif /* ZEPHYR_SHIM_INCLUDE_CHARGER_ENUM_H_ */