summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/usbc/anx7447_usb_mux.h
blob: 017be9d604a55e20605a57064efd49e31d2d8830 (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_ANX7447_USB_MUX_H
#define __ZEPHYR_SHIM_ANX7447_USB_MUX_H

#include "tcpm/anx7447_public.h"

#define ANX7447_USB_MUX_COMPAT analogix_usbc_mux_anx7447

#define USB_MUX_CONFIG_ANX7447(mux_id, port_id, idx)                        \
	{                                                                   \
		USB_MUX_COMMON_FIELDS(mux_id, port_id, idx),                \
			.driver = &anx7447_usb_mux_driver,                  \
			.hpd_update = COND_CODE_1(                          \
				DT_PROP(mux_id, hpd_update_enable),         \
				(&anx7447_tcpc_update_hpd_status), (NULL)), \
	}

#endif /* __ZEPHYR_SHIM_ANX7447_USB_MUX_H */