/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * This file was automatically generated by headergen, DO NOT EDIT it. * headergen version: 3.0.0 * stmp3600 version: 2.4.0 * stmp3600 authors: Amaury Pouly * * Copyright (C) 2015 by the authors * * 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 the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #ifndef __HEADERGEN_STMP3600_USBPHY_H__ #define __HEADERGEN_STMP3600_USBPHY_H__ #define HW_USBPHY_PWD HW(USBPHY_PWD) #define HWA_USBPHY_PWD (0x8007c000 + 0x0) #define HWT_USBPHY_PWD HWIO_32_RW #define HWN_USBPHY_PWD USBPHY_PWD #define HWI_USBPHY_PWD #define HW_USBPHY_PWD_SET HW(USBPHY_PWD_SET) #define HWA_USBPHY_PWD_SET (HWA_USBPHY_PWD + 0x4) #define HWT_USBPHY_PWD_SET HWIO_32_WO #define HWN_USBPHY_PWD_SET USBPHY_PWD #define HWI_USBPHY_PWD_SET #define HW_USBPHY_PWD_CLR HW(USBPHY_PWD_CLR) #define HWA_USBPHY_PWD_CLR (HWA_USBPHY_PWD + 0x8) #define HWT_USBPHY_PWD_CLR HWIO_32_WO #define HWN_USBPHY_PWD_CLR USBPHY_PWD #define HWI_USBPHY_PWD_CLR #define HW_USBPHY_PWD_TOG HW(USBPHY_PWD_TOG) #define HWA_USBPHY_PWD_TOG (HWA_USBPHY_PWD + 0xc) #define HWT_USBPHY_PWD_TOG HWIO_32_WO #define HWN_USBPHY_PWD_TOG USBPHY_PWD #define HWI_USBPHY_PWD_TOG #define BP_USBPHY_PWD_RXPWDRX 20 #define BM_USBPHY_PWD_RXPWDRX 0x100000 #define BF_USBPHY_PWD_RXPWDRX(v) (((v) & 0x1) << 20) #define BFM_USBPHY_PWD_RXPWDRX(v) BM_USBPHY_PWD_RXPWDRX #define BF_USBPHY_PWD_RXPWDRX_V(e) BF_USBPHY_PWD_RXPWDRX(BV_USBPHY_PWD_RXPWDRX__##e) #define BFM_USBPHY_PWD_RXPWDRX_V(v) BM_USBPHY_PWD_RXPWDRX #define BP_USBPHY_PWD_RXPWDDIFF 19 #define BM_USBPHY_PWD_RXPWDDIFF 0x80000 #define BF_USBPHY_PWD_RXPWDDIFF(v) (((v) & 0x1) << 19) #define BFM_USBPHY_PWD_RXPWDDIFF(v) BM_USBPHY_PWD_RXPWDDIFF #define BF_USBPHY_PWD_RXPWDDIFF_V(e) BF_USBPHY_PWD_RXPWDDIFF(BV_USBPHY_PWD_RXPWDDIFF__##e) #define BFM_USBPHY_PWD_RXPWDDIFF_V(v) BM_USBPHY_PWD_RXPWDDIFF #define BP_USBPHY_PWD_RXPWD1PT1 18 #define BM_USBPHY_PWD_RXPWD1PT1 0x40000 #define BF_USBPHY_PWD_RXPWD1PT1(v) (((v) & 0x1) << 18) #define BFM_USBPHY_PWD_RXPWD1PT1(v) BM_USBPHY_PWD_RXPWD1PT1 #define BF_USBPHY_PWD_RXPWD1PT1_V(e) BF_USBPHY_PWD_RXPWD1PT1(BV_USBPHY_PWD_RXPWD1PT1__##e) #define BFM_USBPHY_PWD_RXPWD1PT1_V(v) BM_USBPHY_PWD_RXPWD1PT1 #define BP_USBPHY_PWD_RXPWDENV 17 #define BM_USBPHY_PWD_RXPWDENV 0x20000 #define BF_USBPHY_PWD_RXPWDENV(v) (((v) & 0x1) << 17) #define BFM_USBPHY_PWD_RXPWDENV(v) BM_USBPHY_PWD_RXPWDENV #define BF_USBPHY_PWD_RXPWDENV_V(e) BF_USBPHY_PWD_RXPWDENV(BV_USBPHY_PWD_RXPWDENV__##e) #define BFM_USBPHY_PWD_RXPWDENV_V(v) BM_USBPHY_PWD_RXPWDENV #define BP_USBPHY_PWD_TXPWDCOMP 14 #define BM_USBPHY_PWD_TXPWDCOMP 0x4000 #define BF_USBPHY_PWD_TXPWDCOMP(v) (((v) & 0x1) << 14) #define BFM_USBPHY_PWD_TXPWDCOMP(v) BM_USBPHY_PWD_TXPWDCOMP #define BF_USBPHY_PWD_TXPWDCOMP_V(e) BF_USBPHY_PWD_TXPWDCOMP(BV_USBPHY_PWD_TXPWDCOMP__##e) #define BFM_USBPHY_PWD_TXPWDCOMP_V(v) BM_USBPHY_PWD_TXPWDCOMP #define BP_USBPHY_PWD_TXPWDVBG 13 #define BM_USBPHY_PWD_TXPWDVBG 0x2000 #define BF_USBPHY_PWD_TXPWDVBG(v) (((v) & 0x1) << 13) #define BFM_USBPHY_PWD_TXPWDVBG(v) BM_USBPHY_PWD_TXPWDVBG #define BF_USBPHY_PWD_TXPWDVBG_V(e) BF_USBPHY_PWD_TXPWDVBG(BV_USBPHY_PWD_TXPWDVBG__##e) #define BFM_USBPHY_PWD_TXPWDVBG_V(v) BM_USBPHY_PWD_TXPWDVBG #define BP_USBPHY_PWD_TXPWDV2I 12 #define BM_USBPHY_PWD_TXPWDV2I 0x1000 #define BF_USBPHY_PWD_TXPWDV2I(v) (((v) & 0x1) << 12) #define BFM_USBPHY_PWD_TXPWDV2I(v) BM_USBPHY_PWD_TXPWDV2I #define BF_USBPHY_PWD_TXPWDV2I_V(e) BF_USBPHY_PWD_TXPWDV2I(BV_USBPHY_PWD_TXPWDV2I__##e) #define BFM_USBPHY_PWD_TXPWDV2I_V(v) BM_USBPHY_PWD_TXPWDV2I #define BP_USBPHY_PWD_TXPWDIBIAS 11 #define BM_USBPHY_PWD_TXPWDIBIAS 0x800 #define BF_USBPHY_PWD_TXPWDIBIAS(v) (((v) & 0x1) << 11) #define BFM_USBPHY_PWD_TXPWDIBIAS(v) BM_USBPHY_PWD_TXPWDIBIAS #define BF_USBPHY_PWD_TXPWDIBIAS_V(e) BF_USBPHY_PWD_TXPWDIBIAS(BV_USBPHY_PWD_TXPWDIBIAS__##e) #define BFM_USBPHY_PWD_TXPWDIBIAS_V(v) BM_USBPHY_PWD_TXPWDIBIAS #define BP_USBPHY_PWD_TXPWDFS 10 #define BM_USBPHY_PWD_TXPWDFS 0x400 #define BF_USBPHY_PWD_TXPWDFS(v) (((v) & 0x1) << 10) #define BFM_USBPHY_PWD_TXPWDFS(v) BM_USBPHY_PWD_TXPWDFS #define BF_USBPHY_PWD_TXPWDFS_V(e) BF_USBPHY_PWD_TXPWDFS(BV_USBPHY_PWD_TXPWDFS__##e) #define BFM_USBPHY_PWD_TXPWDFS_V(v) BM_USBPHY_PWD_TXPWDFS #define HW_USBPHY_TX HW(USBPHY_TX) #define HWA_USBPHY_TX (0x8007c000 + 0x10) #define HWT_USBPHY_TX HWIO_32_RW #define HWN_USBPHY_TX USBPHY_TX #define HWI_USBPHY_TX #define HW_USBPHY_TX_SET HW(USBPHY_TX_SET) #define HWA_USBPHY_TX_SET (HWA_USBPHY_TX + 0x4) #define HWT_USBPHY_TX_SET HWIO_32_WO #define HWN_USBPHY_TX_SET USBPHY_TX #define HWI_USBPHY_TX_SET #define HW_USBPHY_TX_CLR HW(USBPHY_TX_CLR) #define HWA_USBPHY_TX_CLR (HWA_USBPHY_TX + 0x8) #define HWT_USBPHY_TX_CLR HWIO_32_WO #define HWN_USBPHY_TX_CLR USBPHY_TX #define HWI_USBPHY_TX_CLR #define HW_USBPHY_TX_TOG HW(USBPHY_TX_TOG) #define HWA_USBPHY_TX_TOG (HWA_USBPHY_TX + 0xc) #define HWT_USBPHY_TX_TOG HWIO_32_WO #define HWN_USBPHY_TX_TOG USBPHY_TX #define HWI_USBPHY_TX_TOG #define BP_USBPHY_TX_TXCMPOUT_STATUS 23 #define BM_USBPHY_TX_TXCMPOUT_STATUS 0x800000 #define BF_USBPHY_TX_TXCMPOUT_STATUS(v) (((v) & 0x1) << 23) #define BFM_USBPHY_TX_TXCMPOUT_STATUS(v) BM_USBPHY_TX_TXCMPOUT_STATUS #define BF_USBPHY_TX_TXCMPOUT_STATUS_V(e) BF_USBPHY_TX_TXCMPOUT_STATUS(BV_USBPHY_TX_TXCMPOUT_STATUS__##e) #define BFM_USBPHY_TX_TXCMPOUT_STATUS_V(v) BM_USBPHY_TX_TXCMPOUT_STATUS #define BP_USBPHY_TX_TXENCAL45DP 21 #define BM_USBPHY_TX_TXENCAL45DP 0x200000 #define BF_USBPHY_TX_TXENCAL45DP(v) (((v) & 0x1) << 21) #define BFM_USBPHY_TX_TXENCAL45DP(v) BM_USBPHY_TX_TXENCAL45DP #define BF_USBPHY_TX_TXENCAL45DP_V(e) BF_USBPHY_TX_TXENCAL45DP(BV_USBPHY_TX_TXENCAL45DP__##e) #define BFM_USBPHY_TX_TXENCAL45DP_V(v) BM_USBPHY_TX_TXENCAL45DP #define BP_USBPHY_TX_TXCAL45DP 16 #define BM_USBPHY_TX_TXCAL45DP 0x1f0000 #define BF_USBPHY_TX_TXCAL45DP(v) (((v) & 0x1f) << 16) #define BFM_USBPHY_TX_TXCAL45DP(v) BM_USBPHY_TX_TXCAL45DP #define BF_USBPHY_TX_TXCAL45DP_V(e) BF_USBPHY_TX_TXCAL45DP(BV_USBPHY_TX_TXCAL45DP__##e) #define BFM_USBPHY_TX_TXCAL45DP_V(v) BM_USBPHY_TX_TXCAL45DP #define BP_USBPHY_TX_TXENCAL45DN 13 #define BM_USBPHY_TX_TXENCAL45DN 0x2000 #define BF_USBPHY_TX_TXENCAL45DN(v) (((v) & 0x1) << 13) #define BFM_USBPHY_TX_TXENCAL45DN(v) BM_USBPHY_TX_TXENCAL45DN #define BF_USBPHY_TX_TXENCAL45DN_V(e) BF_USBPHY_TX_TXENCAL45DN(BV_USBPHY_TX_TXENCAL45DN__##e) #define BFM_USBPHY_TX_TXENCAL45DN_V(v) BM_USBPHY_TX_TXENCAL45DN #define BP_USBPHY_TX_TXCAL45DN 8 #define BM_USBPHY_TX_TXCAL45DN 0x1f00 #define BF_USBPHY_TX_TXCAL45DN(v) (((v) & 0x1f) << 8) #define BFM_USBPHY_TX_TXCAL45DN(v) BM_USBPHY_TX_TXCAL45DN #define BF_USBPHY_TX_TXCAL45DN_V(e) BF_USBPHY_TX_TXCAL45DN(BV_USBPHY_TX_TXCAL45DN__##e) #define BFM_USBPHY_TX_TXCAL45DN_V(v) BM_USBPHY_TX_TXCAL45DN #define BP_USBPHY_TX_TXCALIBRATE 7 #define BM_USBPHY_TX_TXCALIBRATE 0x80 #define BF_USBPHY_TX_TXCALIBRATE(v) (((v) & 0x1) << 7) #define BFM_USBPHY_TX_TXCALIBRATE(v) BM_USBPHY_TX_TXCALIBRATE #define BF_USBPHY_TX_TXCALIBRATE_V(e) BF_USBPHY_TX_TXCALIBRATE(BV_USBPHY_TX_TXCALIBRATE__##e) #define BFM_USBPHY_TX_TXCALIBRATE_V(v) BM_USBPHY_TX_TXCALIBRATE #define HW_USBPHY_RX HW(USBPHY_RX) #define HWA_USBPHY_RX (0x8007c000 + 0x20) #define HWT_USBPHY_RX HWIO_32_RW #define HWN_USBPHY_RX USBPHY_RX #define HWI_USBPHY_RX #define HW_USBPHY_RX_SET HW(USBPHY_RX_SET) #define HWA_USBPHY_RX_SET (HWA_USBPHY_RX + 0x4) #define HWT_USBPHY_RX_SET HWIO_32_WO #define HWN_USBPHY_RX_SET USBPHY_RX #define HWI_USBPHY_RX_SET #define HW_USBPHY_RX_CLR HW(USBPHY_RX_CLR) #define HWA_USBPHY_RX_CLR (HWA_USBPHY_RX + 0x8) #define HWT_USBPHY_RX_CLR HWIO_32_WO #define HWN_USBPHY_RX_CLR USBPHY_RX #define HWI_USBPHY_RX_CLR #define HW_USBPHY_RX_TOG HW(USBPHY_RX_TOG) #define HWA_USBPHY_RX_TOG (HWA_USBPHY_RX + 0xc) #define HWT_USBPHY_RX_TOG HWIO_32_WO #define HWN_USBPHY_RX_TOG USBPHY_RX #define HWI_USBPHY_RX_TOG #define BP_USBPHY_RX_RXDBYPASS 22 #define BM_USBPHY_RX_RXDBYPASS 0x400000 #define BF_USBPHY_RX_RXDBYPASS(v) (((v) & 0x1) << 22) #define BFM_USBPHY_RX_RXDBYPASS(v) BM_USBPHY_RX_RXDBYPASS #define BF_USBPHY_RX_RXDBYPASS_V(e) BF_USBPHY_RX_RXDBYPASS(BV_USBPHY_RX_RXDBYPASS__##e) #define BFM_USBPHY_RX_RXDBYPASS_V(v) BM_USBPHY_RX_RXDBYPASS #define BP_USBPHY_RX_DISCONADJ 4 #define BM_USBPHY_RX_DISCONADJ 0x30 #define BF_USBPHY_RX_DISCONADJ(v) (((v) & 0x3) << 4) #define BFM_USBPHY_RX_DISCONADJ(v) BM_USBPHY_RX_DISCONADJ #define BF_USBPHY_RX_DISCONADJ_V(e) BF_USBPHY_RX_DISCONADJ(BV_USBPHY_RX_DISCONADJ__##e) #define BFM_USBPHY_RX_DISCONADJ_V(v) BM_USBPHY_RX_DISCONADJ #define BP_USBPHY_RX_ENVADJ 0 #define BM_USBPHY_RX_ENVADJ 0x3 #define BF_USBPHY_RX_ENVADJ(v) (((v) & 0x3) << 0) #define BFM_USBPHY_RX_ENVADJ(v) BM_USBPHY_RX_ENVADJ #define BF_USBPHY_RX_ENVADJ_V(e) BF_USBPHY_RX_ENVADJ(BV_USBPHY_RX_ENVADJ__##e) #define BFM_USBPHY_RX_ENVADJ_V(v) BM_USBPHY_RX_ENVADJ #define HW_USBPHY_CTRL HW(USBPHY_CTRL) #define HWA_USBPHY_CTRL (0x8007c000 + 0x30) #define HWT_USBPHY_CTRL HWIO_32_RW #define HWN_USBPHY_CTRL USBPHY_CTRL #define HWI_USBPHY_CTRL #define HW_USBPHY_CTRL_SET HW(USBPHY_CTRL_SET) #define HWA_USBPHY_CTRL_SET (HWA_USBPHY_CTRL + 0x4) #define HWT_USBPHY_CTRL_SET HWIO_32_WO #define HWN_USBPHY_CTRL_SET USBPHY_CTRL #define HWI_USBPHY_CTRL_SET #define HW_USBPHY_CTRL_CLR HW(USBPHY_CTRL_CLR) #define HWA_USBPHY_CTRL_CLR (HWA_USBPHY_CTRL + 0x8) #define HWT_USBPHY_CTRL_CLR HWIO_32_WO #define HWN_USBPHY_CTRL_CLR USBPHY_CTRL #define HWI_USBPHY_CTRL_CLR #define HW_USBPHY_CTRL_TOG HW(USBPHY_CTRL_TOG) #define HWA_USBPHY_CTRL_TOG (HWA_USBPHY_CTRL + 0xc) #define HWT_USBPHY_CTRL_TOG HWIO_32_WO #define HWN_USBPHY_CTRL_TOG USBPHY_CTRL #define HWI_USBPHY_CTRL_TOG #define BP_USBPHY_CTRL_SFTRST 31 #define BM_USBPHY_CTRL_SFTRST 0x80000000 #define BF_USBPHY_CTRL_SFTRST(v) (((v) & 0x1) << 31) #define BFM_USBPHY_CTRL_SFTRST(v) BM_USBPHY_CTRL_SFTRST #define BF_USBPHY_CTRL_SFTRST_V(e) BF_USBPHY_CTRL_SFTRST(BV_USBPHY_CTRL_SFTRST__##e) #define BFM_USBPHY_CTRL_SFTRST_V(v) BM_USBPHY_CTRL_SFTRST #define BP_USBPHY_CTRL_CLKGATE 30 #define BM_USBPHY_CTRL_CLKGATE 0x40000000 #define BF_USBPHY_CTRL_CLKGATE(v) (((v) & 0x1) << 30) #define BFM_USBPHY_CTRL_CLKGATE(v) BM_USBPHY_CTRL_CLKGATE #define BF_USBPHY_CTRL_CLKGATE_V(e) BF_USBPHY_CTRL_CLKGATE(BV_USBPHY_CTRL_CLKGATE__##e) #define BFM_USBPHY_CTRL_CLKGATE_V(v) BM_USBPHY_CTRL_CLKGATE #define BP_USBPHY_CTRL_UTMI_SUSPENDM 29 #define BM_USBPHY_CTRL_UTMI_SUSPENDM 0x20000000 #define BF_USBPHY_CTRL_UTMI_SUSPENDM(v) (((v) & 0x1) << 29) #define BFM_USBPHY_CTRL_UTMI_SUSPENDM(v) BM_USBPHY_CTRL_UTMI_SUSPENDM #define BF_USBPHY_CTRL_UTMI_SUSPENDM_V(e) BF_USBPHY_CTRL_UTMI_SUSPENDM(BV_USBPHY_CTRL_UTMI_SUSPENDM__##e) #define BFM_USBPHY_CTRL_UTMI_SUSPENDM_V(v) BM_USBPHY_CTRL_UTMI_SUSPENDM #define BP_USBPHY_CTRL_RESUME_IRQ 10 #define BM_USBPHY_CTRL_RESUME_IRQ 0x400 #define BF_USBPHY_CTRL_RESUME_IRQ(v) (((v) & 0x1) << 10) #define BFM_USBPHY_CTRL_RESUME_IRQ(v) BM_USBPHY_CTRL_RESUME_IRQ #define BF_USBPHY_CTRL_RESUME_IRQ_V(e) BF_USBPHY_CTRL_RESUME_IRQ(BV_USBPHY_CTRL_RESUME_IRQ__##e) #define BFM_USBPHY_CTRL_RESUME_IRQ_V(v) BM_USBPHY_CTRL_RESUME_IRQ #define BP_USBPHY_CTRL_ENIRQRESUMEDETECT 9 #define BM_USBPHY_CTRL_ENIRQRESUMEDETECT 0x200 #define BF_USBPHY_CTRL_ENIRQRESUMEDETECT(v) (((v) & 0x1) << 9) #define BFM_USBPHY_CTRL_ENIRQRESUMEDETECT(v) BM_USBPHY_CTRL_ENIRQRESUMEDETECT #define BF_USBPHY_CTRL_ENIRQRESUMEDETECT_V(e) BF_USBPHY_CTRL_ENIRQRESUMEDETECT(BV_USBPHY_CTRL_ENIRQRESUMEDETECT__##e) #define BFM_USBPHY_CTRL_ENIRQRESUMEDETECT_V(v) BM_USBPHY_CTRL_ENIRQRESUMEDETECT #define BP_USBPHY_CTRL_ENOTGIDDETECT 7 #define BM_USBPHY_CTRL_ENOTGIDDETECT 0x80 #define BF_USBPHY_CTRL_ENOTGIDDETECT(v) (((v) & 0x1) << 7) #define BFM_USBPHY_CTRL_ENOTGIDDETECT(v) BM_USBPHY_CTRL_ENOTGIDDETECT #define BF_USBPHY_CTRL_ENOTGIDDETECT_V(e) BF_USBPHY_CTRL_ENOTGIDDETECT(BV_USBPHY_CTRL_ENOTGIDDETECT__##e) #define BFM_USBPHY_CTRL_ENOTGIDDETECT_V(v) BM_USBPHY_CTRL_ENOTGIDDETECT #define BP_USBPHY_CTRL_ENDEVPLUGINDETECT 4 #define BM_USBPHY_CTRL_ENDEVPLUGINDETECT 0x10 #define BF_USBPHY_CTRL_ENDEVPLUGINDETECT(v) (((v) & 0x1) << 4) #define BFM_USBPHY_CTRL_ENDEVPLUGINDETECT(v) BM_USBPHY_CTRL_ENDEVPLUGINDETECT #define BF_USBPHY_CTRL_ENDEVPLUGINDETECT_V(e) BF_USBPHY_CTRL_ENDEVPLUGINDETECT(BV_USBPHY_CTRL_ENDEVPLUGINDETECT__##e) #define BFM_USBPHY_CTRL_ENDEVPLUGINDETECT_V(v) BM_USBPHY_CTRL_ENDEVPLUGINDETECT #define BP_USBPHY_CTRL_HOSTDISCONDETECT_IRQ 3 #define BM_USBPHY_CTRL_HOSTDISCONDETECT_IRQ 0x8 #define BF_USBPHY_CTRL_HOSTDISCONDETECT_IRQ(v) (((v) & 0x1) << 3) #define BFM_USBPHY_CTRL_HOSTDISCONDETECT_IRQ(v) BM_USBPHY_CTRL_HOSTDISCONDETECT_IRQ #define BF_USBPHY_CTRL_HOSTDISCONDETECT_IRQ_V(e) BF_USBPHY_CTRL_HOSTDISCONDETECT_IRQ(BV_USBPHY_CTRL_HOSTDISCONDETECT_IRQ__##e) #define BFM_USBPHY_CTRL_HOSTDISCONDETECT_IRQ_V(v) BM_USBPHY_CTRL_HOSTDISCONDETECT_IRQ #define BP_USBPHY_CTRL_ENIRQHOSTDISCON 2 #define BM_USBPHY_CTRL_ENIRQHOSTDISCON 0x4 #define BF_USBPHY_CTRL_ENIRQHOSTDISCON(v) (((v) & 0x1) << 2) #define BFM_USBPHY_CTRL_ENIRQHOSTDISCON(v) BM_USBPHY_CTRL_ENIRQHOSTDISCON #define BF_USBPHY_CTRL_ENIRQHOSTDISCON_V(e) BF_USBPHY_CTRL_ENIRQHOSTDISCON(BV_USBPHY_CTRL_ENIRQHOSTDISCON__##e) #define BFM_USBPHY_CTRL_ENIRQHOSTDISCON_V(v) BM_USBPHY_CTRL_ENIRQHOSTDISCON #define BP_USBPHY_CTRL_ENHOSTDISCONDETECT 1 #define BM_USBPHY_CTRL_ENHOSTDISCONDETECT 0x2 #define BF_USBPHY_CTRL_ENHOSTDISCONDETECT(v) (((v) & 0x1) << 1) #define BFM_USBPHY_CTRL_ENHOSTDISCONDETECT(v) BM_USBPHY_CTRL_ENHOSTDISCONDETECT #define BF_USBPHY_CTRL_ENHOSTDISCONDETECT_V(e) BF_USBPHY_CTRL_ENHOSTDISCONDETECT(BV_USBPHY_CTRL_ENHOSTDISCONDETECT__##e) #define BFM_USBPHY_CTRL_ENHOSTDISCONDETECT_V(v) BM_USBPHY_CTRL_ENHOSTDISCONDETECT #define BP_USBPHY_CTRL_ENHSPRECHARGEXMIT 0 #define BM_USBPHY_CTRL_ENHSPRECHARGEXMIT 0x1 #define BF_USBPHY_CTRL_ENHSPRECHARGEXMIT(v) (((v) & 0x1) << 0) #define BFM_USBPHY_CTRL_ENHSPRECHARGEXMIT(v) BM_USBPHY_CTRL_ENHSPRECHARGEXMIT #define BF_USBPHY_CTRL_ENHSPRECHARGEXMIT_V(e) BF_USBPHY_CTRL_ENHSPRECHARGEXMIT(BV_USBPHY_CTRL_ENHSPRECHARGEXMIT__##e) #define BFM_USBPHY_CTRL_ENHSPRECHARGEXMIT_V(v) BM_USBPHY_CTRL_ENHSPRECHARGEXMIT #define HW_USBPHY_STATUS HW(USBPHY_STATUS) #define HWA_USBPHY_STATUS (0x8007c000 + 0x40) #define HWT_USBPHY_STATUS HWIO_32_RW #define HWN_USBPHY_STATUS USBPHY_STATUS #define HWI_USBPHY_STATUS #define BP_USBPHY_STATUS_RESUME_STATUS 10 #define BM_USBPHY_STATUS_RESUME_STATUS 0x400 #define BF_USBPHY_STATUS_RESUME_STATUS(v) (((v) & 0x1) << 10) #define BFM_USBPHY_STATUS_RESUME_STATUS(v) BM_USBPHY_STATUS_RESUME_STATUS #define BF_USBPHY_STATUS_RESUME_STATUS_V(e) BF_USBPHY_STATUS_RESUME_STATUS(BV_USBPHY_STATUS_RESUME_STATUS__##e) #define BFM_USBPHY_STATUS_RESUME_STATUS_V(v) BM_USBPHY_STATUS_RESUME_STATUS #define BP_USBPHY_STATUS_OTGID_STATUS 8 #define BM_USBPHY_STATUS_OTGID_STATUS 0x100 #define BF_USBPHY_STATUS_OTGID_STATUS(v) (((v) & 0x1) << 8) #define BFM_USBPHY_STATUS_OTGID_STATUS(v) BM_USBPHY_STATUS_OTGID_STATUS #define BF_USBPHY_STATUS_OTGID_STATUS_V(e) BF_USBPHY_STATUS_OTGID_STATUS(BV_USBPHY_STATUS_OTGID_STATUS__##e) #define BFM_USBPHY_STATUS_OTGID_STATUS_V(v) BM_USBPHY_STATUS_OTGID_STATUS #define BP_USBPHY_STATUS_DEVPLUGIN_STATUS 6 #define BM_USBPHY_STATUS_DEVPLUGIN_STATUS 0x40 #define BF_USBPHY_STATUS_DEVPLUGIN_STATUS(v) (((v) & 0x1) << 6) #define BFM_USBPHY_STATUS_DEVPLUGIN_STATUS(v) BM_USBPHY_STATUS_DEVPLUGIN_STATUS #define BF_USBPHY_STATUS_DEVPLUGIN_STATUS_V(e) BF_USBPHY_STATUS_DEVPLUGIN_STATUS(BV_USBPHY_STATUS_DEVPLUGIN_STATUS__##e) #define BFM_USBPHY_STATUS_DEVPLUGIN_STATUS_V(v) BM_USBPHY_STATUS_DEVPLUGIN_STATUS #define BP_USBPHY_STATUS_HOSTDISCONDETECT_STATUS 3 #define BM_USBPHY_STATUS_HOSTDISCONDETECT_STATUS 0x8 #define BF_USBPHY_STATUS_HOSTDISCONDETECT_STATUS(v) (((v) & 0x1) << 3) #define BFM_USBPHY_STATUS_HOSTDISCONDETECT_STATUS(v) BM_USBPHY_STATUS_HOSTDISCONDETECT_STATUS #define BF_USBPHY_STATUS_HOSTDISCONDETECT_STATUS_V(e) BF_USBPHY_STATUS_HOSTDISCONDETECT_STATUS(BV_USBPHY_STATUS_HOSTDISCONDETECT_STATUS__##e) #define BFM_USBPHY_STATUS_HOSTDISCONDETECT_STATUS_V(v) BM_USBPHY_STATUS_HOSTDISCONDETECT_STATUS #define HW_USBPHY_DEBUG HW(USBPHY_DEBUG) #define HWA_USBPHY_DEBUG (0x8007c000 + 0x50) #define HWT_USBPHY_DEBUG HWIO_32_RW #define HWN_USBPHY_DEBUG USBPHY_DEBUG #define HWI_USBPHY_DEBUG #define HW_USBPHY_DEBUG_SET HW(USBPHY_DEBUG_SET) #define HWA_USBPHY_DEBUG_SET (HWA_USBPHY_DEBUG + 0x4) #define HWT_USBPHY_DEBUG_SET HWIO_32_WO #define HWN_USBPHY_DEBUG_SET USBPHY_DEBUG #define HWI_USBPHY_DEBUG_SET #define HW_USBPHY_DEBUG_CLR HW(USBPHY_DEBUG_CLR) #define HWA_USBPHY_DEBUG_CLR (HWA_USBPHY_DEBUG + 0x8) #define HWT_USBPHY_DEBUG_CLR HWIO_32_WO #define HWN_USBPHY_DEBUG_CLR USBPHY_DEBUG #define HWI_USBPHY_DEBUG_CLR #define HW_USBPHY_DEBUG_TOG HW(USBPHY_DEBUG_TOG) #define HWA_USBPHY_DEBUG_TOG (HWA_USBPHY_DEBUG + 0xc) #define HWT_USBPHY_DEBUG_TOG HWIO_32_WO #define HWN_USBPHY_DEBUG_TOG USBPHY_DEBUG #define HWI_USBPHY_DEBUG_TOG #define BP_USBPHY_DEBUG_CLKGATE 30 #define BM_USBPHY_DEBUG_CLKGATE 0x40000000 #define BF_USBPHY_DEBUG_CLKGATE(v) (((v) & 0x1) << 30) #define BFM_USBPHY_DEBUG_CLKGATE(v) BM_USBPHY_DEBUG_CLKGATE #define BF_USBPHY_DEBUG_CLKGATE_V(e) BF_USBPHY_DEBUG_CLKGATE(BV_USBPHY_DEBUG_CLKGATE__##e) #define BFM_USBPHY_DEBUG_CLKGATE_V(v) BM_USBPHY_DEBUG_CLKGATE #define BP_USBPHY_DEBUG_SQUELCHRESETLENGTH 25 #define BM_USBPHY_DEBUG_SQUELCHRESETLENGTH 0x1e000000 #define BF_USBPHY_DEBUG_SQUELCHRESETLENGTH(v) (((v) & 0xf) << 25) #define BFM_USBPHY_DEBUG_SQUELCHRESETLENGTH(v) BM_USBPHY_DEBUG_SQUELCHRESETLENGTH #define BF_USBPHY_DEBUG_SQUELCHRESETLENGTH_V(e) BF_USBPHY_DEBUG_SQUELCHRESETLENGTH(BV_USBPHY_DEBUG_SQUELCHRESETLENGTH__##e) #define BFM_USBPHY_DEBUG_SQUELCHRESETLENGTH_V(v) BM_USBPHY_DEBUG_SQUELCHRESETLENGTH #define BP_USBPHY_DEBUG_ENSQUELCHRESET 24 #define BM_USBPHY_DEBUG_ENSQUELCHRESET 0x1000000 #define BF_USBPHY_DEBUG_ENSQUELCHRESET(v) (((v) & 0x1) << 24) #define BFM_USBPHY_DEBUG_ENSQUELCHRESET(v) BM_USBPHY_DEBUG_ENSQUELCHRESET #define BF_USBPHY_DEBUG_ENSQUELCHRESET_V(e) BF_USBPHY_DEBUG_ENSQUELCHRESET(BV_USBPHY_DEBUG_ENSQUELCHRESET__##e) #define BFM_USBPHY_DEBUG_ENSQUELCHRESET_V(v) BM_USBPHY_DEBUG_ENSQUELCHRESET #define BP_USBPHY_DEBUG_SQUELCHRESETCOUNT 16 #define BM_USBPHY_DEBUG_SQUELCHRESETCOUNT 0x1f0000 #define BF_USBPHY_DEBUG_SQUELCHRESETCOUNT(v) (((v) & 0x1f) << 16) #define BFM_USBPHY_DEBUG_SQUELCHRESETCOUNT(v) BM_USBPHY_DEBUG_SQUELCHRESETCOUNT #define BF_USBPHY_DEBUG_SQUELCHRESETCOUNT_V(e) BF_USBPHY_DEBUG_SQUELCHRESETCOUNT(BV_USBPHY_DEBUG_SQUELCHRESETCOUNT__##e) #define BFM_USBPHY_DEBUG_SQUELCHRESETCOUNT_V(v) BM_USBPHY_DEBUG_SQUELCHRESETCOUNT #define BP_USBPHY_DEBUG_ENTX2RXCOUNT 12 #define BM_USBPHY_DEBUG_ENTX2RXCOUNT 0x1000 #define BF_USBPHY_DEBUG_ENTX2RXCOUNT(v) (((v) & 0x1) << 12) #define BFM_USBPHY_DEBUG_ENTX2RXCOUNT(v) BM_USBPHY_DEBUG_ENTX2RXCOUNT #define BF_USBPHY_DEBUG_ENTX2RXCOUNT_V(e) BF_USBPHY_DEBUG_ENTX2RXCOUNT(BV_USBPHY_DEBUG_ENTX2RXCOUNT__##e) #define BFM_USBPHY_DEBUG_ENTX2RXCOUNT_V(v) BM_USBPHY_DEBUG_ENTX2RXCOUNT #define BP_USBPHY_DEBUG_TX2RXCOUNT 8 #define BM_USBPHY_DEBUG_TX2RXCOUNT 0xf00 #define BF_USBPHY_DEBUG_TX2RXCOUNT(v) (((v) & 0xf) << 8) #define BFM_USBPHY_DEBUG_TX2RXCOUNT(v) BM_USBPHY_DEBUG_TX2RXCOUNT #define BF_USBPHY_DEBUG_TX2RXCOUNT_V(e) BF_USBPHY_DEBUG_TX2RXCOUNT(BV_USBPHY_DEBUG_TX2RXCOUNT__##e) #define BFM_USBPHY_DEBUG_TX2RXCOUNT_V(v) BM_USBPHY_DEBUG_TX2RXCOUNT #define BP_USBPHY_DEBUG_ENHSTPULLDOWN 4 #define BM_USBPHY_DEBUG_ENHSTPULLDOWN 0x30 #define BF_USBPHY_DEBUG_ENHSTPULLDOWN(v) (((v) & 0x3) << 4) #define BFM_USBPHY_DEBUG_ENHSTPULLDOWN(v) BM_USBPHY_DEBUG_ENHSTPULLDOWN #define BF_USBPHY_DEBUG_ENHSTPULLDOWN_V(e) BF_USBPHY_DEBUG_ENHSTPULLDOWN(BV_USBPHY_DEBUG_ENHSTPULLDOWN__##e) #define BFM_USBPHY_DEBUG_ENHSTPULLDOWN_V(v) BM_USBPHY_DEBUG_ENHSTPULLDOWN #define BP_USBPHY_DEBUG_HSTPULLDOWN 2 #define BM_USBPHY_DEBUG_HSTPULLDOWN 0xc #define BF_USBPHY_DEBUG_HSTPULLDOWN(v) (((v) & 0x3) << 2) #define BFM_USBPHY_DEBUG_HSTPULLDOWN(v) BM_USBPHY_DEBUG_HSTPULLDOWN #define BF_USBPHY_DEBUG_HSTPULLDOWN_V(e) BF_USBPHY_DEBUG_HSTPULLDOWN(BV_USBPHY_DEBUG_HSTPULLDOWN__##e) #define BFM_USBPHY_DEBUG_HSTPULLDOWN_V(v) BM_USBPHY_DEBUG_HSTPULLDOWN #define BP_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD 1 #define BM_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD 0x2 #define BF_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD(v) (((v) & 0x1) << 1) #define BFM_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD(v) BM_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD #define BF_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_V(e) BF_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD(BV_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD__##e) #define BFM_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD_V(v) BM_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD #define BP_USBPHY_DEBUG_OTGIDPIOLOCK 0 #define BM_USBPHY_DEBUG_OTGIDPIOLOCK 0x1 #define BF_USBPHY_DEBUG_OTGIDPIOLOCK(v) (((v) & 0x1) << 0) #define BFM_USBPHY_DEBUG_OTGIDPIOLOCK(v) BM_USBPHY_DEBUG_OTGIDPIOLOCK #define BF_USBPHY_DEBUG_OTGIDPIOLOCK_V(e) BF_USBPHY_DEBUG_OTGIDPIOLOCK(BV_USBPHY_DEBUG_OTGIDPIOLOCK__##e) #define BFM_USBPHY_DEBUG_OTGIDPIOLOCK_V(v) BM_USBPHY_DEBUG_OTGIDPIOLOCK #define HW_USBPHY_DEBUG0_STATUS HW(USBPHY_DEBUG0_STATUS) #define HWA_USBPHY_DEBUG0_STATUS (0x8007c000 + 0x60) #define HWT_USBPHY_DEBUG0_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG0_STATUS USBPHY_DEBUG0_STATUS #define HWI_USBPHY_DEBUG0_STATUS #define BP_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT 26 #define BM_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT 0xfc000000 #define BF_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT(v) (((v) & 0x3f) << 26) #define BFM_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT(v) BM_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT #define BF_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_V(e) BF_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT(BV_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT__##e) #define BFM_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT_V(v) BM_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT #define BP_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT 16 #define BM_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT 0x3ff0000 #define BF_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT(v) (((v) & 0x3ff) << 16) #define BFM_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT(v) BM_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT #define BF_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT_V(e) BF_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT(BV_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT__##e) #define BFM_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT_V(v) BM_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT #define BP_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT 0 #define BM_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT 0xffff #define BF_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT(v) (((v) & 0xffff) << 0) #define BFM_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT(v) BM_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT #define BF_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT_V(e) BF_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT(BV_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT__##e) #define BFM_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT_V(v) BM_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT #define HW_USBPHY_DEBUG1_STATUS HW(USBPHY_DEBUG1_STATUS) #define HWA_USBPHY_DEBUG1_STATUS (0x8007c000 + 0x70) #define HWT_USBPHY_DEBUG1_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG1_STATUS USBPHY_DEBUG1_STATUS #define HWI_USBPHY_DEBUG1_STATUS #define BP_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA 16 #define BM_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA 0xffff0000 #define BF_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA(v) (((v) & 0xffff) << 16) #define BFM_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA(v) BM_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA #define BF_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA_V(e) BF_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA(BV_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA__##e) #define BFM_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA_V(v) BM_USBPHY_DEBUG1_STATUS_UTMI_TX_DATA #define BP_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA 0 #define BM_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA 0xffff #define BF_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA(v) (((v) & 0xffff) << 0) #define BFM_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA(v) BM_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA #define BF_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA_V(e) BF_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA(BV_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA__##e) #define BFM_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA_V(v) BM_USBPHY_DEBUG1_STATUS_UTMI_RX_DATA #define HW_USBPHY_DEBUG2_STATUS HW(USBPHY_DEBUG2_STATUS) #define HWA_USBPHY_DEBUG2_STATUS (0x8007c000 + 0x80) #define HWT_USBPHY_DEBUG2_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG2_STATUS USBPHY_DEBUG2_STATUS #define HWI_USBPHY_DEBUG2_STATUS #define BP_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH 22 #define BM_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH 0x400000 #define BF_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH(v) (((v) & 0x1) << 22) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH #define BF_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH(BV_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TXVALIDH #define BP_USBPHY_DEBUG2_STATUS_UTMI_TXVALID 21 #define BM_USBPHY_DEBUG2_STATUS_UTMI_TXVALID 0x200000 #define BF_USBPHY_DEBUG2_STATUS_UTMI_TXVALID(v) (((v) & 0x1) << 21) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TXVALID(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TXVALID #define BF_USBPHY_DEBUG2_STATUS_UTMI_TXVALID_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_TXVALID(BV_USBPHY_DEBUG2_STATUS_UTMI_TXVALID__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TXVALID_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TXVALID #define BP_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT 20 #define BM_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT 0x100000 #define BF_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT(v) (((v) & 0x1) << 20) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT #define BF_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT(BV_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TERMSELECT #define BP_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT 18 #define BM_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT 0xc0000 #define BF_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT(v) (((v) & 0x3) << 18) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT(v) BM_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT #define BF_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT(BV_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_XCVRSELECT #define BP_USBPHY_DEBUG2_STATUS_UTMI_OPMODE 16 #define BM_USBPHY_DEBUG2_STATUS_UTMI_OPMODE 0x30000 #define BF_USBPHY_DEBUG2_STATUS_UTMI_OPMODE(v) (((v) & 0x3) << 16) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_OPMODE(v) BM_USBPHY_DEBUG2_STATUS_UTMI_OPMODE #define BF_USBPHY_DEBUG2_STATUS_UTMI_OPMODE_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_OPMODE(BV_USBPHY_DEBUG2_STATUS_UTMI_OPMODE__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_OPMODE_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_OPMODE #define BP_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE 6 #define BM_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE 0xc0 #define BF_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE(v) (((v) & 0x3) << 6) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE(v) BM_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE #define BF_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE(BV_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_LINESTATE #define BP_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM 5 #define BM_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM 0x20 #define BF_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM(v) (((v) & 0x1) << 5) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM(v) BM_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM #define BF_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM(BV_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_SUSPENDM #define BP_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH 4 #define BM_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH 0x10 #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH(v) (((v) & 0x1) << 4) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH(BV_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXVALIDH #define BP_USBPHY_DEBUG2_STATUS_UTMI_RXVALID 3 #define BM_USBPHY_DEBUG2_STATUS_UTMI_RXVALID 0x8 #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXVALID(v) (((v) & 0x1) << 3) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXVALID(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXVALID #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXVALID_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_RXVALID(BV_USBPHY_DEBUG2_STATUS_UTMI_RXVALID__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXVALID_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXVALID #define BP_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE 2 #define BM_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE 0x4 #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE(v) (((v) & 0x1) << 2) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE(BV_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXACTIVE #define BP_USBPHY_DEBUG2_STATUS_UTMI_RXERROR 1 #define BM_USBPHY_DEBUG2_STATUS_UTMI_RXERROR 0x2 #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXERROR(v) (((v) & 0x1) << 1) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXERROR(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXERROR #define BF_USBPHY_DEBUG2_STATUS_UTMI_RXERROR_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_RXERROR(BV_USBPHY_DEBUG2_STATUS_UTMI_RXERROR__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_RXERROR_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_RXERROR #define BP_USBPHY_DEBUG2_STATUS_UTMI_TXREADY 0 #define BM_USBPHY_DEBUG2_STATUS_UTMI_TXREADY 0x1 #define BF_USBPHY_DEBUG2_STATUS_UTMI_TXREADY(v) (((v) & 0x1) << 0) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TXREADY(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TXREADY #define BF_USBPHY_DEBUG2_STATUS_UTMI_TXREADY_V(e) BF_USBPHY_DEBUG2_STATUS_UTMI_TXREADY(BV_USBPHY_DEBUG2_STATUS_UTMI_TXREADY__##e) #define BFM_USBPHY_DEBUG2_STATUS_UTMI_TXREADY_V(v) BM_USBPHY_DEBUG2_STATUS_UTMI_TXREADY #define HW_USBPHY_DEBUG3_STATUS HW(USBPHY_DEBUG3_STATUS) #define HWA_USBPHY_DEBUG3_STATUS (0x8007c000 + 0x90) #define HWT_USBPHY_DEBUG3_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG3_STATUS USBPHY_DEBUG3_STATUS #define HWI_USBPHY_DEBUG3_STATUS #define BP_USBPHY_DEBUG3_STATUS_B_CNT_FSM 28 #define BM_USBPHY_DEBUG3_STATUS_B_CNT_FSM 0x70000000 #define BF_USBPHY_DEBUG3_STATUS_B_CNT_FSM(v) (((v) & 0x7) << 28) #define BFM_USBPHY_DEBUG3_STATUS_B_CNT_FSM(v) BM_USBPHY_DEBUG3_STATUS_B_CNT_FSM #define BF_USBPHY_DEBUG3_STATUS_B_CNT_FSM_V(e) BF_USBPHY_DEBUG3_STATUS_B_CNT_FSM(BV_USBPHY_DEBUG3_STATUS_B_CNT_FSM__##e) #define BFM_USBPHY_DEBUG3_STATUS_B_CNT_FSM_V(v) BM_USBPHY_DEBUG3_STATUS_B_CNT_FSM #define BP_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM 23 #define BM_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM 0x3800000 #define BF_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM(v) (((v) & 0x7) << 23) #define BFM_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM(v) BM_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM #define BF_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM_V(e) BF_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM(BV_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM__##e) #define BFM_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM_V(v) BM_USBPHY_DEBUG3_STATUS_SQ_UNLOCK_FSM #define BP_USBPHY_DEBUG3_STATUS_BIT_CNT 12 #define BM_USBPHY_DEBUG3_STATUS_BIT_CNT 0x3ff000 #define BF_USBPHY_DEBUG3_STATUS_BIT_CNT(v) (((v) & 0x3ff) << 12) #define BFM_USBPHY_DEBUG3_STATUS_BIT_CNT(v) BM_USBPHY_DEBUG3_STATUS_BIT_CNT #define BF_USBPHY_DEBUG3_STATUS_BIT_CNT_V(e) BF_USBPHY_DEBUG3_STATUS_BIT_CNT(BV_USBPHY_DEBUG3_STATUS_BIT_CNT__##e) #define BFM_USBPHY_DEBUG3_STATUS_BIT_CNT_V(v) BM_USBPHY_DEBUG3_STATUS_BIT_CNT #define BP_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM 8 #define BM_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM 0xf00 #define BF_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM(v) (((v) & 0xf) << 8) #define BFM_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM(v) BM_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM #define BF_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM_V(e) BF_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM(BV_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM__##e) #define BFM_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM_V(v) BM_USBPHY_DEBUG3_STATUS_MAIN_HS_RX_FSM #define BP_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT 0 #define BM_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT 0xff #define BF_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT(v) (((v) & 0xff) << 0) #define BFM_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT(v) BM_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT #define BF_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT_V(e) BF_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT(BV_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT__##e) #define BFM_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT_V(v) BM_USBPHY_DEBUG3_STATUS_UNSTUFF_BIT_CNT #define HW_USBPHY_DEBUG4_STATUS HW(USBPHY_DEBUG4_STATUS) #define HWA_USBPHY_DEBUG4_STATUS (0x8007c000 + 0xa0) #define HWT_USBPHY_DEBUG4_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG4_STATUS USBPHY_DEBUG4_STATUS #define HWI_USBPHY_DEBUG4_STATUS #define BP_USBPHY_DEBUG4_STATUS_BYTE_FSM 16 #define BM_USBPHY_DEBUG4_STATUS_BYTE_FSM 0x1fff0000 #define BF_USBPHY_DEBUG4_STATUS_BYTE_FSM(v) (((v) & 0x1fff) << 16) #define BFM_USBPHY_DEBUG4_STATUS_BYTE_FSM(v) BM_USBPHY_DEBUG4_STATUS_BYTE_FSM #define BF_USBPHY_DEBUG4_STATUS_BYTE_FSM_V(e) BF_USBPHY_DEBUG4_STATUS_BYTE_FSM(BV_USBPHY_DEBUG4_STATUS_BYTE_FSM__##e) #define BFM_USBPHY_DEBUG4_STATUS_BYTE_FSM_V(v) BM_USBPHY_DEBUG4_STATUS_BYTE_FSM #define BP_USBPHY_DEBUG4_STATUS_SND_FSM 0 #define BM_USBPHY_DEBUG4_STATUS_SND_FSM 0x3fff #define BF_USBPHY_DEBUG4_STATUS_SND_FSM(v) (((v) & 0x3fff) << 0) #define BFM_USBPHY_DEBUG4_STATUS_SND_FSM(v) BM_USBPHY_DEBUG4_STATUS_SND_FSM #define BF_USBPHY_DEBUG4_STATUS_SND_FSM_V(e) BF_USBPHY_DEBUG4_STATUS_SND_FSM(BV_USBPHY_DEBUG4_STATUS_SND_FSM__##e) #define BFM_USBPHY_DEBUG4_STATUS_SND_FSM_V(v) BM_USBPHY_DEBUG4_STATUS_SND_FSM #define HW_USBPHY_DEBUG5_STATUS HW(USBPHY_DEBUG5_STATUS) #define HWA_USBPHY_DEBUG5_STATUS (0x8007c000 + 0xb0) #define HWT_USBPHY_DEBUG5_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG5_STATUS USBPHY_DEBUG5_STATUS #define HWI_USBPHY_DEBUG5_STATUS #define BP_USBPHY_DEBUG5_STATUS_MAIN_FSM 24 #define BM_USBPHY_DEBUG5_STATUS_MAIN_FSM 0xf000000 #define BF_USBPHY_DEBUG5_STATUS_MAIN_FSM(v) (((v) & 0xf) << 24) #define BFM_USBPHY_DEBUG5_STATUS_MAIN_FSM(v) BM_USBPHY_DEBUG5_STATUS_MAIN_FSM #define BF_USBPHY_DEBUG5_STATUS_MAIN_FSM_V(e) BF_USBPHY_DEBUG5_STATUS_MAIN_FSM(BV_USBPHY_DEBUG5_STATUS_MAIN_FSM__##e) #define BFM_USBPHY_DEBUG5_STATUS_MAIN_FSM_V(v) BM_USBPHY_DEBUG5_STATUS_MAIN_FSM #define BP_USBPHY_DEBUG5_STATUS_SYNC_FSM 16 #define BM_USBPHY_DEBUG5_STATUS_SYNC_FSM 0x3f0000 #define BF_USBPHY_DEBUG5_STATUS_SYNC_FSM(v) (((v) & 0x3f) << 16) #define BFM_USBPHY_DEBUG5_STATUS_SYNC_FSM(v) BM_USBPHY_DEBUG5_STATUS_SYNC_FSM #define BF_USBPHY_DEBUG5_STATUS_SYNC_FSM_V(e) BF_USBPHY_DEBUG5_STATUS_SYNC_FSM(BV_USBPHY_DEBUG5_STATUS_SYNC_FSM__##e) #define BFM_USBPHY_DEBUG5_STATUS_SYNC_FSM_V(v) BM_USBPHY_DEBUG5_STATUS_SYNC_FSM #define BP_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM 12 #define BM_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM 0x7000 #define BF_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM(v) (((v) & 0x7) << 12) #define BFM_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM(v) BM_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM #define BF_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM_V(e) BF_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM(BV_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM__##e) #define BFM_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM_V(v) BM_USBPHY_DEBUG5_STATUS_PRECHARGE_FSM #define BP_USBPHY_DEBUG5_STATUS_SHIFT_FSM 8 #define BM_USBPHY_DEBUG5_STATUS_SHIFT_FSM 0x700 #define BF_USBPHY_DEBUG5_STATUS_SHIFT_FSM(v) (((v) & 0x7) << 8) #define BFM_USBPHY_DEBUG5_STATUS_SHIFT_FSM(v) BM_USBPHY_DEBUG5_STATUS_SHIFT_FSM #define BF_USBPHY_DEBUG5_STATUS_SHIFT_FSM_V(e) BF_USBPHY_DEBUG5_STATUS_SHIFT_FSM(BV_USBPHY_DEBUG5_STATUS_SHIFT_FSM__##e) #define BFM_USBPHY_DEBUG5_STATUS_SHIFT_FSM_V(v) BM_USBPHY_DEBUG5_STATUS_SHIFT_FSM #define BP_USBPHY_DEBUG5_STATUS_SOF_FSM 0 #define BM_USBPHY_DEBUG5_STATUS_SOF_FSM 0x1f #define BF_USBPHY_DEBUG5_STATUS_SOF_FSM(v) (((v) & 0x1f) << 0) #define BFM_USBPHY_DEBUG5_STATUS_SOF_FSM(v) BM_USBPHY_DEBUG5_STATUS_SOF_FSM #define BF_USBPHY_DEBUG5_STATUS_SOF_FSM_V(e) BF_USBPHY_DEBUG5_STATUS_SOF_FSM(BV_USBPHY_DEBUG5_STATUS_SOF_FSM__##e) #define BFM_USBPHY_DEBUG5_STATUS_SOF_FSM_V(v) BM_USBPHY_DEBUG5_STATUS_SOF_FSM #define HW_USBPHY_DEBUG6_STATUS HW(USBPHY_DEBUG6_STATUS) #define HWA_USBPHY_DEBUG6_STATUS (0x8007c000 + 0xc0) #define HWT_USBPHY_DEBUG6_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG6_STATUS USBPHY_DEBUG6_STATUS #define HWI_USBPHY_DEBUG6_STATUS #define BP_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM 8 #define BM_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM 0x700 #define BF_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM(v) (((v) & 0x7) << 8) #define BFM_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM(v) BM_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM #define BF_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM_V(e) BF_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM(BV_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM__##e) #define BFM_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM_V(v) BM_USBPHY_DEBUG6_STATUS_FIRST_EOP_FSM #define BP_USBPHY_DEBUG6_STATUS_EOP_FSM 0 #define BM_USBPHY_DEBUG6_STATUS_EOP_FSM 0xff #define BF_USBPHY_DEBUG6_STATUS_EOP_FSM(v) (((v) & 0xff) << 0) #define BFM_USBPHY_DEBUG6_STATUS_EOP_FSM(v) BM_USBPHY_DEBUG6_STATUS_EOP_FSM #define BF_USBPHY_DEBUG6_STATUS_EOP_FSM_V(e) BF_USBPHY_DEBUG6_STATUS_EOP_FSM(BV_USBPHY_DEBUG6_STATUS_EOP_FSM__##e) #define BFM_USBPHY_DEBUG6_STATUS_EOP_FSM_V(v) BM_USBPHY_DEBUG6_STATUS_EOP_FSM #define HW_USBPHY_DEBUG7_STATUS HW(USBPHY_DEBUG7_STATUS) #define HWA_USBPHY_DEBUG7_STATUS (0x8007c000 + 0xd0) #define HWT_USBPHY_DEBUG7_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG7_STATUS USBPHY_DEBUG7_STATUS #define HWI_USBPHY_DEBUG7_STATUS #define BP_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM 28 #define BM_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM 0x30000000 #define BF_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM(v) (((v) & 0x3) << 28) #define BFM_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM(v) BM_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM #define BF_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM_V(e) BF_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM(BV_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM__##e) #define BFM_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM_V(v) BM_USBPHY_DEBUG7_STATUS_FIRST_DATA_FSM #define BP_USBPHY_DEBUG7_STATUS_BIT_CNT 24 #define BM_USBPHY_DEBUG7_STATUS_BIT_CNT 0xf000000 #define BF_USBPHY_DEBUG7_STATUS_BIT_CNT(v) (((v) & 0xf) << 24) #define BFM_USBPHY_DEBUG7_STATUS_BIT_CNT(v) BM_USBPHY_DEBUG7_STATUS_BIT_CNT #define BF_USBPHY_DEBUG7_STATUS_BIT_CNT_V(e) BF_USBPHY_DEBUG7_STATUS_BIT_CNT(BV_USBPHY_DEBUG7_STATUS_BIT_CNT__##e) #define BFM_USBPHY_DEBUG7_STATUS_BIT_CNT_V(v) BM_USBPHY_DEBUG7_STATUS_BIT_CNT #define BP_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT 20 #define BM_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT 0x700000 #define BF_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT(v) (((v) & 0x7) << 20) #define BFM_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT(v) BM_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT #define BF_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT_V(e) BF_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT(BV_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT__##e) #define BFM_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT_V(v) BM_USBPHY_DEBUG7_STATUS_UNSTUFF_CNT #define BP_USBPHY_DEBUG7_STATUS_LD_FSM 16 #define BM_USBPHY_DEBUG7_STATUS_LD_FSM 0x30000 #define BF_USBPHY_DEBUG7_STATUS_LD_FSM(v) (((v) & 0x3) << 16) #define BFM_USBPHY_DEBUG7_STATUS_LD_FSM(v) BM_USBPHY_DEBUG7_STATUS_LD_FSM #define BF_USBPHY_DEBUG7_STATUS_LD_FSM_V(e) BF_USBPHY_DEBUG7_STATUS_LD_FSM(BV_USBPHY_DEBUG7_STATUS_LD_FSM__##e) #define BFM_USBPHY_DEBUG7_STATUS_LD_FSM_V(v) BM_USBPHY_DEBUG7_STATUS_LD_FSM #define BP_USBPHY_DEBUG7_STATUS_FIFO_FSM 8 #define BM_USBPHY_DEBUG7_STATUS_FIFO_FSM 0x3f00 #define BF_USBPHY_DEBUG7_STATUS_FIFO_FSM(v) (((v) & 0x3f) << 8) #define BFM_USBPHY_DEBUG7_STATUS_FIFO_FSM(v) BM_USBPHY_DEBUG7_STATUS_FIFO_FSM #define BF_USBPHY_DEBUG7_STATUS_FIFO_FSM_V(e) BF_USBPHY_DEBUG7_STATUS_FIFO_FSM(BV_USBPHY_DEBUG7_STATUS_FIFO_FSM__##e) #define BFM_USBPHY_DEBUG7_STATUS_FIFO_FSM_V(v) BM_USBPHY_DEBUG7_STATUS_FIFO_FSM #define BP_USBPHY_DEBUG7_STATUS_MAIN_FSM 4 #define BM_USBPHY_DEBUG7_STATUS_MAIN_FSM 0xf0 #define BF_USBPHY_DEBUG7_STATUS_MAIN_FSM(v) (((v) & 0xf) << 4) #define BFM_USBPHY_DEBUG7_STATUS_MAIN_FSM(v) BM_USBPHY_DEBUG7_STATUS_MAIN_FSM #define BF_USBPHY_DEBUG7_STATUS_MAIN_FSM_V(e) BF_USBPHY_DEBUG7_STATUS_MAIN_FSM(BV_USBPHY_DEBUG7_STATUS_MAIN_FSM__##e) #define BFM_USBPHY_DEBUG7_STATUS_MAIN_FSM_V(v) BM_USBPHY_DEBUG7_STATUS_MAIN_FSM #define BP_USBPHY_DEBUG7_STATUS_EOP_FSM 0 #define BM_USBPHY_DEBUG7_STATUS_EOP_FSM 0xf #define BF_USBPHY_DEBUG7_STATUS_EOP_FSM(v) (((v) & 0xf) << 0) #define BFM_USBPHY_DEBUG7_STATUS_EOP_FSM(v) BM_USBPHY_DEBUG7_STATUS_EOP_FSM #define BF_USBPHY_DEBUG7_STATUS_EOP_FSM_V(e) BF_USBPHY_DEBUG7_STATUS_EOP_FSM(BV_USBPHY_DEBUG7_STATUS_EOP_FSM__##e) #define BFM_USBPHY_DEBUG7_STATUS_EOP_FSM_V(v) BM_USBPHY_DEBUG7_STATUS_EOP_FSM #define HW_USBPHY_DEBUG8_STATUS HW(USBPHY_DEBUG8_STATUS) #define HWA_USBPHY_DEBUG8_STATUS (0x8007c000 + 0xe0) #define HWT_USBPHY_DEBUG8_STATUS HWIO_32_RW #define HWN_USBPHY_DEBUG8_STATUS USBPHY_DEBUG8_STATUS #define HWI_USBPHY_DEBUG8_STATUS #define BP_USBPHY_DEBUG8_STATUS_RX_SIE_FSM 28 #define BM_USBPHY_DEBUG8_STATUS_RX_SIE_FSM 0xf0000000 #define BF_USBPHY_DEBUG8_STATUS_RX_SIE_FSM(v) (((v) & 0xf) << 28) #define BFM_USBPHY_DEBUG8_STATUS_RX_SIE_FSM(v) BM_USBPHY_DEBUG8_STATUS_RX_SIE_FSM #define BF_USBPHY_DEBUG8_STATUS_RX_SIE_FSM_V(e) BF_USBPHY_DEBUG8_STATUS_RX_SIE_FSM(BV_USBPHY_DEBUG8_STATUS_RX_SIE_FSM__##e) #define BFM_USBPHY_DEBUG8_STATUS_RX_SIE_FSM_V(v) BM_USBPHY_DEBUG8_STATUS_RX_SIE_FSM #define BP_USBPHY_DEBUG8_STATUS_TX_SIE_FSM 24 #define BM_USBPHY_DEBUG8_STATUS_TX_SIE_FSM 0xf000000 #define BF_USBPHY_DEBUG8_STATUS_TX_SIE_FSM(v) (((v) & 0xf) << 24) #define BFM_USBPHY_DEBUG8_STATUS_TX_SIE_FSM(v) BM_USBPHY_DEBUG8_STATUS_TX_SIE_FSM #define BF_USBPHY_DEBUG8_STATUS_TX_SIE_FSM_V(e) BF_USBPHY_DEBUG8_STATUS_TX_SIE_FSM(BV_USBPHY_DEBUG8_STATUS_TX_SIE_FSM__##e) #define BFM_USBPHY_DEBUG8_STATUS_TX_SIE_FSM_V(v) BM_USBPHY_DEBUG8_STATUS_TX_SIE_FSM #define BP_USBPHY_DEBUG8_STATUS_SHIFT_FSM 8 #define BM_USBPHY_DEBUG8_STATUS_SHIFT_FSM 0x300 #define BF_USBPHY_DEBUG8_STATUS_SHIFT_FSM(v) (((v) & 0x3) << 8) #define BFM_USBPHY_DEBUG8_STATUS_SHIFT_FSM(v) BM_USBPHY_DEBUG8_STATUS_SHIFT_FSM #define BF_USBPHY_DEBUG8_STATUS_SHIFT_FSM_V(e) BF_USBPHY_DEBUG8_STATUS_SHIFT_FSM(BV_USBPHY_DEBUG8_STATUS_SHIFT_FSM__##e) #define BFM_USBPHY_DEBUG8_STATUS_SHIFT_FSM_V(v) BM_USBPHY_DEBUG8_STATUS_SHIFT_FSM #define BP_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM 0 #define BM_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM 0x7f #define BF_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM(v) (((v) & 0x7f) << 0) #define BFM_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM(v) BM_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM #define BF_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM_V(e) BF_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM(BV_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM__##e) #define BFM_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM_V(v) BM_USBPHY_DEBUG8_STATUS_FS_TX_MAIN_FSM #endif /* __HEADERGEN_STMP3600_USBPHY_H__*/