summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/usbc/ppc_rt1739.h
blob: 19e169a436c6471b45e06df2531ddfc4d9ff3551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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.
 */

#include "driver/ppc/rt1739.h"

#define RT1739_PPC_COMPAT richtek_rt1739_ppc

#define PPC_CHIP_RT1739(id)                                                  \
	{                                                                    \
		.i2c_port = I2C_PORT(DT_PHANDLE(id, port)),                  \
		.i2c_addr_flags = DT_STRING_UPPER_TOKEN(id, i2c_addr_flags), \
		.drv = &rt1739_ppc_drv,                                      \
		.frs_en = COND_CODE_1(DT_NODE_HAS_PROP(id, irq),             \
				      (GPIO_SIGNAL(DT_PHANDLE(id, irq))),    \
				      (0)),                                  \
	},