]> git.sur5r.net Git - u-boot/blob - arch/arm/include/asm/arch-mx6/sys_proto.h
72ab7d814fc96e56e845377e9153bd0a38c6f6fa
[u-boot] / arch / arm / include / asm / arch-mx6 / sys_proto.h
1 /*
2  * (C) Copyright 2009
3  * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <asm/mach-imx/sys_proto.h>
9 #include <asm/arch/iomux.h>
10
11 #define USBPHY_PWD              0x00000000
12
13 #define USBPHY_PWD_RXPWDRX      (1 << 20) /* receiver block power down */
14
15 #define is_usbotg_phy_active(void) (!(readl(USB_PHY0_BASE_ADDR + USBPHY_PWD) & \
16                                    USBPHY_PWD_RXPWDRX))
17
18 int imx6_pcie_toggle_power(void);
19 int imx6_pcie_toggle_reset(void);
20
21 /**
22  * iomuxc_set_rgmii_io_voltage - set voltage level of RGMII/USB pins
23  *
24  * @param io_vol - the voltage IO level of pins
25  */
26 static inline void iomuxc_set_rgmii_io_voltage(int io_vol)
27 {
28         __raw_writel(io_vol, IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII);
29 }