ARM: S3C2416: Add USB Phy register definitions
authorThomas Abraham <thomas.ab@samsung.com>
Sat, 7 May 2011 20:24:49 +0000 (22:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 21:16:54 +0000 (14:16 -0700)
Add register definitions required to configure the USB Phy. The definitions
for PHYCTRL, PHYPWR, URSTCON and UCLKCON registers and corresponding bit
field definitions are added.

Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-s3c2410/include/mach/regs-s3c2443-clock.h

index 44494a56e68b6e3c3fceee465b0311b7df3aae23..5e06c72658358ef3d263b84e61766635b03c37b3 100644 (file)
 #define S3C2443_SYSID                  S3C2443_CLKREG(0x5C)
 #define S3C2443_PWRCFG                 S3C2443_CLKREG(0x60)
 #define S3C2443_RSTCON                 S3C2443_CLKREG(0x64)
+#define S3C2443_PHYCTRL                        S3C2443_CLKREG(0x80)
+#define S3C2443_PHYPWR                 S3C2443_CLKREG(0x84)
+#define S3C2443_URSTCON                        S3C2443_CLKREG(0x88)
+#define S3C2443_UCLKCON                        S3C2443_CLKREG(0x8C)
 
 #define S3C2443_SWRST_RESET            (0x533c2443)
 
 
 #define S3C2443_PWRCFG_SLEEP           (1<<15)
 
+#define S3C2443_PWRCFG_USBPHY          (1 << 4)
+
+#define S3C2443_URSTCON_FUNCRST                (1 << 2)
+#define S3C2443_URSTCON_PHYRST         (1 << 0)
+
+#define S3C2443_PHYCTRL_CLKSEL         (1 << 3)
+#define S3C2443_PHYCTRL_EXTCLK         (1 << 2)
+#define S3C2443_PHYCTRL_PLLSEL         (1 << 1)
+#define S3C2443_PHYCTRL_DSPORT         (1 << 0)
+
+#define S3C2443_PHYPWR_COMMON_ON       (1 << 31)
+#define S3C2443_PHYPWR_ANALOG_PD       (1 << 4)
+#define S3C2443_PHYPWR_PLL_REFCLK      (1 << 3)
+#define S3C2443_PHYPWR_XO_ON           (1 << 2)
+#define S3C2443_PHYPWR_PLL_PWRDN       (1 << 1)
+#define S3C2443_PHYPWR_FSUSPEND                (1 << 0)
+
+#define S3C2443_UCLKCON_DETECT_VBUS    (1 << 31)
+#define S3C2443_UCLKCON_FUNC_CLKEN     (1 << 2)
+#define S3C2443_UCLKCON_TCLKEN         (1 << 0)
+
 #include <asm/div64.h>
 
 static inline unsigned int