diff options
author | Frank Li <Frank.Li@freescale.com> | 2010-03-15 18:24:16 +0800 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:17:22 +0200 |
commit | 6d6122849bf4d35a388158c0f293a4a78d3c722c (patch) | |
tree | 0a4e7ebebcdf0558c1b383bb8d881a17f40c43f7 /arch/arm/plat-mxs/regs-usbphy.h | |
parent | b22b67e8101e664052c360047b5f98714ea1f82a (diff) |
ENGR00121313-1 MX23 Enable USB host base new MSL
Enable MX23 usb host at new msl, use gpio to control vbus on/off
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm/plat-mxs/regs-usbphy.h')
-rw-r--r-- | arch/arm/plat-mxs/regs-usbphy.h | 95 |
1 files changed, 19 insertions, 76 deletions
diff --git a/arch/arm/plat-mxs/regs-usbphy.h b/arch/arm/plat-mxs/regs-usbphy.h index 5ab0152bc511..cf64bfdab0e6 100644 --- a/arch/arm/plat-mxs/regs-usbphy.h +++ b/arch/arm/plat-mxs/regs-usbphy.h @@ -1,5 +1,7 @@ /* - * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved. + * Freescale USBPHY Register Definitions + * + * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -11,30 +13,24 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * This file is created by xml file. Don't Edit it. + * + * Xml Revision: 1.52 + * Template revision: 26195 */ #ifndef __ARCH_ARM___USBPHY_H -#define __ARCH_ARM___USBPHY_H 1 +#define __ARCH_ARM___USBPHY_H -#define REGS_USBPHY_BASE (MX28_SOC_IO_VIRT_BASE + 0x7c000) -#define REGS_USBPHY_PHYS (0x8007C000) -#define REGS_USBPHY_SIZE 0x00002000 #define HW_USBPHY_PWD (0x00000000) #define HW_USBPHY_PWD_SET (0x00000004) #define HW_USBPHY_PWD_CLR (0x00000008) #define HW_USBPHY_PWD_TOG (0x0000000c) -#define HW_USBPHY_PWD_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_PWD) -#define HW_USBPHY_PWD_SET_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_PWD_SET) -#define HW_USBPHY_PWD_CLR_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_PWD_CLR) -#define HW_USBPHY_PWD_TOG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_PWD_TOG) #define BP_USBPHY_PWD_RSVD2 21 #define BM_USBPHY_PWD_RSVD2 0xFFE00000 @@ -60,14 +56,6 @@ #define HW_USBPHY_TX_SET (0x00000014) #define HW_USBPHY_TX_CLR (0x00000018) #define HW_USBPHY_TX_TOG (0x0000001c) -#define HW_USBPHY_TX_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_TX) -#define HW_USBPHY_TX_SET_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_TX_SET) -#define HW_USBPHY_TX_CLR_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_TX_CLR) -#define HW_USBPHY_TX_TOG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_TX_TOG) #define BP_USBPHY_TX_RSVD5 29 #define BM_USBPHY_TX_RSVD5 0xE0000000 @@ -112,14 +100,6 @@ #define HW_USBPHY_RX_SET (0x00000024) #define HW_USBPHY_RX_CLR (0x00000028) #define HW_USBPHY_RX_TOG (0x0000002c) -#define HW_USBPHY_RX_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_RX) -#define HW_USBPHY_RX_SET_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_RX_SET) -#define HW_USBPHY_RX_CLR_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_RX_CLR) -#define HW_USBPHY_RX_TOG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_RX_TOG) #define BP_USBPHY_RX_RSVD2 23 #define BM_USBPHY_RX_RSVD2 0xFF800000 @@ -144,24 +124,17 @@ #define HW_USBPHY_CTRL_SET (0x00000034) #define HW_USBPHY_CTRL_CLR (0x00000038) #define HW_USBPHY_CTRL_TOG (0x0000003c) -#define HW_USBPHY_CTRL_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_CTRL) -#define HW_USBPHY_CTRL_SET_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_CTRL_SET) -#define HW_USBPHY_CTRL_CLR_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_CTRL_CLR) -#define HW_USBPHY_CTRL_TOG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_CTRL_TOG) #define BM_USBPHY_CTRL_SFTRST 0x80000000 #define BM_USBPHY_CTRL_CLKGATE 0x40000000 #define BM_USBPHY_CTRL_UTMI_SUSPENDM 0x20000000 #define BM_USBPHY_CTRL_HOST_FORCE_LS_SE0 0x10000000 -#define BP_USBPHY_CTRL_RSVD3 14 -#define BM_USBPHY_CTRL_RSVD3 0x0FFFC000 -#define BF_USBPHY_CTRL_RSVD3(v) \ - (((v) << 14) & BM_USBPHY_CTRL_RSVD3) - +#define BM_USBPHY_CTRL_RSVD3 0x08000000 +#define BM_USBPHY_CTRL_ENAUTOSET_USBCLKS 0x04000000 +#define BM_USBPHY_CTRL_ENAUTOCLR_USBCLKGATE 0x02000000 +#define BM_USBPHY_CTRL_FSDLL_RST_EN 0x01000000 +#define BM_USBPHY_CTRL_ENVBUSCHG_WKUP 0x00800000 +#define BM_USBPHY_CTRL_ENIDCHG_WKUP 0x00400000 #define BM_USBPHY_CTRL_ENDPDMCHG_WKUP 0x00200000 #define BM_USBPHY_CTRL_ENAUTOCLR_PHY_PWD 0x00100000 #define BM_USBPHY_CTRL_ENAUTOCLR_CLKGATE 0x00080000 @@ -175,7 +148,7 @@ #define BM_USBPHY_CTRL_ENIRQDEVPLUGIN 0x00000800 #define BM_USBPHY_CTRL_RESUME_IRQ 0x00000400 #define BM_USBPHY_CTRL_ENIRQRESUMEDETECT 0x00000200 -#define BM_USBPHY_CTRL_RSVD2 0x00000100 +#define BM_USBPHY_CTRL_RESUMEIRQSTICKY 0x00000100 #define BM_USBPHY_CTRL_ENOTGIDDETECT 0x00000080 #define BM_USBPHY_CTRL_RSVD1 0x00000040 #define BM_USBPHY_CTRL_DEVPLUGIN_POLARITY 0x00000020 @@ -186,8 +159,6 @@ #define BM_USBPHY_CTRL_RSVD0 0x00000001 #define HW_USBPHY_STATUS (0x00000040) -#define HW_USBPHY_STATUS_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_STATUS) #define BP_USBPHY_STATUS_RSVD4 11 #define BM_USBPHY_STATUS_RSVD4 0xFFFFF800 @@ -212,14 +183,6 @@ #define HW_USBPHY_DEBUG_SET (0x00000054) #define HW_USBPHY_DEBUG_CLR (0x00000058) #define HW_USBPHY_DEBUG_TOG (0x0000005c) -#define HW_USBPHY_DEBUG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG) -#define HW_USBPHY_DEBUG_SET_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG_SET) -#define HW_USBPHY_DEBUG_CLR_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG_CLR) -#define HW_USBPHY_DEBUG_TOG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG_TOG) #define BM_USBPHY_DEBUG_RSVD3 0x80000000 #define BM_USBPHY_DEBUG_CLKGATE 0x40000000 @@ -262,8 +225,6 @@ #define BM_USBPHY_DEBUG_OTGIDPIOLOCK 0x00000001 #define HW_USBPHY_DEBUG0_STATUS (0x00000060) -#define HW_USBPHY_DEBUG0_STATUS_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG0_STATUS) #define BP_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT 26 #define BM_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT 0xFC000000 @@ -282,14 +243,6 @@ #define HW_USBPHY_DEBUG1_SET (0x00000074) #define HW_USBPHY_DEBUG1_CLR (0x00000078) #define HW_USBPHY_DEBUG1_TOG (0x0000007c) -#define HW_USBPHY_DEBUG1_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG1) -#define HW_USBPHY_DEBUG1_SET_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG1_SET) -#define HW_USBPHY_DEBUG1_CLR_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG1_CLR) -#define HW_USBPHY_DEBUG1_TOG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_DEBUG1_TOG) #define BP_USBPHY_DEBUG1_RSVD1 15 #define BM_USBPHY_DEBUG1_RSVD1 0xFFFF8000 @@ -310,8 +263,6 @@ (((v) << 0) & BM_USBPHY_DEBUG1_DBG_ADDRESS) #define HW_USBPHY_VERSION (0x00000080) -#define HW_USBPHY_VERSION_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_VERSION) #define BP_USBPHY_VERSION_MAJOR 24 #define BM_USBPHY_VERSION_MAJOR 0xFF000000 @@ -330,14 +281,6 @@ #define HW_USBPHY_IP_SET (0x00000094) #define HW_USBPHY_IP_CLR (0x00000098) #define HW_USBPHY_IP_TOG (0x0000009c) -#define HW_USBPHY_IP_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_IP) -#define HW_USBPHY_IP_SET_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_IP_SET) -#define HW_USBPHY_IP_CLR_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_IP_CLR) -#define HW_USBPHY_IP_TOG_ADDR \ - (REGS_USBPHY_BASE + HW_USBPHY_IP_TOG) #define BP_USBPHY_IP_RSVD1 25 #define BM_USBPHY_IP_RSVD1 0xFE000000 |