Lines Matching +full:0 +full:x58002000
41 #define DIS_SGX BIT(0)
177 writew_relaxed(value & 0xffff, ddata->module_va + offset); in sysc_write()
180 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_write()
201 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_read()
223 if (offset < 0) in sysc_read_revision()
224 return 0; in sysc_read_revision()
233 if (offset < 0) in sysc_read_sysconfig()
234 return 0; in sysc_read_sysconfig()
243 if (offset < 0) in sysc_read_sysstatus()
244 return 0; in sysc_read_sysstatus()
255 syss_done = 0; in sysc_poll_reset_sysstatus()
268 return 0; in sysc_poll_reset_sysstatus()
293 return 0; in sysc_poll_reset_sysconfig()
305 int syss_offset, error = 0; in sysc_wait_softreset()
307 if (ddata->cap->regbits->srst_shift < 0) in sysc_wait_softreset()
308 return 0; in sysc_wait_softreset()
312 if (syss_offset >= 0) in sysc_wait_softreset()
340 return 0; in sysc_add_named_clock_from_child()
367 return 0; in sysc_add_named_clock_from_child()
392 return 0; in sysc_init_ext_opt_clock()
404 if (index < 0) { in sysc_get_one_clock()
413 if (index < 0) { in sysc_get_one_clock()
434 return 0; in sysc_get_one_clock()
442 int nr_fck = 0, nr_ick = 0, i, error = 0; in sysc_get_clocks()
461 return 0; in sysc_get_clocks()
493 for (i = 0; i < SYSC_MAX_CLOCKS; i++) { in sysc_get_clocks()
504 return 0; in sysc_get_clocks()
513 return 0; in sysc_enable_main_clocks()
515 for (i = 0; i < SYSC_OPTFCK0; i++) { in sysc_enable_main_clocks()
527 return 0; in sysc_enable_main_clocks()
530 for (i--; i >= 0; i--) { in sysc_enable_main_clocks()
551 for (i = 0; i < SYSC_OPTFCK0; i++) { in sysc_disable_main_clocks()
566 return 0; in sysc_enable_opt_clocks()
573 return 0; in sysc_enable_opt_clocks()
580 return 0; in sysc_enable_opt_clocks()
583 for (i--; i >= 0; i--) { in sysc_enable_opt_clocks()
677 return 0; in sysc_parse_and_check_child_range()
683 { .start = 0x44c00000, .end = 0x44c00000 + 0x300000, },
685 { .start = 0x4a000000, .end = 0x4a000000 + 0x300000, },
687 { .start = 0x4a300000, .end = 0x4a300000 + 0x30000, },
689 { .start = 0x4ae00000, .end = 0x4ae00000 + 0x30000, },
708 return 0; in sysc_defer_non_critical()
710 for (i = 0; i < ARRAY_SIZE(early_bus_ranges); i++) { in sysc_defer_non_critical()
714 atomic_set(&sysc_defer, 0); in sysc_defer_non_critical()
716 return 0; in sysc_defer_non_critical()
836 return 0; in sysc_parse_one()
843 return 0; in sysc_parse_one()
850 for (i = 0; i < SYSC_MAX_REGS; i++) { in sysc_parse_registers()
856 return 0; in sysc_parse_registers()
865 int i, j, nr_regs = 0, nr_matches = 0; in sysc_check_registers()
867 for (i = 0; i < SYSC_MAX_REGS; i++) { in sysc_check_registers()
868 if (ddata->offsets[i] < 0) in sysc_check_registers()
877 for (j = 0; j < SYSC_MAX_REGS; j++) { in sysc_check_registers()
878 if (ddata->offsets[j] < 0) in sysc_check_registers()
894 return 0; in sysc_check_registers()
903 * them at offset 0x1fc00 in the 32MB module address space. And cpsw
904 * has them at offset 0x1200 in the CPSW_WR child. Usually the
912 if (ddata->offsets[SYSC_REVISION] < 0 && in sysc_ioremap()
913 ddata->offsets[SYSC_SYSCONFIG] < 0 && in sysc_ioremap()
914 ddata->offsets[SYSC_SYSSTATUS] < 0) { in sysc_ioremap()
934 return 0; in sysc_ioremap()
957 return 0; in sysc_map_and_check_registers()
971 return 0; in sysc_map_and_check_registers()
983 if (ddata->offsets[SYSC_REVISION] < 0) in sysc_show_rev()
994 if (ddata->offsets[reg] < 0) in sysc_show_reg()
1003 return 0; in sysc_show_name()
1018 for (i = 0; i < SYSC_MAX_REGS; i++) in sysc_show_registers()
1089 return 0; in sysc_enable_module()
1099 if (regbits->clkact_shift >= 0 && in sysc_enable_module()
1105 if (!idlemodes || regbits->sidle_shift < 0) in sysc_enable_module()
1113 if (regbits->enwkup_shift >= 0 && in sysc_enable_module()
1124 if (regbits->enwkup_shift >= 0 && in sysc_enable_module()
1136 if (!idlemodes || regbits->midle_shift < 0) in sysc_enable_module()
1155 if (regbits->autoidle_shift >= 0 && in sysc_enable_module()
1161 error = 0; in sysc_enable_module()
1184 return 0; in sysc_best_idle_mode()
1197 return 0; in sysc_disable_module()
1207 if (!idlemodes || regbits->midle_shift < 0) in sysc_disable_module()
1227 if (!idlemodes || regbits->sidle_shift < 0) { in sysc_disable_module()
1228 ret = 0; in sysc_disable_module()
1245 if (regbits->enwkup_shift >= 0 && in sysc_disable_module()
1252 if (regbits->autoidle_shift >= 0 && in sysc_disable_module()
1257 ret = 0; in sysc_disable_module()
1274 return 0; in sysc_runtime_suspend_legacy()
1286 return 0; in sysc_runtime_suspend_legacy()
1297 return 0; in sysc_runtime_resume_legacy()
1309 return 0; in sysc_runtime_resume_legacy()
1315 int error = 0; in sysc_runtime_suspend()
1320 return 0; in sysc_runtime_suspend()
1352 int error = 0; in sysc_runtime_resume()
1357 return 0; in sysc_runtime_resume()
1388 return 0; in sysc_runtime_resume()
1418 return 0; in sysc_check_context()
1432 return 0; in sysc_reinit_module()
1472 return 0; in sysc_noirq_suspend()
1475 return 0; in sysc_noirq_suspend()
1485 int error = 0; in sysc_noirq_resume()
1490 return 0; in sysc_noirq_resume()
1502 ddata->needs_resume = 0; in sysc_noirq_resume()
1541 SYSC_QUIRK("mcpdm", 0x40132000, 0, 0x10, -ENODEV, 0x50000800, 0xffffffff,
1546 SYSC_QUIRK("aess", 0, 0, 0x10, -ENODEV, 0x40000000, 0xffffffff,
1549 SYSC_QUIRK("dcan", 0x4ae3c000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff,
1551 SYSC_QUIRK("dcan", 0x48480000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff,
1553 SYSC_QUIRK("dss", 0x4832a000, 0, 0x10, 0x14, 0x00000020, 0xffffffff,
1555 SYSC_QUIRK("dss", 0x58000000, 0, -ENODEV, 0x14, 0x00000040, 0xffffffff,
1557 SYSC_QUIRK("dss", 0x58000000, 0, -ENODEV, 0x14, 0x00000061, 0xffffffff,
1559 SYSC_QUIRK("dwc3", 0x48880000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
1561 SYSC_QUIRK("dwc3", 0x488c0000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
1563 SYSC_QUIRK("gpio", 0, 0, 0x10, 0x114, 0x50600801, 0xffff00ff,
1565 SYSC_QUIRK("gpmc", 0, 0, 0x10, 0x14, 0x00000060, 0xffffffff,
1568 SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50030200, 0xffffffff,
1570 SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x00000006, 0xffffffff,
1572 SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x0000000a, 0xffffffff,
1574 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x00000036, 0x000000ff,
1576 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x0000003c, 0x000000ff,
1578 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x00000040, 0x000000ff,
1580 SYSC_QUIRK("i2c", 0, 0, 0x10, 0x90, 0x5040000a, 0xfffff0f0,
1582 SYSC_QUIRK("gpu", 0x50000000, 0x14, -ENODEV, -ENODEV, 0x00010201, 0xffffffff, 0),
1583 SYSC_QUIRK("gpu", 0x50000000, 0xfe00, 0xfe10, -ENODEV, 0x40000000 , 0xffffffff,
1585 SYSC_QUIRK("lcdc", 0, 0, 0x54, -ENODEV, 0x4f201000, 0xffffffff,
1587 SYSC_QUIRK("mcasp", 0, 0, 0x4, -ENODEV, 0x44306302, 0xffffffff,
1589 SYSC_QUIRK("rtc", 0, 0x74, 0x78, -ENODEV, 0x4eb01908, 0xffff00f0,
1591 SYSC_QUIRK("tptc", 0, 0, 0x10, -ENODEV, 0x40006c00, 0xffffefff,
1593 SYSC_QUIRK("tptc", 0, 0, -ENODEV, -ENODEV, 0x40007c00, 0xffffffff,
1595 SYSC_QUIRK("sata", 0, 0xfc, 0x1100, -ENODEV, 0x5e412000, 0xffffffff,
1597 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000046, 0xffffffff,
1599 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000052, 0xffffffff,
1602 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x50411e03, 0xffff00ff,
1604 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47422e03, 0xffffffff,
1606 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47424e03, 0xffffffff,
1608 SYSC_QUIRK("usb_host_hs", 0, 0, 0x10, 0x14, 0x50700100, 0xffffffff,
1610 SYSC_QUIRK("usb_host_hs", 0, 0, 0x10, -ENODEV, 0x50700101, 0xffffffff,
1612 SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000033,
1613 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY |
1615 SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000040,
1616 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY |
1618 SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000050,
1619 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY |
1621 SYSC_QUIRK("usb_otg_hs", 0, 0, 0x10, -ENODEV, 0x4ea2080d, 0xffffffff,
1624 SYSC_QUIRK("wdt", 0, 0, 0x10, 0x14, 0x502a0500, 0xfffff0f0,
1627 SYSC_QUIRK("pruss", 0, 0x26000, 0x26004, -ENODEV, 0x47000000, 0xff000000,
1630 SYSC_QUIRK("wdt", 0x44e35000, 0, 0x10, 0x14, 0x502a0500, 0xfffff0f0,
1634 SYSC_QUIRK("adc", 0, 0, 0x10, -ENODEV, 0x47300001, 0xffffffff, 0),
1635 SYSC_QUIRK("atl", 0, 0, -ENODEV, -ENODEV, 0x0a070100, 0xffffffff, 0),
1636 SYSC_QUIRK("cm", 0, 0, -ENODEV, -ENODEV, 0x40000301, 0xffffffff, 0),
1637 SYSC_QUIRK("control", 0, 0, 0x10, -ENODEV, 0x40000900, 0xffffffff, 0),
1638 SYSC_QUIRK("cpgmac", 0, 0x1200, 0x1208, 0x1204, 0x4edb1902,
1639 0xffff00f0, 0),
1640 SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff, 0),
1641 SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0x4edb1902, 0xffffffff, 0),
1642 SYSC_QUIRK("dispc", 0x4832a400, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1643 SYSC_QUIRK("dispc", 0x58001000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1644 SYSC_QUIRK("dispc", 0x58001000, 0, 0x10, 0x14, 0x00000051, 0xffffffff, 0),
1645 SYSC_QUIRK("dmic", 0, 0, 0x10, -ENODEV, 0x50010000, 0xffffffff, 0),
1646 SYSC_QUIRK("dsi", 0x58004000, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1647 SYSC_QUIRK("dsi", 0x58005000, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1648 SYSC_QUIRK("dsi", 0x58005000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1649 SYSC_QUIRK("dsi", 0x58009000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1650 SYSC_QUIRK("dwc3", 0, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff, 0),
1651 SYSC_QUIRK("d2d", 0x4a0b6000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1652 SYSC_QUIRK("d2d", 0x4a0cd000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1653 SYSC_QUIRK("elm", 0x48080000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, 0),
1654 SYSC_QUIRK("emif", 0, 0, -ENODEV, -ENODEV, 0x40441403, 0xffff0fff, 0),
1655 SYSC_QUIRK("emif", 0, 0, -ENODEV, -ENODEV, 0x50440500, 0xffffffff, 0),
1656 SYSC_QUIRK("epwmss", 0, 0, 0x4, -ENODEV, 0x47400001, 0xffffffff, 0),
1657 SYSC_QUIRK("gpu", 0, 0x1fc00, 0x1fc10, -ENODEV, 0, 0, 0),
1658 SYSC_QUIRK("gpu", 0, 0xfe00, 0xfe10, -ENODEV, 0x40000000 , 0xffffffff, 0),
1659 SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50031d00, 0xffffffff, 0),
1660 SYSC_QUIRK("hsi", 0, 0, 0x10, 0x14, 0x50043101, 0xffffffff, 0),
1661 SYSC_QUIRK("iss", 0, 0, 0x10, -ENODEV, 0x40000101, 0xffffffff, 0),
1662 SYSC_QUIRK("keypad", 0x4a31c000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, 0),
1663 SYSC_QUIRK("mcasp", 0, 0, 0x4, -ENODEV, 0x44307b02, 0xffffffff, 0),
1664 SYSC_QUIRK("mcbsp", 0, -ENODEV, 0x8c, -ENODEV, 0, 0, 0),
1665 SYSC_QUIRK("mcspi", 0, 0, 0x10, -ENODEV, 0x40300a0b, 0xffff00ff, 0),
1666 SYSC_QUIRK("mcspi", 0, 0, 0x110, 0x114, 0x40300a0b, 0xffffffff, 0),
1667 SYSC_QUIRK("mailbox", 0, 0, 0x10, -ENODEV, 0x00000400, 0xffffffff, 0),
1668 SYSC_QUIRK("m3", 0, 0, -ENODEV, -ENODEV, 0x5f580105, 0x0fff0f00, 0),
1669 SYSC_QUIRK("ocp2scp", 0, 0, 0x10, 0x14, 0x50060005, 0xfffffff0, 0),
1670 SYSC_QUIRK("ocp2scp", 0, 0, -ENODEV, -ENODEV, 0x50060007, 0xffffffff, 0),
1671 SYSC_QUIRK("padconf", 0, 0, 0x10, -ENODEV, 0x4fff0800, 0xffffffff, 0),
1672 SYSC_QUIRK("padconf", 0, 0, -ENODEV, -ENODEV, 0x40001100, 0xffffffff, 0),
1673 SYSC_QUIRK("pcie", 0x51000000, -ENODEV, -ENODEV, -ENODEV, 0, 0, 0),
1674 SYSC_QUIRK("pcie", 0x51800000, -ENODEV, -ENODEV, -ENODEV, 0, 0, 0),
1675 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x40000100, 0xffffffff, 0),
1676 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x00004102, 0xffffffff, 0),
1677 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x40000400, 0xffffffff, 0),
1678 SYSC_QUIRK("rfbi", 0x4832a800, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1679 SYSC_QUIRK("rfbi", 0x58002000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1680 SYSC_QUIRK("scm", 0, 0, 0x10, -ENODEV, 0x40000900, 0xffffffff, 0),
1681 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x4e8b0100, 0xffffffff, 0),
1682 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x4f000100, 0xffffffff, 0),
1683 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x40000900, 0xffffffff, 0),
1684 SYSC_QUIRK("scrm", 0, 0, -ENODEV, -ENODEV, 0x00000010, 0xffffffff, 0),
1685 SYSC_QUIRK("sdio", 0, 0, 0x10, -ENODEV, 0x40202301, 0xffff0ff0, 0),
1686 SYSC_QUIRK("sdio", 0, 0x2fc, 0x110, 0x114, 0x31010000, 0xffffffff, 0),
1687 SYSC_QUIRK("sdma", 0, 0, 0x2c, 0x28, 0x00010900, 0xffffffff, 0),
1688 SYSC_QUIRK("sham", 0, 0x100, 0x110, 0x114, 0x40000c03, 0xffffffff, 0),
1689 SYSC_QUIRK("slimbus", 0, 0, 0x10, -ENODEV, 0x40000902, 0xffffffff, 0),
1690 SYSC_QUIRK("slimbus", 0, 0, 0x10, -ENODEV, 0x40002903, 0xffffffff, 0),
1691 SYSC_QUIRK("smartreflex", 0, -ENODEV, 0x24, -ENODEV, 0x00000000, 0xffffffff, 0),
1692 SYSC_QUIRK("smartreflex", 0, -ENODEV, 0x38, -ENODEV, 0x00000000, 0xffffffff, 0),
1693 SYSC_QUIRK("spinlock", 0, 0, 0x10, -ENODEV, 0x50020000, 0xffffffff, 0),
1694 SYSC_QUIRK("rng", 0, 0x1fe0, 0x1fe4, -ENODEV, 0x00000020, 0xffffffff, 0),
1695 SYSC_QUIRK("timer", 0, 0, 0x10, 0x14, 0x00000013, 0xffffffff, 0),
1696 SYSC_QUIRK("timer", 0, 0, 0x10, 0x14, 0x00000015, 0xffffffff, 0),
1698 SYSC_QUIRK("timer", 0, 0, 0x10, -ENODEV, 0x50002100, 0xffffffff, 0),
1699 SYSC_QUIRK("timer", 0, 0, 0x10, -ENODEV, 0x4fff1301, 0xffff00ff, 0),
1700 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000040, 0xffffffff, 0),
1701 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000011, 0xffffffff, 0),
1702 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000060, 0xffffffff, 0),
1703 SYSC_QUIRK("tpcc", 0, 0, -ENODEV, -ENODEV, 0x40014c00, 0xffffffff, 0),
1704 SYSC_QUIRK("usbhstll", 0, 0, 0x10, 0x14, 0x00000004, 0xffffffff, 0),
1705 SYSC_QUIRK("usbhstll", 0, 0, 0x10, 0x14, 0x00000008, 0xffffffff, 0),
1706 SYSC_QUIRK("venc", 0x58003000, 0, -ENODEV, -ENODEV, 0x00000002, 0xffffffff, 0),
1707 SYSC_QUIRK("vfpe", 0, 0, 0x104, -ENODEV, 0x4d001200, 0xffffffff, 0),
1720 for (i = 0; i < ARRAY_SIZE(sysc_revision_quirks); i++) { in sysc_init_early_quirks()
1749 for (i = 0; i < ARRAY_SIZE(sysc_revision_quirks); i++) { in sysc_init_revision_quirks()
1782 const int lcd_en_mask = BIT(0), digit_en_mask = BIT(1); in sysc_quirk_dispc()
1785 u32 val, irq_mask = 0; in sysc_quirk_dispc()
1805 return 0; in sysc_quirk_dispc()
1817 val = sysc_read(ddata, dispc_offset + 0x40); in sysc_quirk_dispc()
1821 irq_mask |= BIT(0); /* FRAMEDONE */ in sysc_quirk_dispc()
1829 sysc_write(ddata, dispc_offset + 0x40, in sysc_quirk_dispc()
1836 val = sysc_read(ddata, dispc_offset + 0x238); in sysc_quirk_dispc()
1841 sysc_write(ddata, dispc_offset + 0x238, in sysc_quirk_dispc()
1848 val = sysc_read(ddata, dispc_offset + 0x848); in sysc_quirk_dispc()
1853 sysc_write(ddata, dispc_offset + 0x848, in sysc_quirk_dispc()
1862 const int dispc_offset = 0x1000; in sysc_pre_reset_quirk_dss()
1872 sysc_write(ddata, dispc_offset + 0x18, irq_mask); in sysc_pre_reset_quirk_dss()
1878 error = readl_poll_timeout(ddata->module_va + dispc_offset + 0x18, in sysc_pre_reset_quirk_dss()
1886 sysc_write(ddata, 0x44, 0); in sysc_pre_reset_quirk_dss()
1889 sysc_write(ddata, 0x48, 0); in sysc_pre_reset_quirk_dss()
1893 sysc_write(ddata, 0x40, 0); in sysc_pre_reset_quirk_dss()
1899 int offset = 0x0c; /* HDQ_CTRL_STATUS */ in sysc_pre_reset_quirk_hdq1w()
1910 int offset = 0x7c; /* AESS_AUTO_GATING_ENABLE */ in sysc_module_enable_quirk_aess()
1922 if ((ddata->revision & 0xffffff00) == 0x001f0000) in sysc_clk_quirk_i2c()
1923 offset = 0x24; in sysc_clk_quirk_i2c()
1925 offset = 0xa4; in sysc_clk_quirk_i2c()
1949 u32 val, kick0_val = 0, kick1_val = 0; in sysc_quirk_rtc()
1954 kick0_val = 0x83e70b13; in sysc_quirk_rtc()
1955 kick1_val = 0x95a4f1e0; in sysc_quirk_rtc()
1960 error = readl_poll_timeout_atomic(ddata->module_va + 0x44, val, in sysc_quirk_rtc()
1961 !(val & BIT(0)), 100, 50); in sysc_quirk_rtc()
1965 sysc_write(ddata, 0x6c, kick0_val); in sysc_quirk_rtc()
1966 sysc_write(ddata, 0x70, kick1_val); in sysc_quirk_rtc()
1983 int offset = 0x414; /* OTG_FORCESTDBY */ in sysc_module_enable_quirk_otg()
1985 sysc_write(ddata, offset, 0); in sysc_module_enable_quirk_otg()
1990 int offset = 0x414; /* OTG_FORCESTDBY */ in sysc_module_disable_quirk_otg()
1991 u32 val = BIT(0); /* ENABLEFORCE */ in sysc_module_disable_quirk_otg()
1999 int offset = 0xff08; /* OCP_DEBUG_CONFIG */ in sysc_module_enable_quirk_sgx()
2011 wps = 0x34; in sysc_reset_done_quirk_wdt()
2012 spr = 0x48; in sysc_reset_done_quirk_wdt()
2014 sysc_write(ddata, spr, 0xaaaa); in sysc_reset_done_quirk_wdt()
2016 !(val & 0x10), 100, in sysc_reset_done_quirk_wdt()
2021 sysc_write(ddata, spr, 0x5555); in sysc_reset_done_quirk_wdt()
2023 !(val & 0x10), 100, in sysc_reset_done_quirk_wdt()
2102 return 0; in sysc_clockdomain_init()
2111 case 0: in sysc_clockdomain_init()
2112 return 0; in sysc_clockdomain_init()
2117 return 0; in sysc_clockdomain_init()
2133 return 0; in sysc_legacy_init()
2137 error = 0; in sysc_legacy_init()
2154 ddata->cap->regbits->srst_shift < 0) in sysc_reset()
2155 return 0; in sysc_reset()
2162 if (sysc_offset >= 0) { in sysc_reset()
2205 int error = 0; in sysc_init_module()
2282 return 0; in sysc_init_sysc_mask()
2286 return 0; in sysc_init_sysc_mask()
2303 return 0; in sysc_init_idlemode()
2320 return 0; in sysc_init_idlemodes()
2326 * SYSTATUS bit 0 is not used. Note that some SYSSTATUS registers
2343 return 0; in sysc_init_syss_mask()
2351 return 0; in sysc_init_syss_mask()
2364 int error = 0; in sysc_child_add_named_clock()
2367 return 0; in sysc_child_add_named_clock()
2393 for (i = 0; i < ddata->nr_clocks; i++) { in sysc_child_add_clocks()
2405 return 0; in sysc_child_add_clocks()
2433 return 0; in sysc_child_runtime_suspend()
2447 if (error < 0) in sysc_child_runtime_resume()
2573 for (i = 0; i < ARRAY_SIZE(sysc_dts_quirks); i++) { in sysc_parse_dts_quirks()
2607 return 0; in sysc_init_dts_quirks()
2617 for (i = 0; i < SYSC_MAX_CLOCKS; i++) { in sysc_unprepare()
2634 .autoidle_shift = 0,
2666 .autoidle_shift = 0,
2687 .autoidle_shift = 0,
2707 .srst_shift = 0,
2731 .sidle_shift = 0,
2797 .sidle_shift = 0,
2846 .srst_shift = 0,
2874 return 0; in sysc_init_pdata()
2892 return 0; in sysc_init_pdata()
2907 return 0; in sysc_init_match()
2997 return 0; in sysc_add_disabled()
3012 unsigned long features = 0; in sysc_init_static_data()
3016 return 0; in sysc_init_static_data()
3057 sysc_add_disabled(0x48304000); /* timer12 */ in sysc_init_static_data()
3060 sysc_add_disabled(0x48310000); /* rng */ in sysc_init_static_data()
3069 return 0; in sysc_init_static_data()
3080 sysc_add_disabled(0x480bd400); in sysc_init_static_data()
3082 sysc_add_disabled(0x5d000000); in sysc_init_static_data()
3084 sysc_add_disabled(0x50000000); in sysc_init_static_data()
3086 return 0; in sysc_init_static_data()
3118 int error = 0; in sysc_check_disabled_devices()
3144 return 0; in sysc_check_active_timer()
3162 return 0; in sysc_check_active_timer()
3244 if (error < 0) { in sysc_probe()
3287 return 0; in sysc_probe()
3308 if (error < 0) { in sysc_remove()