Lines Matching refs:hwcfg2
954 u32 hwcfg1, hwcfg2, hwcfg3, hwcfg4; in dwc2_get_hwparams() local
958 hwcfg2 = dwc2_readl(hsotg, GHWCFG2); in dwc2_get_hwparams()
967 hw->op_mode = (hwcfg2 & GHWCFG2_OP_MODE_MASK) >> in dwc2_get_hwparams()
969 hw->arch = (hwcfg2 & GHWCFG2_ARCHITECTURE_MASK) >> in dwc2_get_hwparams()
971 hw->enable_dynamic_fifo = !!(hwcfg2 & GHWCFG2_DYNAMIC_FIFO); in dwc2_get_hwparams()
972 hw->host_channels = 1 + ((hwcfg2 & GHWCFG2_NUM_HOST_CHAN_MASK) >> in dwc2_get_hwparams()
974 hw->hs_phy_type = (hwcfg2 & GHWCFG2_HS_PHY_TYPE_MASK) >> in dwc2_get_hwparams()
976 hw->fs_phy_type = (hwcfg2 & GHWCFG2_FS_PHY_TYPE_MASK) >> in dwc2_get_hwparams()
978 hw->num_dev_ep = (hwcfg2 & GHWCFG2_NUM_DEV_EP_MASK) >> in dwc2_get_hwparams()
981 (hwcfg2 & GHWCFG2_NONPERIO_TX_Q_DEPTH_MASK) >> in dwc2_get_hwparams()
984 (hwcfg2 & GHWCFG2_HOST_PERIO_TX_Q_DEPTH_MASK) >> in dwc2_get_hwparams()
987 (hwcfg2 & GHWCFG2_DEV_TOKEN_Q_DEPTH_MASK) >> in dwc2_get_hwparams()