Home
last modified time | relevance | path

Searched refs:hprt0 (Results 1 – 7 of 7) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Ddwc2.c242 uint32_t hprt0 = 0; in dwc_otg_core_host_init() local
308 hprt0 = readl(&regs->hprt0); in dwc_otg_core_host_init()
309 hprt0 &= ~(DWC2_HPRT0_PRTENA | DWC2_HPRT0_PRTCONNDET); in dwc_otg_core_host_init()
310 hprt0 &= ~(DWC2_HPRT0_PRTENCHNG | DWC2_HPRT0_PRTOVRCURRCHNG); in dwc_otg_core_host_init()
311 if (!(hprt0 & DWC2_HPRT0_PRTPWR)) { in dwc_otg_core_host_init()
312 hprt0 |= DWC2_HPRT0_PRTPWR; in dwc_otg_core_host_init()
313 writel(hprt0, &regs->hprt0); in dwc_otg_core_host_init()
529 uint32_t hprt0 = 0; in dwc_otg_submit_rh_msg_in_status() local
550 hprt0 = readl(&regs->hprt0); in dwc_otg_submit_rh_msg_in_status()
551 if (hprt0 & DWC2_HPRT0_PRTCONNSTS) in dwc_otg_submit_rh_msg_in_status()
[all …]
H A Ddwc2.h61 u32 hprt0; /* 0x440 */ member
/OK3568_Linux_fs/kernel/drivers/usb/dwc2/
H A Dhcd.c364 u32 hprt0; in dwc2_calc_frame_interval() local
368 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_calc_frame_interval()
392 if ((hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT == HPRT0_SPD_HIGH_SPEED) in dwc2_calc_frame_interval()
1683 u32 hprt0; in dwc2_hcd_start() local
1691 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_start()
1692 hprt0 |= HPRT0_RST; in dwc2_hcd_start()
1693 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_start()
1780 u32 hprt0; in dwc2_hcd_disconnect() local
1832 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_disconnect()
1834 if (!force && !(hprt0 & HPRT0_CONNDET) && in dwc2_hcd_disconnect()
[all …]
H A Dcore_intr.c84 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_handle_usb_port_intr() local
86 if (hprt0 & HPRT0_ENACHG) { in dwc2_handle_usb_port_intr()
87 hprt0 &= ~HPRT0_ENA; in dwc2_handle_usb_port_intr()
88 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_handle_usb_port_intr()
310 u32 hprt0; in dwc2_handle_session_req_intr() local
333 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_handle_session_req_intr()
334 hprt0 |= HPRT0_PWR; in dwc2_handle_session_req_intr()
335 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_handle_session_req_intr()
H A Dhcd_intr.c263 static void dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0, in dwc2_hprt0_enable() argument
291 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hprt0_enable()
357 u32 hprt0; in dwc2_port_intr() local
362 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_port_intr()
363 hprt0_modify = hprt0; in dwc2_port_intr()
376 if (hprt0 & HPRT0_CONNDET) { in dwc2_port_intr()
381 hprt0); in dwc2_port_intr()
394 if (hprt0 & HPRT0_ENACHG) { in dwc2_port_intr()
398 hprt0, !!(hprt0 & HPRT0_ENA)); in dwc2_port_intr()
399 if (hprt0 & HPRT0_ENA) { in dwc2_port_intr()
[all …]
H A Dhcd.h493 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_read_hprt0() local
495 hprt0 &= ~(HPRT0_ENA | HPRT0_CONNDET | HPRT0_ENACHG | HPRT0_OVRCURRCHG); in dwc2_read_hprt0()
496 return hprt0; in dwc2_read_hprt0()
H A Dcore.h762 u32 hprt0; member