summaryrefslogtreecommitdiff
path: root/include/driver/bc12/pi3usb9201_public.h
blob: 643952ab4ac7cf866a8db6e6cdcc1c41b419119f (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
/* 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.
 */

/* PI3USB9201 USB BC 1.2 Charger Detector public definitions */

#ifndef __CROS_EC_DRIVER_BC12_PI3USB9201_PUBLIC_H
#define __CROS_EC_DRIVER_BC12_PI3USB9201_PUBLIC_H

/* I2C address */
#define PI3USB9201_I2C_ADDR_0_FLAGS 0x5C
#define PI3USB9201_I2C_ADDR_1_FLAGS 0x5D
#define PI3USB9201_I2C_ADDR_2_FLAGS 0x5E
#define PI3USB9201_I2C_ADDR_3_FLAGS 0x5F

struct pi3usb9201_config_t {
	const int i2c_port;
	const int i2c_addr_flags;
	const int flags;
};

/* Configuration struct defined at board level */
extern const struct pi3usb9201_config_t pi3usb9201_bc12_chips[];

extern const struct bc12_drv pi3usb9201_drv;

#endif /* __CROS_EC_DRIVER_BC12_PI3USB9201_PUBLIC_H */