blob: a2acc3e0003c8dd6300a20dc903ab783cf5213a5 (
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 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.
*/
#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_ */
|