• Home
  • Raw
  • Download

Lines Matching refs:otg_ctrl

480 	u32	otg_ctrl;  in update_otg1()  local
482 otg_ctrl = omap_readl(OTG_CTRL) & OTG_CTRL_MASK; in update_otg1()
483 otg_ctrl &= ~OTG_XCEIV_INPUTS; in update_otg1()
484 otg_ctrl &= ~(OTG_ID|OTG_ASESSVLD|OTG_VBUSVLD); in update_otg1()
487 otg_ctrl |= OTG_ASESSVLD; in update_otg1()
490 otg_ctrl &= ~OTG_CTRL_BITS; in update_otg1()
493 otg_ctrl |= OTG_VBUSVLD; in update_otg1()
502 otg_ctrl |= OTG_ID; in update_otg1()
509 omap_writel(otg_ctrl, OTG_CTRL); in update_otg1()
515 u32 otg_ctrl; in update_otg2() local
517 otg_ctrl = omap_readl(OTG_CTRL) & OTG_CTRL_MASK; in update_otg2()
518 otg_ctrl &= ~OTG_XCEIV_INPUTS; in update_otg2()
519 otg_ctrl &= ~(OTG_BSESSVLD | OTG_BSESSEND); in update_otg2()
521 otg_ctrl |= OTG_BSESSVLD; in update_otg2()
523 otg_ctrl |= OTG_BSESSEND; in update_otg2()
524 omap_writel(otg_ctrl, OTG_CTRL); in update_otg2()
530 u32 otg_ctrl, otg_change; in otg_update_isp() local
533 otg_ctrl = omap_readl(OTG_CTRL); in otg_update_isp()
534 otg_change = otg_ctrl ^ isp->last_otg_ctrl; in otg_update_isp()
535 isp->last_otg_ctrl = otg_ctrl; in otg_update_isp()
536 otg_ctrl = otg_ctrl & OTG_XCEIV_INPUTS; in otg_update_isp()
542 if (!(otg_ctrl & OTG_PULLUP)) { in otg_update_isp()
556 if (otg_ctrl & OTG_PULLUP) in otg_update_isp()
568 if (otg_ctrl & OTG) set |= ISP; \ in otg_update_isp()
573 otg_ctrl &= ~OTG_DRV_VBUS; in otg_update_isp()
577 if (otg_ctrl & OTG_DRV_VBUS) { in otg_update_isp()
594 if (otg_ctrl & OTG_DRV_VBUS) { in otg_update_isp()
643 u32 otg_ctrl; in omap_otg_irq() local
675 otg_ctrl = omap_readl(OTG_CTRL); in omap_otg_irq()
676 otg_ctrl |= OTG_BUSDROP; in omap_otg_irq()
677 otg_ctrl &= OTG_CTRL_MASK & ~OTG_XCEIV_INPUTS; in omap_otg_irq()
678 omap_writel(otg_ctrl, OTG_CTRL); in omap_otg_irq()
698 otg_ctrl = omap_readl(OTG_CTRL); in omap_otg_irq()
699 otg_ctrl |= OTG_A_BUSREQ; in omap_otg_irq()
700 otg_ctrl &= ~(OTG_BUSDROP|OTG_B_BUSREQ) in omap_otg_irq()
703 omap_writel(otg_ctrl, OTG_CTRL); in omap_otg_irq()
716 otg_ctrl = omap_readl(OTG_CTRL); in omap_otg_irq()
718 state_name(isp), otg_ctrl); in omap_otg_irq()
721 otg_ctrl |= OTG_BUSDROP; in omap_otg_irq()
722 otg_ctrl &= ~OTG_A_BUSREQ & OTG_CTRL_MASK & ~OTG_XCEIV_INPUTS; in omap_otg_irq()
723 omap_writel(otg_ctrl, OTG_CTRL); in omap_otg_irq()
731 otg_ctrl = omap_readl(OTG_CTRL); in omap_otg_irq()
733 state_name(isp), otg_irq, otg_ctrl); in omap_otg_irq()
735 otg_ctrl |= OTG_BUSDROP; in omap_otg_irq()
736 otg_ctrl &= ~OTG_A_BUSREQ & OTG_CTRL_MASK & ~OTG_XCEIV_INPUTS; in omap_otg_irq()
737 omap_writel(otg_ctrl, OTG_CTRL); in omap_otg_irq()
749 otg_ctrl = omap_readl(OTG_CTRL); in omap_otg_irq()
752 (otg_ctrl & OTG_DRIVER_SEL) in omap_otg_irq()
754 otg_ctrl); in omap_otg_irq()
758 if (otg_ctrl & OTG_DRIVER_SEL) { in omap_otg_irq()
770 if (!(otg_ctrl & OTG_ID)) { in omap_otg_irq()
771 otg_ctrl &= OTG_CTRL_MASK & ~OTG_XCEIV_INPUTS; in omap_otg_irq()
772 omap_writel(otg_ctrl | OTG_A_BUSREQ, OTG_CTRL); in omap_otg_irq()
1112 u32 otg_ctrl; in isp1301_work() local
1123 otg_ctrl = omap_readl(OTG_CTRL); in isp1301_work()
1124 otg_ctrl |= OTG_A_BUSREQ; in isp1301_work()
1125 otg_ctrl &= ~(OTG_BUSDROP|OTG_B_BUSREQ) in isp1301_work()
1127 omap_writel(otg_ctrl, OTG_CTRL); in isp1301_work()
1397 u32 otg_ctrl; in isp1301_start_srp() local
1402 otg_ctrl = omap_readl(OTG_CTRL); in isp1301_start_srp()
1403 if (!(otg_ctrl & OTG_BSESSEND)) in isp1301_start_srp()
1406 otg_ctrl |= OTG_B_BUSREQ; in isp1301_start_srp()
1407 otg_ctrl &= ~OTG_A_BUSREQ & OTG_CTRL_MASK; in isp1301_start_srp()
1408 omap_writel(otg_ctrl, OTG_CTRL); in isp1301_start_srp()