/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * This file was automatically generated by headergen, DO NOT EDIT it. * headergen version: 3.0.0 * stmp3700 version: 2.4.0 * stmp3700 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_STMP3700_USBPHY_H__ #define __HEADERGEN_STMP3700_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_USBPHY_TX_EDGECTRL 26 #define BM_USBPHY_TX_USBPHY_TX_EDGECTRL 0x1c000000 #define BF_USBPHY_TX_USBPHY_TX_EDGECTRL(v) (((v) & 0x7) << 26) #define BFM_USBPHY_TX_USBPHY_TX_EDGECTRL(v) BM_USBPHY_TX_USBPHY_TX_EDGECTRL #define BF_USBPHY_TX_USBPHY_TX_EDGECTRL_V(e) BF_USBPHY_TX_USBPHY_TX_EDGECTRL(BV_USBPHY_TX_USBPHY_TX_EDGECTRL__##e) #define BFM_USBPHY_TX_USBPHY_TX_EDGECTRL_V(v) BM_USBPHY_TX_USBPHY_TX_EDGECTRL #define BP_USBPHY_TX_USBPHY_TX_SYNC_INVERT 25 #define BM_USBPHY_TX_USBPHY_TX_SYNC_INVERT 0x2000000 #define BF_USBPHY_TX_USBPHY_TX_SYNC_INVERT(v) (((v) & 0x1) << 25) #define BFM_USBPHY_TX_USBPHY_TX_SYNC_INVERT(v) BM_USBPHY_TX_USBPHY_TX_SYNC_INVERT #define BF_USBPHY_TX_USBPHY_TX_SYNC_INVERT_V(e) BF_USBPHY_TX_USBPHY_TX_SYNC_INVERT(BV_USBPHY_TX_USBPHY_TX_SYNC_INVERT__##e) #define BFM_USBPHY_TX_USBPHY_TX_SYNC_INVERT_V(v) BM_USBPHY_TX_USBPHY_TX_SYNC_INVERT #define BP_USBPHY_TX_USBPHY_TX_SYNC_MUX 24 #define BM_USBPHY_TX_USBPHY_TX_SYNC_MUX 0x1000000 #define BF_USBPHY_TX_USBPHY_TX_SYNC_MUX(v) (((v) & 0x1) << 24) #define BFM_USBPHY_TX_USBPHY_TX_SYNC_MUX(v) BM_USBPHY_TX_USBPHY_TX_SYNC_MUX #define BF_USBPHY_TX_USBPHY_TX_SYNC_MUX_V(e) BF_USBPHY_TX_USBPHY_TX_SYNC_MUX(BV_USBPHY_TX_USBPHY_TX_SYNC_MUX__##e) #define BFM_USBPHY_TX_USBPHY_TX_SYNC_MUX_V(v) BM_USBPHY_TX_USBPHY_TX_SYNC_MUX #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 0xf0000 #define BF_USBPHY_TX_TXCAL45DP(v) (((v) & 0xf) << 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 0xf00 #define BF_USBPHY_TX_TXCAL45DN(v) (((v) & 0xf) << 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 BP_USBPHY_TX_D_CAL 0 #define BM_USBPHY_TX_D_CAL 0xf #define BF_USBPHY_TX_D_CAL(v) (((v) & 0xf) << 0) #define BFM_USBPHY_TX_D_CAL(v) BM_USBPHY_TX_D_CAL #define BF_USBPHY_TX_D_CAL_V(e) BF_USBPHY_TX_D_CAL(BV_USBPHY_TX_D_CAL__##e) #define BFM_USBPHY_TX_D_CAL_V(v) BM_USBPHY_TX_D_CAL #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_HOST_FORCE_LS_SE0 28 #define BM_USBPHY_CTRL_HOST_FORCE_LS_SE0 0x10000000 #define BF_USBPHY_CTRL_HOST_FORCE_LS_SE0(v) (((v) & 0x1) << 28) #define BFM_USBPHY_CTRL_HOST_FORCE_LS_SE0(v) BM_USBPHY_CTRL_HOST_FORCE_LS_SE0 #define BF_USBPHY_CTRL_HOST_FORCE_LS_SE0_V(e) BF_USBPHY_CTRL_HOST_FORCE_LS_SE0(BV_USBPHY_CTRL_HOST_FORCE_LS_SE0__##e) #define BFM_USBPHY_CTRL_HOST_FORCE_LS_SE0_V(v) BM_USBPHY_CTRL_HOST_FORCE_LS_SE0 #define BP_USBPHY_CTRL_DATA_ON_LRADC 13 #define BM_USBPHY_CTRL_DATA_ON_LRADC 0x2000 #define BF_USBPHY_CTRL_DATA_ON_LRADC(v) (((v) & 0x1) << 13) #define BFM_USBPHY_CTRL_DATA_ON_LRADC(v) BM_USBPHY_CTRL_DATA_ON_LRADC #define BF_USBPHY_CTRL_DATA_ON_LRADC_V(e) BF_USBPHY_CTRL_DATA_ON_LRADC(BV_USBPHY_CTRL_DATA_ON_LRADC__##e) #define BFM_USBPHY_CTRL_DATA_ON_LRADC_V(v) BM_USBPHY_CTRL_DATA_ON_LRADC #define BP_USBPHY_CTRL_DEVPLUGIN_IRQ 12 #define BM_USBPHY_CTRL_DEVPLUGIN_IRQ 0x1000 #define BF_USBPHY_CTRL_DEVPLUGIN_IRQ(v) (((v) & 0x1) << 12) #define BFM_USBPHY_CTRL_DEVPLUGIN_IRQ(v) BM_USBPHY_CTRL_DEVPLUGIN_IRQ #define BF_USBPHY_CTRL_DEVPLUGIN_IRQ_V(e) BF_USBPHY_CTRL_DEVPLUGIN_IRQ(BV_USBPHY_CTRL_DEVPLUGIN_IRQ__##e) #define BFM_USBPHY_CTRL_DEVPLUGIN_IRQ_V(v) BM_USBPHY_CTRL_DEVPLUGIN_IRQ #define BP_USBPHY_CTRL_ENIRQDEVPLUGIN 11 #define BM_USBPHY_CTRL_ENIRQDEVPLUGIN 0x800 #define BF_USBPHY_CTRL_ENIRQDEVPLUGIN(v) (((v) & 0x1) << 11) #define BFM_USBPHY_CTRL_ENIRQDEVPLUGIN(v) BM_USBPHY_CTRL_ENIRQDEVPLUGIN #define BF_USBPHY_CTRL_ENIRQDEVPLUGIN_V(e) BF_USBPHY_CTRL_ENIRQDEVPLUGIN(BV_USBPHY_CTRL_ENIRQDEVPLUGIN__##e) #define BFM_USBPHY_CTRL_ENIRQDEVPLUGIN_V(v) BM_USBPHY_CTRL_ENIRQDEVPLUGIN #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_DEVPLUGIN_POLARITY 5 #define BM_USBPHY_CTRL_DEVPLUGIN_POLARITY 0x20 #define BF_USBPHY_CTRL_DEVPLUGIN_POLARITY(v) (((v) & 0x1) << 5) #define BFM_USBPHY_CTRL_DEVPLUGIN_POLARITY(v) BM_USBPHY_CTRL_DEVPLUGIN_POLARITY #define BF_USBPHY_CTRL_DEVPLUGIN_POLARITY_V(e) BF_USBPHY_CTRL_DEVPLUGIN_POLARITY(BV_USBPHY_CTRL_DEVPLUGIN_POLARITY__##e) #define BFM_USBPHY_CTRL_DEVPLUGIN_POLARITY_V(v) BM_USBPHY_CTRL_DEVPLUGIN_POLARITY #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_HOST_RESUME_DEBUG 29 #define BM_USBPHY_DEBUG_HOST_RESUME_DEBUG 0x20000000 #define BF_USBPHY_DEBUG_HOST_RESUME_DEBUG(v) (((v) & 0x1) << 29) #define BFM_USBPHY_DEBUG_HOST_RESUME_DEBUG(v) BM_USBPHY_DEBUG_HOST_RESUME_DEBUG #define BF_USBPHY_DEBUG_HOST_RESUME_DEBUG_V(e) BF_USBPHY_DEBUG_HOST_RESUME_DEBUG(BV_USBPHY_DEBUG_HOST_RESUME_DEBUG__##e) #define BFM_USBPHY_DEBUG_HOST_RESUME_DEBUG_V(v) BM_USBPHY_DEBUG_HOST_RESUME_DEBUG #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 HW(USBPHY_DEBUG1) #define HWA_USBPHY_DEBUG1 (0x8007c000 + 0x70) #define HWT_USBPHY_DEBUG1 HWIO_32_RW #define HWN_USBPHY_DEBUG1 USBPHY_DEBUG1 #define HWI_USBPHY_DEBUG1 #define HW_USBPHY_DEBUG1_SET HW(USBPHY_DEBUG1_SET) #define HWA_USBPHY_DEBUG1_SET (HWA_USBPHY_DEBUG1 + 0x4) #define HWT_USBPHY_DEBUG1_SET HWIO_32_WO #define HWN_USBPHY_DEBUG1_SET USBPHY_DEBUG1 #define HWI_USBPHY_DEBUG1_SET #define HW_USBPHY_DEBUG1_CLR HW(USBPHY_DEBUG1_CLR) #define HWA_USBPHY_DEBUG1_CLR (HWA_USBPHY_DEBUG1 + 0x8) #define HWT_USBPHY_DEBUG1_CLR HWIO_32_WO #define HWN_USBPHY_DEBUG1_CLR USBPHY_DEBUG1 #define HWI_USBPHY_DEBUG1_CLR #define HW_USBPHY_DEBUG1_TOG HW(USBPHY_DEBUG1_TOG) #define HWA_USBPHY_DEBUG1_TOG (HWA_USBPHY_DEBUG1 + 0xc) #define HWT_USBPHY_DEBUG1_TOG HWIO_32_WO #define HWN_USBPHY_DEBUG1_TOG USBPHY_DEBUG1 #define HWI_USBPHY_DEBUG1_TOG #define BP_USBPHY_DEBUG1_ENTAILADJVD 13 #define BM_USBPHY_DEBUG1_ENTAILADJVD 0x6000 #define BF_USBPHY_DEBUG1_ENTAILADJVD(v) (((v) & 0x3) << 13) #define BFM_USBPHY_DEBUG1_ENTAILADJVD(v) BM_USBPHY_DEBUG1_ENTAILADJVD #define BF_USBPHY_DEBUG1_ENTAILADJVD_V(e) BF_USBPHY_DEBUG1_ENTAILADJVD(BV_USBPHY_DEBUG1_ENTAILADJVD__##e) #define BFM_USBPHY_DEBUG1_ENTAILADJVD_V(v) BM_USBPHY_DEBUG1_ENTAILADJVD #define BP_USBPHY_DEBUG1_ENTX2TX 12 #define BM_USBPHY_DEBUG1_ENTX2TX 0x1000 #define BF_USBPHY_DEBUG1_ENTX2TX(v) (((v) & 0x1) << 12) #define BFM_USBPHY_DEBUG1_ENTX2TX(v) BM_USBPHY_DEBUG1_ENTX2TX #define BF_USBPHY_DEBUG1_ENTX2TX_V(e) BF_USBPHY_DEBUG1_ENTX2TX(BV_USBPHY_DEBUG1_ENTX2TX__##e) #define BFM_USBPHY_DEBUG1_ENTX2TX_V(v) BM_USBPHY_DEBUG1_ENTX2TX #define BP_USBPHY_DEBUG1_PLL_IS_240 8 #define BM_USBPHY_DEBUG1_PLL_IS_240 0x100 #define BF_USBPHY_DEBUG1_PLL_IS_240(v) (((v) & 0x1) << 8) #define BFM_USBPHY_DEBUG1_PLL_IS_240(v) BM_USBPHY_DEBUG1_PLL_IS_240 #define BF_USBPHY_DEBUG1_PLL_IS_240_V(e) BF_USBPHY_DEBUG1_PLL_IS_240(BV_USBPHY_DEBUG1_PLL_IS_240__##e) #define BFM_USBPHY_DEBUG1_PLL_IS_240_V(v) BM_USBPHY_DEBUG1_PLL_IS_240 #define BP_USBPHY_DEBUG1_DBG_ADDRESS 0 #define BM_USBPHY_DEBUG1_DBG_ADDRESS 0xf #define BF_USBPHY_DEBUG1_DBG_ADDRESS(v) (((v) & 0xf) << 0) #define BFM_USBPHY_DEBUG1_DBG_ADDRESS(v) BM_USBPHY_DEBUG1_DBG_ADDRESS #define BF_USBPHY_DEBUG1_DBG_ADDRESS_V(e) BF_USBPHY_DEBUG1_DBG_ADDRESS(BV_USBPHY_DEBUG1_DBG_ADDRESS__##e) #define BFM_USBPHY_DEBUG1_DBG_ADDRESS_V(v) BM_USBPHY_DEBUG1_DBG_ADDRESS #define HW_USBPHY_VERSION HW(USBPHY_VERSION) #define HWA_USBPHY_VERSION (0x8007c000 + 0x80) #define HWT_USBPHY_VERSION HWIO_32_RW #define HWN_USBPHY_VERSION USBPHY_VERSION #define HWI_USBPHY_VERSION #define BP_USBPHY_VERSION_MAJOR 24 #define BM_USBPHY_VERSION_MAJOR 0xff000000 #define BF_USBPHY_VERSION_MAJOR(v) (((v) & 0xff) << 24) #define BFM_USBPHY_VERSION_MAJOR(v) BM_USBPHY_VERSION_MAJOR #define BF_USBPHY_VERSION_MAJOR_V(e) BF_USBPHY_VERSION_MAJOR(BV_USBPHY_VERSION_MAJOR__##e) #define BFM_USBPHY_VERSION_MAJOR_V(v) BM_USBPHY_VERSION_MAJOR #define BP_USBPHY_VERSION_MINOR 16 #define BM_USBPHY_VERSION_MINOR 0xff0000 #define BF_USBPHY_VERSION_MINOR(v) (((v) & 0xff) << 16) #define BFM_USBPHY_VERSION_MINOR(v) BM_USBPHY_VERSION_MINOR #define BF_USBPHY_VERSION_MINOR_V(e) BF_USBPHY_VERSION_MINOR(BV_USBPHY_VERSION_MINOR__##e) #define BFM_USBPHY_VERSION_MINOR_V(v) BM_USBPHY_VERSION_MINOR #define BP_USBPHY_VERSION_STEP 0 #define BM_USBPHY_VERSION_STEP 0xffff #define BF_USBPHY_VERSION_STEP(v) (((v) & 0xffff) << 0) #define BFM_USBPHY_VERSION_STEP(v) BM_USBPHY_VERSION_STEP #define BF_USBPHY_VERSION_STEP_V(e) BF_USBPHY_VERSION_STEP(BV_USBPHY_VERSION_STEP__##e) #define BFM_USBPHY_VERSION_STEP_V(v) BM_USBPHY_VERSION_STEP #endif /* __HEADERGEN_STMP3700_USBPHY_H__*/