summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/usbc/anx7447_usb_mux.h
blob: 874958c04c964695976c47b07cade22f1be19b4e (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)                                      \
	{                                                                   \
		USB_MUX_COMMON_FIELDS(mux_id),                              \
			.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 */