summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/usbc/ppc_syv682x.h
blob: 87432c2b6236a01c780dec486f67db2df28a9f4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright 2021 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "ppc/syv682x_public.h"

#define SYV682X_COMPAT silergy_syv682x
#define SYV682X_EMUL_COMPAT zephyr_syv682x_emul

#define PPC_CHIP_SYV682X(id)                                              \
	{                                                                 \
		.i2c_port = I2C_PORT_BY_DEV(id),                          \
		.i2c_addr_flags = DT_REG_ADDR(id), .drv = &syv682x_drv,   \
		.frs_en = COND_CODE_1(                                    \
			DT_NODE_HAS_PROP(id, frs_en_gpio),                \
			(GPIO_SIGNAL(DT_PHANDLE(id, frs_en_gpio))), (0)), \
	}