Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * phy-common-props.h -- Common properties for generic PHYs
4 *
5 * Copyright 2025 NXP
6 */
7
8#ifndef __PHY_COMMON_PROPS_H
9#define __PHY_COMMON_PROPS_H
10
11#include <dt-bindings/phy/phy.h>
12
13struct fwnode_handle;
14
15int __must_check phy_get_rx_polarity(struct fwnode_handle *fwnode,
16 const char *mode_name,
17 unsigned int supported,
18 unsigned int default_val,
19 unsigned int *val);
20int __must_check phy_get_tx_polarity(struct fwnode_handle *fwnode,
21 const char *mode_name,
22 unsigned int supported,
23 unsigned int default_val,
24 unsigned int *val);
25int __must_check phy_get_manual_rx_polarity(struct fwnode_handle *fwnode,
26 const char *mode_name,
27 unsigned int *val);
28int __must_check phy_get_manual_tx_polarity(struct fwnode_handle *fwnode,
29 const char *mode_name,
30 unsigned int *val);
31
32#endif /* __PHY_COMMON_PROPS_H */