Lines Matching +full:0 +full:x0680
3 * Rockchip USB2.0 PHY with Innosilicon IP block driver
43 PHY_STATE_HS_ONLINE = 0,
62 USB_CHG_STATE_UNDEFINED = 0,
228 * struct rockchip_usb2phy - usb2.0 phy driver data.
310 return 0; in rockchip_usb2phy_reset()
330 return 0; in rockchip_usb2phy_clk480m_prepare()
380 int ret = 0; in rockchip_usb2phy_clk480m_register()
382 init.flags = 0; in rockchip_usb2phy_clk480m_register()
395 init.num_parents = 0; in rockchip_usb2phy_clk480m_register()
408 if (ret < 0) in rockchip_usb2phy_clk480m_register()
426 edev = extcon_get_edev_by_phandle(rphy->dev, 0); in rockchip_usb2phy_extcon_register()
449 return 0; in rockchip_usb2phy_extcon_register()
477 int ret = 0; in rockchip_usb2phy_init()
567 return 0; in rockchip_usb2phy_power_on()
595 return 0; in rockchip_usb2phy_power_on()
608 return 0; in rockchip_usb2phy_power_off()
617 return 0; in rockchip_usb2phy_power_off()
632 return 0; in rockchip_usb2phy_exit()
669 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0) { in rockchip_usb2phy_otg_sm_work()
678 schedule_delayed_work(&rport->chg_work, 0); in rockchip_usb2phy_otg_sm_work()
737 delay = 0; in rockchip_usb2phy_otg_sm_work()
743 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) == 0) { in rockchip_usb2phy_otg_sm_work()
822 rphy->dcd_retries = 0; in rockchip_chg_detect_work()
858 delay = 0; in rockchip_chg_detect_work()
862 delay = 0; in rockchip_chg_detect_work()
918 if (ret < 0) in rockchip_usb2phy_sm_work()
926 if (ret < 0) in rockchip_usb2phy_sm_work()
1110 for (index = 0; index < rphy->phy_cfg->num_ports; index++) { in rockchip_usb2phy_irq()
1144 if (rphy->irq > 0) in rockchip_usb2phy_port_irq_init()
1145 return 0; in rockchip_usb2phy_port_irq_init()
1150 if (rport->ls_irq < 0) { in rockchip_usb2phy_port_irq_init()
1171 if (rport->otg_mux_irq > 0) { in rockchip_usb2phy_port_irq_init()
1185 if (rport->bvalid_irq < 0) { in rockchip_usb2phy_port_irq_init()
1204 if (rport->id_irq < 0) { in rockchip_usb2phy_port_irq_init()
1227 return 0; in rockchip_usb2phy_port_irq_init()
1249 return 0; in rockchip_usb2phy_host_port_init()
1287 ret = 0; in rockchip_usb2phy_otg_port_init()
1360 if (of_property_read_u32_index(np, "reg", 0, ®)) { in rockchip_usb2phy_probe()
1367 if (of_property_count_u32_elems(np, "reg") > 2 && reg == 0) { in rockchip_usb2phy_probe()
1379 rphy->irq = platform_get_irq_optional(pdev, 0); in rockchip_usb2phy_probe()
1390 index = 0; in rockchip_usb2phy_probe()
1401 dev_err(dev, "could not find phy config for reg=0x%08x\n", reg); in rockchip_usb2phy_probe()
1427 index = 0; in rockchip_usb2phy_probe()
1470 if (rphy->irq > 0) { in rockchip_usb2phy_probe()
1493 return regmap_write_bits(rphy->grf, 0x298, in rk3128_usb2phy_tuning()
1495 BIT(2) << BIT_WRITEABLE_SHIFT | 0); in rk3128_usb2phy_tuning()
1506 int suspend_cfg = 0x14; in rk3588_usb2phy_tuning()
1508 if (rphy->phy_cfg->reg == 0x0000 || rphy->phy_cfg->reg == 0x4000) { in rk3588_usb2phy_tuning()
1510 suspend_cfg |= 0x01; /* utmi_opmode = 2'b01 (no-driving) */ in rk3588_usb2phy_tuning()
1512 } else if (rphy->phy_cfg->reg == 0x8000 || rphy->phy_cfg->reg == 0xc000) { in rk3588_usb2phy_tuning()
1514 suspend_cfg |= 0x00; /* utmi_opmode = 2'b00 (normal) */ in rk3588_usb2phy_tuning()
1520 ret = regmap_write(rphy->grf, 0x0008, GENMASK(29, 29) | 0x0000); in rk3588_usb2phy_tuning()
1530 ret |= regmap_write(rphy->grf, 0x000c, GENMASK(20, 16) | suspend_cfg); in rk3588_usb2phy_tuning()
1533 ret |= regmap_write(rphy->grf, 0x0004, GENMASK(27, 24) | 0x0900); in rk3588_usb2phy_tuning()
1536 ret |= regmap_write(rphy->grf, 0x0008, GENMASK(20, 19) | 0x0010); in rk3588_usb2phy_tuning()
1542 ret |= regmap_write(rphy->grf, 0x0010, GENMASK(17, 16) | 0x0003); in rk3588_usb2phy_tuning()
1549 .reg = 0x17c,
1552 .clkout_ctl = { 0x0190, 15, 15, 1, 0 },
1555 .phy_sus = { 0x017c, 8, 0, 0, 0x1d1 },
1556 .bvalid_det_en = { 0x017c, 14, 14, 0, 1 },
1557 .bvalid_det_st = { 0x017c, 15, 15, 0, 1 },
1558 .bvalid_det_clr = { 0x017c, 15, 15, 0, 1 },
1559 .idfall_det_en = { 0x01a0, 2, 2, 0, 1 },
1560 .idfall_det_st = { 0x01a0, 3, 3, 0, 1 },
1561 .idfall_det_clr = { 0x01a0, 3, 3, 0, 1 },
1562 .idrise_det_en = { 0x01a0, 0, 0, 0, 1 },
1563 .idrise_det_st = { 0x01a0, 1, 1, 0, 1 },
1564 .idrise_det_clr = { 0x01a0, 1, 1, 0, 1 },
1565 .ls_det_en = { 0x017c, 12, 12, 0, 1 },
1566 .ls_det_st = { 0x017c, 13, 13, 0, 1 },
1567 .ls_det_clr = { 0x017c, 13, 13, 0, 1 },
1568 .utmi_bvalid = { 0x014c, 5, 5, 0, 1 },
1569 .utmi_id = { 0x014c, 8, 8, 0, 1 },
1570 .utmi_ls = { 0x014c, 7, 6, 0, 1 },
1573 .phy_sus = { 0x0194, 8, 0, 0, 0x1d1 },
1574 .ls_det_en = { 0x0194, 14, 14, 0, 1 },
1575 .ls_det_st = { 0x0194, 15, 15, 0, 1 },
1576 .ls_det_clr = { 0x0194, 15, 15, 0, 1 }
1580 .opmode = { 0x017c, 3, 0, 5, 1 },
1581 .cp_det = { 0x02c0, 6, 6, 0, 1 },
1582 .dcp_det = { 0x02c0, 5, 5, 0, 1 },
1583 .dp_det = { 0x02c0, 7, 7, 0, 1 },
1584 .idm_sink_en = { 0x0184, 8, 8, 0, 1 },
1585 .idp_sink_en = { 0x0184, 7, 7, 0, 1 },
1586 .idp_src_en = { 0x0184, 9, 9, 0, 1 },
1587 .rdm_pdwn_en = { 0x0184, 10, 10, 0, 1 },
1588 .vdm_src_en = { 0x0184, 12, 12, 0, 1 },
1589 .vdp_src_en = { 0x0184, 11, 11, 0, 1 },
1597 .reg = 0x760,
1599 .clkout_ctl = { 0x0768, 4, 4, 1, 0 },
1602 .phy_sus = { 0x0760, 15, 0, 0, 0x1d1 },
1603 .bvalid_det_en = { 0x0680, 3, 3, 0, 1 },
1604 .bvalid_det_st = { 0x0690, 3, 3, 0, 1 },
1605 .bvalid_det_clr = { 0x06a0, 3, 3, 0, 1 },
1606 .idfall_det_en = { 0x0680, 6, 6, 0, 1 },
1607 .idfall_det_st = { 0x0690, 6, 6, 0, 1 },
1608 .idfall_det_clr = { 0x06a0, 6, 6, 0, 1 },
1609 .idrise_det_en = { 0x0680, 5, 5, 0, 1 },
1610 .idrise_det_st = { 0x0690, 5, 5, 0, 1 },
1611 .idrise_det_clr = { 0x06a0, 5, 5, 0, 1 },
1612 .ls_det_en = { 0x0680, 2, 2, 0, 1 },
1613 .ls_det_st = { 0x0690, 2, 2, 0, 1 },
1614 .ls_det_clr = { 0x06a0, 2, 2, 0, 1 },
1615 .utmi_bvalid = { 0x0480, 4, 4, 0, 1 },
1616 .utmi_id = { 0x0480, 1, 1, 0, 1 },
1617 .utmi_ls = { 0x0480, 3, 2, 0, 1 },
1620 .phy_sus = { 0x0764, 15, 0, 0, 0x1d1 },
1621 .ls_det_en = { 0x0680, 4, 4, 0, 1 },
1622 .ls_det_st = { 0x0690, 4, 4, 0, 1 },
1623 .ls_det_clr = { 0x06a0, 4, 4, 0, 1 }
1627 .opmode = { 0x0760, 3, 0, 5, 1 },
1628 .cp_det = { 0x0884, 4, 4, 0, 1 },
1629 .dcp_det = { 0x0884, 3, 3, 0, 1 },
1630 .dp_det = { 0x0884, 5, 5, 0, 1 },
1631 .idm_sink_en = { 0x0768, 8, 8, 0, 1 },
1632 .idp_sink_en = { 0x0768, 7, 7, 0, 1 },
1633 .idp_src_en = { 0x0768, 9, 9, 0, 1 },
1634 .rdm_pdwn_en = { 0x0768, 10, 10, 0, 1 },
1635 .vdm_src_en = { 0x0768, 12, 12, 0, 1 },
1636 .vdp_src_en = { 0x0768, 11, 11, 0, 1 },
1640 .reg = 0x800,
1642 .clkout_ctl = { 0x0808, 4, 4, 1, 0 },
1645 .phy_sus = { 0x800, 15, 0, 0, 0x1d1 },
1646 .ls_det_en = { 0x0684, 0, 0, 0, 1 },
1647 .ls_det_st = { 0x0694, 0, 0, 0, 1 },
1648 .ls_det_clr = { 0x06a4, 0, 0, 0, 1 }
1651 .phy_sus = { 0x804, 15, 0, 0, 0x1d1 },
1652 .ls_det_en = { 0x0684, 1, 1, 0, 1 },
1653 .ls_det_st = { 0x0694, 1, 1, 0, 1 },
1654 .ls_det_clr = { 0x06a4, 1, 1, 0, 1 }
1663 .reg = 0x100,
1665 .clkout_ctl = { 0x108, 4, 4, 1, 0 },
1668 .phy_sus = { 0x0100, 8, 0, 0, 0x1d1 },
1669 .bvalid_det_en = { 0x3020, 3, 2, 0, 3 },
1670 .bvalid_det_st = { 0x3024, 3, 2, 0, 3 },
1671 .bvalid_det_clr = { 0x3028, 3, 2, 0, 3 },
1672 .idfall_det_en = { 0x3020, 5, 5, 0, 1 },
1673 .idfall_det_st = { 0x3024, 5, 5, 0, 1 },
1674 .idfall_det_clr = { 0x3028, 5, 5, 0, 1 },
1675 .idrise_det_en = { 0x3020, 4, 4, 0, 1 },
1676 .idrise_det_st = { 0x3024, 4, 4, 0, 1 },
1677 .idrise_det_clr = { 0x3028, 4, 4, 0, 1 },
1678 .ls_det_en = { 0x3020, 0, 0, 0, 1 },
1679 .ls_det_st = { 0x3024, 0, 0, 0, 1 },
1680 .ls_det_clr = { 0x3028, 0, 0, 0, 1 },
1681 .utmi_avalid = { 0x0120, 10, 10, 0, 1 },
1682 .utmi_bvalid = { 0x0120, 9, 9, 0, 1 },
1683 .utmi_id = { 0x0120, 6, 6, 0, 1 },
1684 .utmi_ls = { 0x0120, 5, 4, 0, 1 },
1687 .phy_sus = { 0x0104, 8, 0, 0, 0x1d1 },
1688 .ls_det_en = { 0x3020, 1, 1, 0, 1 },
1689 .ls_det_st = { 0x3024, 1, 1, 0, 1 },
1690 .ls_det_clr = { 0x3028, 1, 1, 0, 1 },
1691 .utmi_ls = { 0x0120, 17, 16, 0, 1 },
1692 .utmi_hstdet = { 0x0120, 19, 19, 0, 1 }
1696 .opmode = { 0x0100, 3, 0, 5, 1 },
1697 .cp_det = { 0x0120, 24, 24, 0, 1 },
1698 .dcp_det = { 0x0120, 23, 23, 0, 1 },
1699 .dp_det = { 0x0120, 25, 25, 0, 1 },
1700 .idm_sink_en = { 0x0108, 8, 8, 0, 1 },
1701 .idp_sink_en = { 0x0108, 7, 7, 0, 1 },
1702 .idp_src_en = { 0x0108, 9, 9, 0, 1 },
1703 .rdm_pdwn_en = { 0x0108, 10, 10, 0, 1 },
1704 .vdm_src_en = { 0x0108, 12, 12, 0, 1 },
1705 .vdp_src_en = { 0x0108, 11, 11, 0, 1 },
1713 .reg = 0x100,
1715 .clkout_ctl = { 0x108, 4, 4, 1, 0 },
1718 .phy_sus = { 0x0100, 15, 0, 0, 0x1d1 },
1719 .bvalid_det_en = { 0x0110, 3, 2, 0, 3 },
1720 .bvalid_det_st = { 0x0114, 3, 2, 0, 3 },
1721 .bvalid_det_clr = { 0x0118, 3, 2, 0, 3 },
1722 .idfall_det_en = { 0x0110, 5, 5, 0, 1 },
1723 .idfall_det_st = { 0x0114, 5, 5, 0, 1 },
1724 .idfall_det_clr = { 0x0118, 5, 5, 0, 1 },
1725 .idrise_det_en = { 0x0110, 4, 4, 0, 1 },
1726 .idrise_det_st = { 0x0114, 4, 4, 0, 1 },
1727 .idrise_det_clr = { 0x0118, 4, 4, 0, 1 },
1728 .ls_det_en = { 0x0110, 0, 0, 0, 1 },
1729 .ls_det_st = { 0x0114, 0, 0, 0, 1 },
1730 .ls_det_clr = { 0x0118, 0, 0, 0, 1 },
1731 .utmi_avalid = { 0x0120, 10, 10, 0, 1 },
1732 .utmi_bvalid = { 0x0120, 9, 9, 0, 1 },
1733 .utmi_id = { 0x0120, 6, 6, 0, 1 },
1734 .utmi_ls = { 0x0120, 5, 4, 0, 1 },
1737 .phy_sus = { 0x104, 15, 0, 0, 0x1d1 },
1738 .ls_det_en = { 0x110, 1, 1, 0, 1 },
1739 .ls_det_st = { 0x114, 1, 1, 0, 1 },
1740 .ls_det_clr = { 0x118, 1, 1, 0, 1 },
1741 .utmi_ls = { 0x120, 17, 16, 0, 1 },
1742 .utmi_hstdet = { 0x120, 19, 19, 0, 1 }
1746 .opmode = { 0x0100, 3, 0, 5, 1 },
1747 .cp_det = { 0x0120, 24, 24, 0, 1 },
1748 .dcp_det = { 0x0120, 23, 23, 0, 1 },
1749 .dp_det = { 0x0120, 25, 25, 0, 1 },
1750 .idm_sink_en = { 0x0108, 8, 8, 0, 1 },
1751 .idp_sink_en = { 0x0108, 7, 7, 0, 1 },
1752 .idp_src_en = { 0x0108, 9, 9, 0, 1 },
1753 .rdm_pdwn_en = { 0x0108, 10, 10, 0, 1 },
1754 .vdm_src_en = { 0x0108, 12, 12, 0, 1 },
1755 .vdp_src_en = { 0x0108, 11, 11, 0, 1 },
1763 .reg = 0x700,
1765 .clkout_ctl = { 0x0724, 15, 15, 1, 0 },
1768 .phy_sus = { 0x0728, 15, 0, 0, 0x1d1 },
1769 .ls_det_en = { 0x0680, 4, 4, 0, 1 },
1770 .ls_det_st = { 0x0690, 4, 4, 0, 1 },
1771 .ls_det_clr = { 0x06a0, 4, 4, 0, 1 },
1772 .utmi_ls = { 0x049c, 14, 13, 0, 1 },
1773 .utmi_hstdet = { 0x049c, 12, 12, 0, 1 }
1782 .reg = 0xe450,
1784 .clkout_ctl = { 0xe450, 4, 4, 1, 0 },
1787 .phy_sus = { 0xe454, 1, 0, 2, 1 },
1788 .bvalid_det_en = { 0xe3c0, 3, 3, 0, 1 },
1789 .bvalid_det_st = { 0xe3e0, 3, 3, 0, 1 },
1790 .bvalid_det_clr = { 0xe3d0, 3, 3, 0, 1 },
1791 .idfall_det_en = { 0xe3c0, 5, 5, 0, 1 },
1792 .idfall_det_st = { 0xe3e0, 5, 5, 0, 1 },
1793 .idfall_det_clr = { 0xe3d0, 5, 5, 0, 1 },
1794 .idrise_det_en = { 0xe3c0, 4, 4, 0, 1 },
1795 .idrise_det_st = { 0xe3e0, 4, 4, 0, 1 },
1796 .idrise_det_clr = { 0xe3d0, 4, 4, 0, 1 },
1797 .utmi_avalid = { 0xe2ac, 7, 7, 0, 1 },
1798 .utmi_bvalid = { 0xe2ac, 12, 12, 0, 1 },
1799 .utmi_id = { 0xe2ac, 8, 8, 0, 1 },
1802 .phy_sus = { 0xe458, 1, 0, 0x2, 0x1 },
1803 .ls_det_en = { 0xe3c0, 6, 6, 0, 1 },
1804 .ls_det_st = { 0xe3e0, 6, 6, 0, 1 },
1805 .ls_det_clr = { 0xe3d0, 6, 6, 0, 1 },
1806 .utmi_ls = { 0xe2ac, 22, 21, 0, 1 },
1807 .utmi_hstdet = { 0xe2ac, 23, 23, 0, 1 }
1811 .opmode = { 0xe454, 3, 0, 5, 1 },
1812 .cp_det = { 0xe2ac, 2, 2, 0, 1 },
1813 .dcp_det = { 0xe2ac, 1, 1, 0, 1 },
1814 .dp_det = { 0xe2ac, 0, 0, 0, 1 },
1815 .idm_sink_en = { 0xe450, 8, 8, 0, 1 },
1816 .idp_sink_en = { 0xe450, 7, 7, 0, 1 },
1817 .idp_src_en = { 0xe450, 9, 9, 0, 1 },
1818 .rdm_pdwn_en = { 0xe450, 10, 10, 0, 1 },
1819 .vdm_src_en = { 0xe450, 12, 12, 0, 1 },
1820 .vdp_src_en = { 0xe450, 11, 11, 0, 1 },
1824 .reg = 0xe460,
1826 .clkout_ctl = { 0xe460, 4, 4, 1, 0 },
1829 .phy_sus = { 0xe464, 1, 0, 2, 1 },
1830 .bvalid_det_en = { 0xe3c0, 8, 8, 0, 1 },
1831 .bvalid_det_st = { 0xe3e0, 8, 8, 0, 1 },
1832 .bvalid_det_clr = { 0xe3d0, 8, 8, 0, 1 },
1833 .idfall_det_en = { 0xe3c0, 10, 10, 0, 1 },
1834 .idfall_det_st = { 0xe3e0, 10, 10, 0, 1 },
1835 .idfall_det_clr = { 0xe3d0, 10, 10, 0, 1 },
1836 .idrise_det_en = { 0xe3c0, 9, 9, 0, 1 },
1837 .idrise_det_st = { 0xe3e0, 9, 9, 0, 1 },
1838 .idrise_det_clr = { 0xe3d0, 9, 9, 0, 1 },
1839 .utmi_avalid = { 0xe2ac, 10, 10, 0, 1 },
1840 .utmi_bvalid = { 0xe2ac, 16, 16, 0, 1 },
1841 .utmi_id = { 0xe2ac, 11, 11, 0, 1 },
1844 .phy_sus = { 0xe468, 1, 0, 0x2, 0x1 },
1845 .ls_det_en = { 0xe3c0, 11, 11, 0, 1 },
1846 .ls_det_st = { 0xe3e0, 11, 11, 0, 1 },
1847 .ls_det_clr = { 0xe3d0, 11, 11, 0, 1 },
1848 .utmi_ls = { 0xe2ac, 26, 25, 0, 1 },
1849 .utmi_hstdet = { 0xe2ac, 27, 27, 0, 1 }
1858 .reg = 0xfe8a0000,
1860 .clkout_ctl = { 0x0008, 4, 4, 1, 0 },
1863 .phy_sus = { 0x0000, 8, 0, 0, 0x1d1 },
1864 .bvalid_det_en = { 0x0080, 3, 2, 0, 3 },
1865 .bvalid_det_st = { 0x0084, 3, 2, 0, 3 },
1866 .bvalid_det_clr = { 0x0088, 3, 2, 0, 3 },
1867 .idfall_det_en = { 0x0080, 5, 5, 0, 1 },
1868 .idfall_det_st = { 0x0084, 5, 5, 0, 1 },
1869 .idfall_det_clr = { 0x0088, 5, 5, 0, 1 },
1870 .idrise_det_en = { 0x0080, 4, 4, 0, 1 },
1871 .idrise_det_st = { 0x0084, 4, 4, 0, 1 },
1872 .idrise_det_clr = { 0x0088, 4, 4, 0, 1 },
1873 .utmi_avalid = { 0x00c0, 10, 10, 0, 1 },
1874 .utmi_bvalid = { 0x00c0, 9, 9, 0, 1 },
1875 .utmi_id = { 0x00c0, 6, 6, 0, 1 },
1879 .phy_sus = { 0x0004, 8, 0, 0x1d2, 0x1d2 },
1880 .ls_det_en = { 0x0080, 1, 1, 0, 1 },
1881 .ls_det_st = { 0x0084, 1, 1, 0, 1 },
1882 .ls_det_clr = { 0x0088, 1, 1, 0, 1 },
1883 .utmi_ls = { 0x00c0, 17, 16, 0, 1 },
1884 .utmi_hstdet = { 0x00c0, 19, 19, 0, 1 }
1888 .opmode = { 0x0000, 3, 0, 5, 1 },
1889 .cp_det = { 0x00c0, 24, 24, 0, 1 },
1890 .dcp_det = { 0x00c0, 23, 23, 0, 1 },
1891 .dp_det = { 0x00c0, 25, 25, 0, 1 },
1892 .idm_sink_en = { 0x0008, 8, 8, 0, 1 },
1893 .idp_sink_en = { 0x0008, 7, 7, 0, 1 },
1894 .idp_src_en = { 0x0008, 9, 9, 0, 1 },
1895 .rdm_pdwn_en = { 0x0008, 10, 10, 0, 1 },
1896 .vdm_src_en = { 0x0008, 12, 12, 0, 1 },
1897 .vdp_src_en = { 0x0008, 11, 11, 0, 1 },
1901 .reg = 0xfe8b0000,
1903 .clkout_ctl = { 0x0008, 4, 4, 1, 0 },
1906 .phy_sus = { 0x0000, 8, 0, 0x1d2, 0x1d1 },
1907 .ls_det_en = { 0x0080, 0, 0, 0, 1 },
1908 .ls_det_st = { 0x0084, 0, 0, 0, 1 },
1909 .ls_det_clr = { 0x0088, 0, 0, 0, 1 },
1910 .utmi_ls = { 0x00c0, 5, 4, 0, 1 },
1911 .utmi_hstdet = { 0x00c0, 7, 7, 0, 1 }
1914 .phy_sus = { 0x0004, 8, 0, 0x1d2, 0x1d1 },
1915 .ls_det_en = { 0x0080, 1, 1, 0, 1 },
1916 .ls_det_st = { 0x0084, 1, 1, 0, 1 },
1917 .ls_det_clr = { 0x0088, 1, 1, 0, 1 },
1918 .utmi_ls = { 0x00c0, 17, 16, 0, 1 },
1919 .utmi_hstdet = { 0x00c0, 19, 19, 0, 1 }
1928 .reg = 0x0000,
1931 .clkout_ctl = { 0x0000, 0, 0, 1, 0 },
1934 .phy_sus = { 0x000c, 11, 11, 0, 1 },
1935 .bvalid_det_en = { 0x0080, 1, 1, 0, 1 },
1936 .bvalid_det_st = { 0x0084, 1, 1, 0, 1 },
1937 .bvalid_det_clr = { 0x0088, 1, 1, 0, 1 },
1938 .ls_det_en = { 0x0080, 0, 0, 0, 1 },
1939 .ls_det_st = { 0x0084, 0, 0, 0, 1 },
1940 .ls_det_clr = { 0x0088, 0, 0, 0, 1 },
1941 .disfall_en = { 0x0080, 6, 6, 0, 1 },
1942 .disfall_st = { 0x0084, 6, 6, 0, 1 },
1943 .disfall_clr = { 0x0088, 6, 6, 0, 1 },
1944 .disrise_en = { 0x0080, 5, 5, 0, 1 },
1945 .disrise_st = { 0x0084, 5, 5, 0, 1 },
1946 .disrise_clr = { 0x0088, 5, 5, 0, 1 },
1947 .utmi_avalid = { 0x00c0, 7, 7, 0, 1 },
1948 .utmi_bvalid = { 0x00c0, 6, 6, 0, 1 },
1949 .utmi_ls = { 0x00c0, 10, 9, 0, 1 },
1953 .cp_det = { 0x00c0, 0, 0, 0, 1 },
1954 .dcp_det = { 0x00c0, 0, 0, 0, 1 },
1955 .dp_det = { 0x00c0, 1, 1, 1, 0 },
1956 .idm_sink_en = { 0x0008, 5, 5, 1, 0 },
1957 .idp_sink_en = { 0x0008, 5, 5, 0, 1 },
1958 .idp_src_en = { 0x0008, 14, 14, 0, 1 },
1959 .rdm_pdwn_en = { 0x0008, 14, 14, 0, 1 },
1960 .vdm_src_en = { 0x0008, 7, 6, 0, 3 },
1961 .vdp_src_en = { 0x0008, 7, 6, 0, 3 },
1965 .reg = 0x4000,
1968 .clkout_ctl = { 0x0000, 0, 0, 1, 0 },
1971 .phy_sus = { 0x000c, 11, 11, 0, 1 },
1972 .bvalid_det_en = { 0x0080, 1, 1, 0, 1 },
1973 .bvalid_det_st = { 0x0084, 1, 1, 0, 1 },
1974 .bvalid_det_clr = { 0x0088, 1, 1, 0, 1 },
1975 .ls_det_en = { 0x0080, 0, 0, 0, 1 },
1976 .ls_det_st = { 0x0084, 0, 0, 0, 1 },
1977 .ls_det_clr = { 0x0088, 0, 0, 0, 1 },
1978 .disfall_en = { 0x0080, 6, 6, 0, 1 },
1979 .disfall_st = { 0x0084, 6, 6, 0, 1 },
1980 .disfall_clr = { 0x0088, 6, 6, 0, 1 },
1981 .disrise_en = { 0x0080, 5, 5, 0, 1 },
1982 .disrise_st = { 0x0084, 5, 5, 0, 1 },
1983 .disrise_clr = { 0x0088, 5, 5, 0, 1 },
1984 .utmi_avalid = { 0x00c0, 7, 7, 0, 1 },
1985 .utmi_bvalid = { 0x00c0, 6, 6, 0, 1 },
1986 .utmi_ls = { 0x00c0, 10, 9, 0, 1 },
1990 .cp_det = { 0x00c0, 0, 0, 0, 1 },
1991 .dcp_det = { 0x00c0, 0, 0, 0, 1 },
1992 .dp_det = { 0x00c0, 1, 1, 1, 0 },
1993 .idm_sink_en = { 0x0008, 5, 5, 1, 0 },
1994 .idp_sink_en = { 0x0008, 5, 5, 0, 1 },
1995 .idp_src_en = { 0x0008, 14, 14, 0, 1 },
1996 .rdm_pdwn_en = { 0x0008, 14, 14, 0, 1 },
1997 .vdm_src_en = { 0x0008, 7, 6, 0, 3 },
1998 .vdp_src_en = { 0x0008, 7, 6, 0, 3 },
2002 .reg = 0x8000,
2005 .clkout_ctl = { 0x0000, 0, 0, 1, 0 },
2008 .phy_sus = { 0x0008, 2, 2, 0, 1 },
2009 .ls_det_en = { 0x0080, 0, 0, 0, 1 },
2010 .ls_det_st = { 0x0084, 0, 0, 0, 1 },
2011 .ls_det_clr = { 0x0088, 0, 0, 0, 1 },
2012 .disfall_en = { 0x0080, 6, 6, 0, 1 },
2013 .disfall_st = { 0x0084, 6, 6, 0, 1 },
2014 .disfall_clr = { 0x0088, 6, 6, 0, 1 },
2015 .disrise_en = { 0x0080, 5, 5, 0, 1 },
2016 .disrise_st = { 0x0084, 5, 5, 0, 1 },
2017 .disrise_clr = { 0x0088, 5, 5, 0, 1 },
2018 .utmi_ls = { 0x00c0, 10, 9, 0, 1 },
2023 .reg = 0xc000,
2026 .clkout_ctl = { 0x0000, 0, 0, 1, 0 },
2029 .phy_sus = { 0x0008, 2, 2, 0, 1 },
2030 .ls_det_en = { 0x0080, 0, 0, 0, 1 },
2031 .ls_det_st = { 0x0084, 0, 0, 0, 1 },
2032 .ls_det_clr = { 0x0088, 0, 0, 0, 1 },
2033 .disfall_en = { 0x0080, 6, 6, 0, 1 },
2034 .disfall_st = { 0x0084, 6, 6, 0, 1 },
2035 .disfall_clr = { 0x0088, 6, 6, 0, 1 },
2036 .disrise_en = { 0x0080, 5, 5, 0, 1 },
2037 .disrise_st = { 0x0084, 5, 5, 0, 1 },
2038 .disrise_clr = { 0x0088, 5, 5, 0, 1 },
2039 .utmi_ls = { 0x00c0, 10, 9, 0, 1 },
2048 .reg = 0x100,
2050 .clkout_ctl = { 0x108, 4, 4, 1, 0 },
2053 .phy_sus = { 0x0100, 15, 0, 0, 0x1d1 },
2054 .bvalid_det_en = { 0x0680, 3, 3, 0, 1 },
2055 .bvalid_det_st = { 0x0690, 3, 3, 0, 1 },
2056 .bvalid_det_clr = { 0x06a0, 3, 3, 0, 1 },
2057 .ls_det_en = { 0x0680, 2, 2, 0, 1 },
2058 .ls_det_st = { 0x0690, 2, 2, 0, 1 },
2059 .ls_det_clr = { 0x06a0, 2, 2, 0, 1 },
2060 .utmi_bvalid = { 0x0804, 10, 10, 0, 1 },
2061 .utmi_ls = { 0x0804, 13, 12, 0, 1 },
2064 .phy_sus = { 0x0104, 15, 0, 0, 0x1d1 },
2065 .ls_det_en = { 0x0680, 4, 4, 0, 1 },
2066 .ls_det_st = { 0x0690, 4, 4, 0, 1 },
2067 .ls_det_clr = { 0x06a0, 4, 4, 0, 1 },
2068 .utmi_ls = { 0x0804, 9, 8, 0, 1 },
2069 .utmi_hstdet = { 0x0804, 7, 7, 0, 1 }
2073 .opmode = { 0x0100, 3, 0, 5, 1 },
2074 .cp_det = { 0x0804, 1, 1, 0, 1 },
2075 .dcp_det = { 0x0804, 0, 0, 0, 1 },
2076 .dp_det = { 0x0804, 2, 2, 0, 1 },
2077 .idm_sink_en = { 0x0108, 8, 8, 0, 1 },
2078 .idp_sink_en = { 0x0108, 7, 7, 0, 1 },
2079 .idp_src_en = { 0x0108, 9, 9, 0, 1 },
2080 .rdm_pdwn_en = { 0x0108, 10, 10, 0, 1 },
2081 .vdm_src_en = { 0x0108, 12, 12, 0, 1 },
2082 .vdp_src_en = { 0x0108, 11, 11, 0, 1 },
2113 MODULE_DESCRIPTION("Rockchip USB2.0 PHY driver");