blob: 07b712920242d5d0a71b14abe9e207fdf875e96e (
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
|
/* 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.
*/
#ifndef __CROS_EC_BOARD_ZINGER_USB_PD_PDO_H
#define __CROS_EC_BOARD_ZINGER_USB_PD_PDO_H
/* Max current */
#if defined(BOARD_ZINGER)
#define RATED_CURRENT 3000
#elif defined(BOARD_MINIMUFFIN)
#define RATED_CURRENT 2250
#endif
/* Voltage indexes for the PDOs */
enum volt_idx {
PDO_IDX_5V = 0,
PDO_IDX_12V = 1,
PDO_IDX_20V = 2,
PDO_IDX_COUNT
};
#define PDO_FIXED_FLAGS (PDO_FIXED_UNCONSTRAINED | PDO_FIXED_DATA_SWAP)
extern const uint32_t pd_src_pdo[3];
extern const int pd_src_pdo_cnt;
#endif /* __CROS_EC_BOARD_ZINGER_USB_PD_PDO_H */
|