]>
Commit | Line | Data |
---|---|---|
23608e23 JL |
1 | /* |
2 | * (C) Copyright 2009 | |
3 | * Stefano Babic, DENX Software Engineering, sbabic@denx.de. | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
23608e23 JL |
6 | */ |
7 | ||
90d0e38c LM |
8 | #ifndef __SYS_PROTO_IMX6_ |
9 | #define __SYS_PROTO_IMX6_ | |
10 | ||
552a848e | 11 | #include <asm/mach-imx/sys_proto.h> |
ec1b2697 | 12 | #include <asm/arch/iomux.h> |
7d289d62 SA |
13 | |
14 | #define USBPHY_PWD 0x00000000 | |
15 | ||
16 | #define USBPHY_PWD_RXPWDRX (1 << 20) /* receiver block power down */ | |
17 | ||
18 | #define is_usbotg_phy_active(void) (!(readl(USB_PHY0_BASE_ADDR + USBPHY_PWD) & \ | |
19 | USBPHY_PWD_RXPWDRX)) | |
e2000731 DD |
20 | |
21 | int imx6_pcie_toggle_power(void); | |
22 | int imx6_pcie_toggle_reset(void); | |
ec1b2697 LM |
23 | |
24 | /** | |
25 | * iomuxc_set_rgmii_io_voltage - set voltage level of RGMII/USB pins | |
26 | * | |
27 | * @param io_vol - the voltage IO level of pins | |
28 | */ | |
29 | static inline void iomuxc_set_rgmii_io_voltage(int io_vol) | |
30 | { | |
31 | __raw_writel(io_vol, IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII); | |
32 | } | |
90d0e38c LM |
33 | |
34 | #endif /* __SYS_PROTO_IMX6_ */ |