Lines Matching +full:0 +full:xe450

3  * Rockchip USB2.0 PHY with Innosilicon IP block driver
42 PHY_STATE_HS_ONLINE = 0,
61 USB_CHG_STATE_UNDEFINED = 0,
205 * struct rockchip_usb2phy - usb2.0 phy driver data.
286 return 0; in rockchip_usb2phy_clk480m_prepare()
336 int ret = 0; in rockchip_usb2phy_clk480m_register()
338 init.flags = 0; in rockchip_usb2phy_clk480m_register()
351 init.num_parents = 0; in rockchip_usb2phy_clk480m_register()
364 if (ret < 0) in rockchip_usb2phy_clk480m_register()
382 edev = extcon_get_edev_by_phandle(rphy->dev, 0); in rockchip_usb2phy_extcon_register()
405 return 0; in rockchip_usb2phy_extcon_register()
412 int ret = 0; in rockchip_usb2phy_init()
481 return 0; in rockchip_usb2phy_power_on()
495 return 0; in rockchip_usb2phy_power_on()
508 return 0; in rockchip_usb2phy_power_off()
517 return 0; in rockchip_usb2phy_power_off()
532 return 0; in rockchip_usb2phy_exit()
569 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0) { in rockchip_usb2phy_otg_sm_work()
578 schedule_delayed_work(&rport->chg_work, 0); in rockchip_usb2phy_otg_sm_work()
637 delay = 0; in rockchip_usb2phy_otg_sm_work()
643 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) == 0) { in rockchip_usb2phy_otg_sm_work()
722 rphy->dcd_retries = 0; in rockchip_chg_detect_work()
758 delay = 0; in rockchip_chg_detect_work()
762 delay = 0; in rockchip_chg_detect_work()
820 if (ret < 0) in rockchip_usb2phy_sm_work()
824 if (ret < 0) in rockchip_usb2phy_sm_work()
974 for (index = 0; index < rphy->phy_cfg->num_ports; index++) { in rockchip_usb2phy_irq()
1004 if (rphy->irq > 0) in rockchip_usb2phy_port_irq_init()
1005 return 0; in rockchip_usb2phy_port_irq_init()
1010 if (rport->ls_irq < 0) { in rockchip_usb2phy_port_irq_init()
1031 if (rport->otg_mux_irq > 0) { in rockchip_usb2phy_port_irq_init()
1045 if (rport->bvalid_irq < 0) { in rockchip_usb2phy_port_irq_init()
1064 if (rport->id_irq < 0) { in rockchip_usb2phy_port_irq_init()
1087 return 0; in rockchip_usb2phy_port_irq_init()
1109 return 0; in rockchip_usb2phy_host_port_init()
1147 ret = 0; in rockchip_usb2phy_otg_port_init()
1227 if (of_property_read_u32_index(np, "reg", 0, &reg)) { in rockchip_usb2phy_probe()
1234 if (reg == 0) { in rockchip_usb2phy_probe()
1246 rphy->irq = platform_get_irq_optional(pdev, 0); in rockchip_usb2phy_probe()
1254 index = 0; in rockchip_usb2phy_probe()
1284 index = 0; in rockchip_usb2phy_probe()
1327 if (rphy->irq > 0) { in rockchip_usb2phy_probe()
1354 .reg = 0x760,
1356 .clkout_ctl = { 0x0768, 4, 4, 1, 0 },
1359 .phy_sus = { 0x0760, 15, 0, 0, 0x1d1 },
1360 .bvalid_det_en = { 0x0680, 3, 3, 0, 1 },
1361 .bvalid_det_st = { 0x0690, 3, 3, 0, 1 },
1362 .bvalid_det_clr = { 0x06a0, 3, 3, 0, 1 },
1363 .id_det_en = { 0x0680, 6, 5, 0, 3 },
1364 .id_det_st = { 0x0690, 6, 5, 0, 3 },
1365 .id_det_clr = { 0x06a0, 6, 5, 0, 3 },
1366 .ls_det_en = { 0x0680, 2, 2, 0, 1 },
1367 .ls_det_st = { 0x0690, 2, 2, 0, 1 },
1368 .ls_det_clr = { 0x06a0, 2, 2, 0, 1 },
1369 .utmi_bvalid = { 0x0480, 4, 4, 0, 1 },
1370 .utmi_id = { 0x0480, 1, 1, 0, 1 },
1371 .utmi_ls = { 0x0480, 3, 2, 0, 1 },
1374 .phy_sus = { 0x0764, 15, 0, 0, 0x1d1 },
1375 .ls_det_en = { 0x0680, 4, 4, 0, 1 },
1376 .ls_det_st = { 0x0690, 4, 4, 0, 1 },
1377 .ls_det_clr = { 0x06a0, 4, 4, 0, 1 }
1381 .opmode = { 0x0760, 3, 0, 5, 1 },
1382 .cp_det = { 0x0884, 4, 4, 0, 1 },
1383 .dcp_det = { 0x0884, 3, 3, 0, 1 },
1384 .dp_det = { 0x0884, 5, 5, 0, 1 },
1385 .idm_sink_en = { 0x0768, 8, 8, 0, 1 },
1386 .idp_sink_en = { 0x0768, 7, 7, 0, 1 },
1387 .idp_src_en = { 0x0768, 9, 9, 0, 1 },
1388 .rdm_pdwn_en = { 0x0768, 10, 10, 0, 1 },
1389 .vdm_src_en = { 0x0768, 12, 12, 0, 1 },
1390 .vdp_src_en = { 0x0768, 11, 11, 0, 1 },
1394 .reg = 0x800,
1396 .clkout_ctl = { 0x0808, 4, 4, 1, 0 },
1399 .phy_sus = { 0x800, 15, 0, 0, 0x1d1 },
1400 .ls_det_en = { 0x0684, 0, 0, 0, 1 },
1401 .ls_det_st = { 0x0694, 0, 0, 0, 1 },
1402 .ls_det_clr = { 0x06a4, 0, 0, 0, 1 }
1405 .phy_sus = { 0x804, 15, 0, 0, 0x1d1 },
1406 .ls_det_en = { 0x0684, 1, 1, 0, 1 },
1407 .ls_det_st = { 0x0694, 1, 1, 0, 1 },
1408 .ls_det_clr = { 0x06a4, 1, 1, 0, 1 }
1417 .reg = 0x100,
1419 .clkout_ctl = { 0x108, 4, 4, 1, 0 },
1422 .phy_sus = { 0x0100, 8, 0, 0, 0x1d1 },
1423 .bvalid_det_en = { 0x3020, 3, 2, 0, 3 },
1424 .bvalid_det_st = { 0x3024, 3, 2, 0, 3 },
1425 .bvalid_det_clr = { 0x3028, 3, 2, 0, 3 },
1426 .id_det_en = { 0x3020, 5, 4, 0, 3 },
1427 .id_det_st = { 0x3024, 5, 4, 0, 3 },
1428 .id_det_clr = { 0x3028, 5, 4, 0, 3 },
1429 .ls_det_en = { 0x3020, 0, 0, 0, 1 },
1430 .ls_det_st = { 0x3024, 0, 0, 0, 1 },
1431 .ls_det_clr = { 0x3028, 0, 0, 0, 1 },
1432 .utmi_avalid = { 0x0120, 10, 10, 0, 1 },
1433 .utmi_bvalid = { 0x0120, 9, 9, 0, 1 },
1434 .utmi_id = { 0x0120, 6, 6, 0, 1 },
1435 .utmi_ls = { 0x0120, 5, 4, 0, 1 },
1438 .phy_sus = { 0x0104, 8, 0, 0, 0x1d1 },
1439 .ls_det_en = { 0x3020, 1, 1, 0, 1 },
1440 .ls_det_st = { 0x3024, 1, 1, 0, 1 },
1441 .ls_det_clr = { 0x3028, 1, 1, 0, 1 },
1442 .utmi_ls = { 0x0120, 17, 16, 0, 1 },
1443 .utmi_hstdet = { 0x0120, 19, 19, 0, 1 }
1447 .opmode = { 0x0100, 3, 0, 5, 1 },
1448 .cp_det = { 0x0120, 24, 24, 0, 1 },
1449 .dcp_det = { 0x0120, 23, 23, 0, 1 },
1450 .dp_det = { 0x0120, 25, 25, 0, 1 },
1451 .idm_sink_en = { 0x0108, 8, 8, 0, 1 },
1452 .idp_sink_en = { 0x0108, 7, 7, 0, 1 },
1453 .idp_src_en = { 0x0108, 9, 9, 0, 1 },
1454 .rdm_pdwn_en = { 0x0108, 10, 10, 0, 1 },
1455 .vdm_src_en = { 0x0108, 12, 12, 0, 1 },
1456 .vdp_src_en = { 0x0108, 11, 11, 0, 1 },
1464 .reg = 0x100,
1466 .clkout_ctl = { 0x108, 4, 4, 1, 0 },
1469 .phy_sus = { 0x0100, 15, 0, 0, 0x1d1 },
1470 .bvalid_det_en = { 0x0110, 3, 2, 0, 3 },
1471 .bvalid_det_st = { 0x0114, 3, 2, 0, 3 },
1472 .bvalid_det_clr = { 0x0118, 3, 2, 0, 3 },
1473 .id_det_en = { 0x0110, 5, 4, 0, 3 },
1474 .id_det_st = { 0x0114, 5, 4, 0, 3 },
1475 .id_det_clr = { 0x0118, 5, 4, 0, 3 },
1476 .ls_det_en = { 0x0110, 0, 0, 0, 1 },
1477 .ls_det_st = { 0x0114, 0, 0, 0, 1 },
1478 .ls_det_clr = { 0x0118, 0, 0, 0, 1 },
1479 .utmi_avalid = { 0x0120, 10, 10, 0, 1 },
1480 .utmi_bvalid = { 0x0120, 9, 9, 0, 1 },
1481 .utmi_id = { 0x0120, 6, 6, 0, 1 },
1482 .utmi_ls = { 0x0120, 5, 4, 0, 1 },
1485 .phy_sus = { 0x104, 15, 0, 0, 0x1d1 },
1486 .ls_det_en = { 0x110, 1, 1, 0, 1 },
1487 .ls_det_st = { 0x114, 1, 1, 0, 1 },
1488 .ls_det_clr = { 0x118, 1, 1, 0, 1 },
1489 .utmi_ls = { 0x120, 17, 16, 0, 1 },
1490 .utmi_hstdet = { 0x120, 19, 19, 0, 1 }
1494 .opmode = { 0x0100, 3, 0, 5, 1 },
1495 .cp_det = { 0x0120, 24, 24, 0, 1 },
1496 .dcp_det = { 0x0120, 23, 23, 0, 1 },
1497 .dp_det = { 0x0120, 25, 25, 0, 1 },
1498 .idm_sink_en = { 0x0108, 8, 8, 0, 1 },
1499 .idp_sink_en = { 0x0108, 7, 7, 0, 1 },
1500 .idp_src_en = { 0x0108, 9, 9, 0, 1 },
1501 .rdm_pdwn_en = { 0x0108, 10, 10, 0, 1 },
1502 .vdm_src_en = { 0x0108, 12, 12, 0, 1 },
1503 .vdp_src_en = { 0x0108, 11, 11, 0, 1 },
1511 .reg = 0x700,
1513 .clkout_ctl = { 0x0724, 15, 15, 1, 0 },
1516 .phy_sus = { 0x0728, 15, 0, 0, 0x1d1 },
1517 .ls_det_en = { 0x0680, 4, 4, 0, 1 },
1518 .ls_det_st = { 0x0690, 4, 4, 0, 1 },
1519 .ls_det_clr = { 0x06a0, 4, 4, 0, 1 },
1520 .utmi_ls = { 0x049c, 14, 13, 0, 1 },
1521 .utmi_hstdet = { 0x049c, 12, 12, 0, 1 }
1530 .reg = 0xe450,
1532 .clkout_ctl = { 0xe450, 4, 4, 1, 0 },
1535 .phy_sus = { 0xe454, 1, 0, 2, 1 },
1536 .bvalid_det_en = { 0xe3c0, 3, 3, 0, 1 },
1537 .bvalid_det_st = { 0xe3e0, 3, 3, 0, 1 },
1538 .bvalid_det_clr = { 0xe3d0, 3, 3, 0, 1 },
1539 .id_det_en = { 0xe3c0, 5, 4, 0, 3 },
1540 .id_det_st = { 0xe3e0, 5, 4, 0, 3 },
1541 .id_det_clr = { 0xe3d0, 5, 4, 0, 3 },
1542 .utmi_avalid = { 0xe2ac, 7, 7, 0, 1 },
1543 .utmi_bvalid = { 0xe2ac, 12, 12, 0, 1 },
1544 .utmi_id = { 0xe2ac, 8, 8, 0, 1 },
1547 .phy_sus = { 0xe458, 1, 0, 0x2, 0x1 },
1548 .ls_det_en = { 0xe3c0, 6, 6, 0, 1 },
1549 .ls_det_st = { 0xe3e0, 6, 6, 0, 1 },
1550 .ls_det_clr = { 0xe3d0, 6, 6, 0, 1 },
1551 .utmi_ls = { 0xe2ac, 22, 21, 0, 1 },
1552 .utmi_hstdet = { 0xe2ac, 23, 23, 0, 1 }
1556 .opmode = { 0xe454, 3, 0, 5, 1 },
1557 .cp_det = { 0xe2ac, 2, 2, 0, 1 },
1558 .dcp_det = { 0xe2ac, 1, 1, 0, 1 },
1559 .dp_det = { 0xe2ac, 0, 0, 0, 1 },
1560 .idm_sink_en = { 0xe450, 8, 8, 0, 1 },
1561 .idp_sink_en = { 0xe450, 7, 7, 0, 1 },
1562 .idp_src_en = { 0xe450, 9, 9, 0, 1 },
1563 .rdm_pdwn_en = { 0xe450, 10, 10, 0, 1 },
1564 .vdm_src_en = { 0xe450, 12, 12, 0, 1 },
1565 .vdp_src_en = { 0xe450, 11, 11, 0, 1 },
1569 .reg = 0xe460,
1571 .clkout_ctl = { 0xe460, 4, 4, 1, 0 },
1574 .phy_sus = { 0xe464, 1, 0, 2, 1 },
1575 .bvalid_det_en = { 0xe3c0, 8, 8, 0, 1 },
1576 .bvalid_det_st = { 0xe3e0, 8, 8, 0, 1 },
1577 .bvalid_det_clr = { 0xe3d0, 8, 8, 0, 1 },
1578 .id_det_en = { 0xe3c0, 10, 9, 0, 3 },
1579 .id_det_st = { 0xe3e0, 10, 9, 0, 3 },
1580 .id_det_clr = { 0xe3d0, 10, 9, 0, 3 },
1581 .utmi_avalid = { 0xe2ac, 10, 10, 0, 1 },
1582 .utmi_bvalid = { 0xe2ac, 16, 16, 0, 1 },
1583 .utmi_id = { 0xe2ac, 11, 11, 0, 1 },
1586 .phy_sus = { 0xe468, 1, 0, 0x2, 0x1 },
1587 .ls_det_en = { 0xe3c0, 11, 11, 0, 1 },
1588 .ls_det_st = { 0xe3e0, 11, 11, 0, 1 },
1589 .ls_det_clr = { 0xe3d0, 11, 11, 0, 1 },
1590 .utmi_ls = { 0xe2ac, 26, 25, 0, 1 },
1591 .utmi_hstdet = { 0xe2ac, 27, 27, 0, 1 }
1600 .reg = 0xfe8a0000,
1602 .clkout_ctl = { 0x0008, 4, 4, 1, 0 },
1605 .phy_sus = { 0x0000, 8, 0, 0, 0x1d1 },
1606 .bvalid_det_en = { 0x0080, 3, 2, 0, 3 },
1607 .bvalid_det_st = { 0x0084, 3, 2, 0, 3 },
1608 .bvalid_det_clr = { 0x0088, 3, 2, 0, 3 },
1609 .id_det_en = { 0x0080, 5, 4, 0, 3 },
1610 .id_det_st = { 0x0084, 5, 4, 0, 3 },
1611 .id_det_clr = { 0x0088, 5, 4, 0, 3 },
1612 .utmi_avalid = { 0x00c0, 10, 10, 0, 1 },
1613 .utmi_bvalid = { 0x00c0, 9, 9, 0, 1 },
1614 .utmi_id = { 0x00c0, 6, 6, 0, 1 },
1618 .phy_sus = { 0x0004, 8, 0, 0x1d2, 0x1d2 },
1619 .ls_det_en = { 0x0080, 1, 1, 0, 1 },
1620 .ls_det_st = { 0x0084, 1, 1, 0, 1 },
1621 .ls_det_clr = { 0x0088, 1, 1, 0, 1 },
1622 .utmi_ls = { 0x00c0, 17, 16, 0, 1 },
1623 .utmi_hstdet = { 0x00c0, 19, 19, 0, 1 }
1627 .opmode = { 0x0000, 3, 0, 5, 1 },
1628 .cp_det = { 0x00c0, 24, 24, 0, 1 },
1629 .dcp_det = { 0x00c0, 23, 23, 0, 1 },
1630 .dp_det = { 0x00c0, 25, 25, 0, 1 },
1631 .idm_sink_en = { 0x0008, 8, 8, 0, 1 },
1632 .idp_sink_en = { 0x0008, 7, 7, 0, 1 },
1633 .idp_src_en = { 0x0008, 9, 9, 0, 1 },
1634 .rdm_pdwn_en = { 0x0008, 10, 10, 0, 1 },
1635 .vdm_src_en = { 0x0008, 12, 12, 0, 1 },
1636 .vdp_src_en = { 0x0008, 11, 11, 0, 1 },
1640 .reg = 0xfe8b0000,
1642 .clkout_ctl = { 0x0008, 4, 4, 1, 0 },
1645 .phy_sus = { 0x0000, 8, 0, 0x1d2, 0x1d1 },
1646 .ls_det_en = { 0x0080, 0, 0, 0, 1 },
1647 .ls_det_st = { 0x0084, 0, 0, 0, 1 },
1648 .ls_det_clr = { 0x0088, 0, 0, 0, 1 },
1649 .utmi_ls = { 0x00c0, 5, 4, 0, 1 },
1650 .utmi_hstdet = { 0x00c0, 7, 7, 0, 1 }
1653 .phy_sus = { 0x0004, 8, 0, 0x1d2, 0x1d1 },
1654 .ls_det_en = { 0x0080, 1, 1, 0, 1 },
1655 .ls_det_st = { 0x0084, 1, 1, 0, 1 },
1656 .ls_det_clr = { 0x0088, 1, 1, 0, 1 },
1657 .utmi_ls = { 0x00c0, 17, 16, 0, 1 },
1658 .utmi_hstdet = { 0x00c0, 19, 19, 0, 1 }
1667 .reg = 0x100,
1669 .clkout_ctl = { 0x108, 4, 4, 1, 0 },
1672 .phy_sus = { 0x0100, 15, 0, 0, 0x1d1 },
1673 .bvalid_det_en = { 0x0680, 3, 3, 0, 1 },
1674 .bvalid_det_st = { 0x0690, 3, 3, 0, 1 },
1675 .bvalid_det_clr = { 0x06a0, 3, 3, 0, 1 },
1676 .ls_det_en = { 0x0680, 2, 2, 0, 1 },
1677 .ls_det_st = { 0x0690, 2, 2, 0, 1 },
1678 .ls_det_clr = { 0x06a0, 2, 2, 0, 1 },
1679 .utmi_bvalid = { 0x0804, 10, 10, 0, 1 },
1680 .utmi_ls = { 0x0804, 13, 12, 0, 1 },
1683 .phy_sus = { 0x0104, 15, 0, 0, 0x1d1 },
1684 .ls_det_en = { 0x0680, 4, 4, 0, 1 },
1685 .ls_det_st = { 0x0690, 4, 4, 0, 1 },
1686 .ls_det_clr = { 0x06a0, 4, 4, 0, 1 },
1687 .utmi_ls = { 0x0804, 9, 8, 0, 1 },
1688 .utmi_hstdet = { 0x0804, 7, 7, 0, 1 }
1692 .opmode = { 0x0100, 3, 0, 5, 1 },
1693 .cp_det = { 0x0804, 1, 1, 0, 1 },
1694 .dcp_det = { 0x0804, 0, 0, 0, 1 },
1695 .dp_det = { 0x0804, 2, 2, 0, 1 },
1696 .idm_sink_en = { 0x0108, 8, 8, 0, 1 },
1697 .idp_sink_en = { 0x0108, 7, 7, 0, 1 },
1698 .idp_src_en = { 0x0108, 9, 9, 0, 1 },
1699 .rdm_pdwn_en = { 0x0108, 10, 10, 0, 1 },
1700 .vdm_src_en = { 0x0108, 12, 12, 0, 1 },
1701 .vdp_src_en = { 0x0108, 11, 11, 0, 1 },
1730 MODULE_DESCRIPTION("Rockchip USB2.0 PHY driver");