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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
* Xilinx ZynqMP PHY header
*
* Copyright (C) 2016 Xilinx, Inc.
*
* Author: Anurag Kumar Vulisha <anuragku@xilinx.com>
* Author: Hyun Woo Kwon <hyunk@xilinx.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _PHY_ZYNQMP_H_
#define _PHY_ZYNQMP_H_
struct phy;
#if defined(CONFIG_PHY_XILINX_ZYNQMP)
extern int xpsgtr_override_deemph(struct phy *phy, u8 plvl, u8 vlvl);
extern int xpsgtr_margining_factor(struct phy *phy, u8 plvl, u8 vlvl);
extern int xpsgtr_wait_pll_lock(struct phy *phy);
int xpsgtr_usb_crst_assert(struct phy *phy);
int xpsgtr_usb_crst_release(struct phy *phy);
#else
static inline int xpsgtr_override_deemph(struct phy *base, u8 plvl, u8 vlvl)
{
return -ENODEV;
}
static inline int xpsgtr_margining_factor(struct phy *base, u8 plvl, u8 vlvl)
{
return -ENODEV;
}
extern inline int xpsgtr_wait_pll_lock(struct phy *phy)
{
return -ENODEV;
}
extern inline int xpsgtr_usb_crst_assert(struct phy *phy)
{
return -ENODEV;
}
extern inline int xpsgtr_usb_crst_release(struct phy *phy)
{
return -ENODEV;
}
#endif
#endif /* _PHY_ZYNQMP_H_ */
|