Lines Matching full:pipehandler
427 /* pipehandler registers */
494 * enum atcphy_pipehandler_state - States of the PIPE mux interface ("pipehandler")
572 * @pipehandler_up: True if the PIPE mux ("pipehandler") is set to USB3 or USB4 mode
577 * @regs.pipehandler: USB3 PIPE interface ("pipehandler") registers
613 void __iomem *pipehandler; member
925 if (readl(atcphy->regs.pipehandler + PIPEHANDLER_LOCK_REQ) & PIPEHANDLER_LOCK_EN) { in atcphy_pipehandler_lock()
926 dev_warn(atcphy->dev, "Pipehandler already locked\n"); in atcphy_pipehandler_lock()
930 set32(atcphy->regs.pipehandler + PIPEHANDLER_LOCK_REQ, PIPEHANDLER_LOCK_EN); in atcphy_pipehandler_lock()
932 ret = readl_poll_timeout(atcphy->regs.pipehandler + PIPEHANDLER_LOCK_ACK, reg, in atcphy_pipehandler_lock()
935 clear32(atcphy->regs.pipehandler + PIPEHANDLER_LOCK_REQ, 1); in atcphy_pipehandler_lock()
936 dev_warn(atcphy->dev, "Pipehandler lock not acked.\n"); in atcphy_pipehandler_lock()
947 clear32(atcphy->regs.pipehandler + PIPEHANDLER_LOCK_REQ, PIPEHANDLER_LOCK_EN); in atcphy_pipehandler_unlock()
948 ret = readl_poll_timeout(atcphy->regs.pipehandler + PIPEHANDLER_LOCK_ACK, reg, in atcphy_pipehandler_unlock()
951 dev_warn(atcphy->dev, "Pipehandler lock release not acked.\n"); in atcphy_pipehandler_unlock()
962 if (readl(atcphy->regs.pipehandler + PIPEHANDLER_LOCK_ACK) & PIPEHANDLER_LOCK_EN) { in atcphy_pipehandler_check()
963 dev_warn(atcphy->dev, "Pipehandler already locked\n"); in atcphy_pipehandler_check()
967 dev_err(atcphy->dev, "Failed to unlock pipehandler\n"); in atcphy_pipehandler_check()
990 clear32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE_VALUES, in atcphy_configure_pipehandler_usb3()
992 set32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE, in atcphy_configure_pipehandler_usb3()
994 set32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE, in atcphy_configure_pipehandler_usb3()
999 dev_err(atcphy->dev, "Failed to lock pipehandler"); in atcphy_configure_pipehandler_usb3()
1043 mask32(atcphy->regs.pipehandler + PIPEHANDLER_NONSELECTED_OVERRIDE, in atcphy_configure_pipehandler_usb3()
1045 clear32(atcphy->regs.pipehandler + PIPEHANDLER_NONSELECTED_OVERRIDE, in atcphy_configure_pipehandler_usb3()
1057 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_CLK, in atcphy_configure_pipehandler_usb3()
1060 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_DATA, in atcphy_configure_pipehandler_usb3()
1063 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_CLK, in atcphy_configure_pipehandler_usb3()
1068 clear32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE, PIPEHANDLER_OVERRIDE_RXVALID); in atcphy_configure_pipehandler_usb3()
1069 clear32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE, PIPEHANDLER_OVERRIDE_RXDETECT); in atcphy_configure_pipehandler_usb3()
1071 /* Pipehandler was only locked when the BIST sequence was applied for host mode */ in atcphy_configure_pipehandler_usb3()
1075 dev_warn(atcphy->dev, "Failed to unlock pipehandler"); in atcphy_configure_pipehandler_usb3()
1090 clear32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE_VALUES, in atcphy_configure_pipehandler_dummy()
1092 set32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE, PIPEHANDLER_OVERRIDE_RXVALID); in atcphy_configure_pipehandler_dummy()
1093 set32(atcphy->regs.pipehandler + PIPEHANDLER_OVERRIDE, PIPEHANDLER_OVERRIDE_RXDETECT); in atcphy_configure_pipehandler_dummy()
1097 dev_warn(atcphy->dev, "Failed to lock pipehandler"); in atcphy_configure_pipehandler_dummy()
1100 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_CLK, in atcphy_configure_pipehandler_dummy()
1103 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_DATA, in atcphy_configure_pipehandler_dummy()
1106 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_CLK, in atcphy_configure_pipehandler_dummy()
1112 dev_warn(atcphy->dev, "Failed to unlock pipehandler"); in atcphy_configure_pipehandler_dummy()
1114 mask32(atcphy->regs.pipehandler + PIPEHANDLER_NONSELECTED_OVERRIDE, in atcphy_configure_pipehandler_dummy()
1116 set32(atcphy->regs.pipehandler + PIPEHANDLER_NONSELECTED_OVERRIDE, in atcphy_configure_pipehandler_dummy()
1150 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_CLK, in atcphy_setup_pipehandler()
1153 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_DATA, in atcphy_setup_pipehandler()
1156 mask32(atcphy->regs.pipehandler + PIPEHANDLER_MUX_CTRL, PIPEHANDLER_MUX_CTRL_CLK, in atcphy_setup_pipehandler()
1983 clear32(atcphy->regs.pipehandler + PIPEHANDLER_AON_GEN, PIPEHANDLER_AON_GEN_DWC3_RESET_N); in _atcphy_dwc3_reset_assert()
1984 set32(atcphy->regs.pipehandler + PIPEHANDLER_AON_GEN, in _atcphy_dwc3_reset_assert()
2016 clear32(atcphy->regs.pipehandler + PIPEHANDLER_AON_GEN, in atcphy_dwc3_reset_deassert()
2018 set32(atcphy->regs.pipehandler + PIPEHANDLER_AON_GEN, PIPEHANDLER_AON_GEN_DWC3_RESET_N); in atcphy_dwc3_reset_deassert()
2148 * If the pipehandler is still/already up here there's a bug somewhere so make sure to in atcphy_mux_set()
2219 { "pipehandler", &atcphy->regs.pipehandler, NULL }, in atcphy_map_resources()