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