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

#ifndef __ZEPHYR_SHIM_ANX7483_USB_MUX_H
#define __ZEPHYR_SHIM_ANX7483_USB_MUX_H

#include "driver/retimer/anx7483_public.h"

#define ANX7483_USB_MUX_COMPAT analogix_anx7483

#define USB_MUX_CONFIG_ANX7483(mux_id)                            \
	{                                                         \
		USB_MUX_COMMON_FIELDS(mux_id),                    \
			.driver = &anx7483_usb_retimer_driver,    \
			.board_set = &anx7483_set_default_tuning, \
			.i2c_port = I2C_PORT_BY_DEV(mux_id),      \
			.i2c_addr_flags = DT_REG_ADDR(mux_id),    \
	}

#endif /* __ZEPHYR_SHIM_ANX7483_USB_MUX_H */