summaryrefslogtreecommitdiff
path: root/driver/tcpm/ps8751.h
blob: 859981cc2721e25b332b3dd167355379b2e80838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright 2016 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.
 */

/* Parade Tech Type-C controller vendor specific APIs*/

#ifndef __CROS_EC_USB_PD_TCPM_PS8751_H
#define __CROS_EC_USB_PD_TCPM_PS8751_H

/* Vendor defined registers */
#define PS8751_VENDOR_ID	0x1DA0
#define PS8751_PRODUCT_ID	0x8751

#define PS8751_REG_CTRL_1       0xD0
#define PS8751_REG_CTRL_1_HPD   (1 << 0)
#define PS8751_REG_CTRL_1_IRQ   (1 << 1)

void ps8751_tcpc_update_hpd_status(int port, int hpd_lvl, int hpd_irq);
#endif /* __CROS_EC_USB_PD_TCPM_PS8751_H */