mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 02:38:56 +00:00
ec1b26973c
This commit provides generic function to set the RGMII/HSIC IO voltage level on iMX6 devices. Signed-off-by: Lukasz Majewski <lukma@denx.de>
29 lines
729 B
C
29 lines
729 B
C
/*
|
|
* (C) Copyright 2009
|
|
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <asm/mach-imx/sys_proto.h>
|
|
#include <asm/arch/iomux.h>
|
|
|
|
#define USBPHY_PWD 0x00000000
|
|
|
|
#define USBPHY_PWD_RXPWDRX (1 << 20) /* receiver block power down */
|
|
|
|
#define is_usbotg_phy_active(void) (!(readl(USB_PHY0_BASE_ADDR + USBPHY_PWD) & \
|
|
USBPHY_PWD_RXPWDRX))
|
|
|
|
int imx6_pcie_toggle_power(void);
|
|
int imx6_pcie_toggle_reset(void);
|
|
|
|
/**
|
|
* iomuxc_set_rgmii_io_voltage - set voltage level of RGMII/USB pins
|
|
*
|
|
* @param io_vol - the voltage IO level of pins
|
|
*/
|
|
static inline void iomuxc_set_rgmii_io_voltage(int io_vol)
|
|
{
|
|
__raw_writel(io_vol, IOMUXC_SW_PAD_CTL_GRP_DDR_TYPE_RGMII);
|
|
}
|