]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/include/asm/arch-mx6/sys_proto.h
ba739432606c10b061f7a6d21b662c3625c88f05
[people/ms/u-boot.git] / 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
10 #define USBPHY_PWD 0x00000000
11
12 #define USBPHY_PWD_RXPWDRX (1 << 20) /* receiver block power down */
13
14 #define is_usbotg_phy_active(void) (!(readl(USB_PHY0_BASE_ADDR + USBPHY_PWD) & \
15 USBPHY_PWD_RXPWDRX))