Path: blob/master/arch/arm/mach-exynos4/include/mach/regs-usb-phy.h
10820 views
/*1* Copyright (C) 2011 Samsung Electronics Co.Ltd2* Author: Joonyoung Shim <[email protected]>3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License as published by the6* Free Software Foundation; either version 2 of the License, or (at your7* option) any later version.8*/910#ifndef __PLAT_S5P_REGS_USB_PHY_H11#define __PLAT_S5P_REGS_USB_PHY_H1213#define EXYNOS4_HSOTG_PHYREG(x) ((x) + S3C_VA_USB_HSPHY)1415#define EXYNOS4_PHYPWR EXYNOS4_HSOTG_PHYREG(0x00)16#define PHY1_HSIC_NORMAL_MASK (0xf << 9)17#define PHY1_HSIC1_SLEEP (1 << 12)18#define PHY1_HSIC1_FORCE_SUSPEND (1 << 11)19#define PHY1_HSIC0_SLEEP (1 << 10)20#define PHY1_HSIC0_FORCE_SUSPEND (1 << 9)2122#define PHY1_STD_NORMAL_MASK (0x7 << 6)23#define PHY1_STD_SLEEP (1 << 8)24#define PHY1_STD_ANALOG_POWERDOWN (1 << 7)25#define PHY1_STD_FORCE_SUSPEND (1 << 6)2627#define PHY0_NORMAL_MASK (0x39 << 0)28#define PHY0_SLEEP (1 << 5)29#define PHY0_OTG_DISABLE (1 << 4)30#define PHY0_ANALOG_POWERDOWN (1 << 3)31#define PHY0_FORCE_SUSPEND (1 << 0)3233#define EXYNOS4_PHYCLK EXYNOS4_HSOTG_PHYREG(0x04)34#define PHY1_COMMON_ON_N (1 << 7)35#define PHY0_COMMON_ON_N (1 << 4)36#define PHY0_ID_PULLUP (1 << 2)37#define CLKSEL_MASK (0x3 << 0)38#define CLKSEL_SHIFT (0)39#define CLKSEL_48M (0x0 << 0)40#define CLKSEL_12M (0x2 << 0)41#define CLKSEL_24M (0x3 << 0)4243#define EXYNOS4_RSTCON EXYNOS4_HSOTG_PHYREG(0x08)44#define HOST_LINK_PORT_SWRST_MASK (0xf << 6)45#define HOST_LINK_PORT2_SWRST (1 << 9)46#define HOST_LINK_PORT1_SWRST (1 << 8)47#define HOST_LINK_PORT0_SWRST (1 << 7)48#define HOST_LINK_ALL_SWRST (1 << 6)4950#define PHY1_SWRST_MASK (0x7 << 3)51#define PHY1_HSIC_SWRST (1 << 5)52#define PHY1_STD_SWRST (1 << 4)53#define PHY1_ALL_SWRST (1 << 3)5455#define PHY0_SWRST_MASK (0x7 << 0)56#define PHY0_PHYLINK_SWRST (1 << 2)57#define PHY0_HLINK_SWRST (1 << 1)58#define PHY0_SWRST (1 << 0)5960#define EXYNOS4_PHY1CON EXYNOS4_HSOTG_PHYREG(0x34)61#define FPENABLEN (1 << 0)6263#endif /* __PLAT_S5P_REGS_USB_PHY_H */646566