Lines Matching +full:0 +full:x40006c00
30 #define DIS_SGX BIT(0)
167 writew_relaxed(value & 0xffff, ddata->module_va + offset); in sysc_write()
170 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_write()
191 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_read()
213 if (offset < 0) in sysc_read_revision()
214 return 0; in sysc_read_revision()
223 if (offset < 0) in sysc_read_sysconfig()
224 return 0; in sysc_read_sysconfig()
233 if (offset < 0) in sysc_read_sysstatus()
234 return 0; in sysc_read_sysstatus()
245 syss_done = 0; in sysc_poll_reset_sysstatus()
258 return 0; in sysc_poll_reset_sysstatus()
283 return 0; in sysc_poll_reset_sysconfig()
295 int syss_offset, error = 0; in sysc_wait_softreset()
297 if (ddata->cap->regbits->srst_shift < 0) in sysc_wait_softreset()
298 return 0; in sysc_wait_softreset()
302 if (syss_offset >= 0) in sysc_wait_softreset()
330 return 0; in sysc_add_named_clock_from_child()
357 return 0; in sysc_add_named_clock_from_child()
382 return 0; in sysc_init_ext_opt_clock()
394 if (index < 0) { in sysc_get_one_clock()
403 if (index < 0) { in sysc_get_one_clock()
424 return 0; in sysc_get_one_clock()
432 int nr_fck = 0, nr_ick = 0, i, error = 0; in sysc_get_clocks()
451 return 0; in sysc_get_clocks()
483 for (i = 0; i < SYSC_MAX_CLOCKS; i++) { in sysc_get_clocks()
494 return 0; in sysc_get_clocks()
503 return 0; in sysc_enable_main_clocks()
505 for (i = 0; i < SYSC_OPTFCK0; i++) { in sysc_enable_main_clocks()
517 return 0; in sysc_enable_main_clocks()
520 for (i--; i >= 0; i--) { in sysc_enable_main_clocks()
541 for (i = 0; i < SYSC_OPTFCK0; i++) { in sysc_disable_main_clocks()
556 return 0; in sysc_enable_opt_clocks()
563 return 0; in sysc_enable_opt_clocks()
570 return 0; in sysc_enable_opt_clocks()
573 for (i--; i >= 0; i--) { in sysc_enable_opt_clocks()
667 return 0; in sysc_parse_and_check_child_range()
673 { .start = 0x44c00000, .end = 0x44c00000 + 0x300000, },
675 { .start = 0x4a000000, .end = 0x4a000000 + 0x300000, },
677 { .start = 0x4a300000, .end = 0x4a300000 + 0x30000, },
679 { .start = 0x4ae00000, .end = 0x4ae00000 + 0x30000, },
698 return 0; in sysc_defer_non_critical()
700 for (i = 0; i < ARRAY_SIZE(early_bus_ranges); i++) { in sysc_defer_non_critical()
704 atomic_set(&sysc_defer, 0); in sysc_defer_non_critical()
706 return 0; in sysc_defer_non_critical()
826 return 0; in sysc_parse_one()
833 return 0; in sysc_parse_one()
840 for (i = 0; i < SYSC_MAX_REGS; i++) { in sysc_parse_registers()
846 return 0; in sysc_parse_registers()
855 int i, j, nr_regs = 0, nr_matches = 0; in sysc_check_registers()
857 for (i = 0; i < SYSC_MAX_REGS; i++) { in sysc_check_registers()
858 if (ddata->offsets[i] < 0) in sysc_check_registers()
867 for (j = 0; j < SYSC_MAX_REGS; j++) { in sysc_check_registers()
868 if (ddata->offsets[j] < 0) in sysc_check_registers()
884 return 0; in sysc_check_registers()
893 * them at offset 0x1fc00 in the 32MB module address space. And cpsw
894 * has them at offset 0x1200 in the CPSW_WR child. Usually the
902 if (ddata->offsets[SYSC_REVISION] < 0 && in sysc_ioremap()
903 ddata->offsets[SYSC_SYSCONFIG] < 0 && in sysc_ioremap()
904 ddata->offsets[SYSC_SYSSTATUS] < 0) { in sysc_ioremap()
924 return 0; in sysc_ioremap()
947 return 0; in sysc_map_and_check_registers()
961 return 0; in sysc_map_and_check_registers()
973 if (ddata->offsets[SYSC_REVISION] < 0) in sysc_show_rev()
984 if (ddata->offsets[reg] < 0) in sysc_show_reg()
993 return 0; in sysc_show_name()
1008 for (i = 0; i < SYSC_MAX_REGS; i++) in sysc_show_registers()
1079 return 0; in sysc_enable_module()
1089 if (regbits->clkact_shift >= 0 && in sysc_enable_module()
1095 if (!idlemodes || regbits->sidle_shift < 0) in sysc_enable_module()
1103 if (regbits->enwkup_shift >= 0 && in sysc_enable_module()
1114 if (regbits->enwkup_shift >= 0 && in sysc_enable_module()
1126 if (!idlemodes || regbits->midle_shift < 0) in sysc_enable_module()
1145 if (regbits->autoidle_shift >= 0 && in sysc_enable_module()
1151 error = 0; in sysc_enable_module()
1174 return 0; in sysc_best_idle_mode()
1187 return 0; in sysc_disable_module()
1197 if (!idlemodes || regbits->midle_shift < 0) in sysc_disable_module()
1217 if (!idlemodes || regbits->sidle_shift < 0) { in sysc_disable_module()
1218 ret = 0; in sysc_disable_module()
1235 if (regbits->enwkup_shift >= 0 && in sysc_disable_module()
1242 if (regbits->autoidle_shift >= 0 && in sysc_disable_module()
1247 ret = 0; in sysc_disable_module()
1264 return 0; in sysc_runtime_suspend_legacy()
1276 return 0; in sysc_runtime_suspend_legacy()
1287 return 0; in sysc_runtime_resume_legacy()
1299 return 0; in sysc_runtime_resume_legacy()
1305 int error = 0; in sysc_runtime_suspend()
1310 return 0; in sysc_runtime_suspend()
1342 int error = 0; in sysc_runtime_resume()
1347 return 0; in sysc_runtime_resume()
1378 return 0; in sysc_runtime_resume()
1408 return 0; in sysc_check_context()
1422 return 0; in sysc_reinit_module()
1463 return 0; in sysc_noirq_suspend()
1466 return 0; in sysc_noirq_suspend()
1476 int error = 0; in sysc_noirq_resume()
1482 return 0; in sysc_noirq_resume()
1494 ddata->needs_resume = 0; in sysc_noirq_resume()
1533 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000046, 0xffffffff,
1535 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000052, 0xffffffff,
1538 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x50411e03, 0xffff00ff,
1540 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47422e03, 0xffffffff,
1542 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47424e03, 0xffffffff,
1546 SYSC_QUIRK("mcpdm", 0x40132000, 0, 0x10, -ENODEV, 0x50000800, 0xffffffff,
1551 SYSC_QUIRK("aess", 0, 0, 0x10, -ENODEV, 0x40000000, 0xffffffff,
1554 SYSC_QUIRK("dcan", 0x4ae3c000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff,
1556 SYSC_QUIRK("dcan", 0x48480000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff,
1558 SYSC_QUIRK("dss", 0x4832a000, 0, 0x10, 0x14, 0x00000020, 0xffffffff,
1560 SYSC_QUIRK("dss", 0x58000000, 0, -ENODEV, 0x14, 0x00000040, 0xffffffff,
1562 SYSC_QUIRK("dss", 0x58000000, 0, -ENODEV, 0x14, 0x00000061, 0xffffffff,
1564 SYSC_QUIRK("dwc3", 0x48880000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
1566 SYSC_QUIRK("dwc3", 0x488c0000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
1568 SYSC_QUIRK("gpio", 0, 0, 0x10, 0x114, 0x50600801, 0xffff00ff,
1570 SYSC_QUIRK("gpmc", 0, 0, 0x10, 0x14, 0x00000060, 0xffffffff,
1573 SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50030200, 0xffffffff,
1575 SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x00000006, 0xffffffff,
1577 SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x0000000a, 0xffffffff,
1579 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x00000036, 0x000000ff,
1581 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x0000003c, 0x000000ff,
1583 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x00000040, 0x000000ff,
1585 SYSC_QUIRK("i2c", 0, 0, 0x10, 0x90, 0x5040000a, 0xfffff0f0,
1587 SYSC_QUIRK("gpu", 0x50000000, 0x14, -ENODEV, -ENODEV, 0x00010201, 0xffffffff, 0),
1588 SYSC_QUIRK("gpu", 0x50000000, 0xfe00, 0xfe10, -ENODEV, 0x40000000 , 0xffffffff,
1590 SYSC_QUIRK("lcdc", 0, 0, 0x54, -ENODEV, 0x4f201000, 0xffffffff,
1592 SYSC_QUIRK("mcasp", 0, 0, 0x4, -ENODEV, 0x44306302, 0xffffffff,
1594 SYSC_QUIRK("rtc", 0, 0x74, 0x78, -ENODEV, 0x4eb01908, 0xffff00f0,
1596 SYSC_QUIRK("tptc", 0, 0, 0x10, -ENODEV, 0x40006c00, 0xffffefff,
1598 SYSC_QUIRK("tptc", 0, 0, -ENODEV, -ENODEV, 0x40007c00, 0xffffffff,
1600 SYSC_QUIRK("sata", 0, 0xfc, 0x1100, -ENODEV, 0x5e412000, 0xffffffff,
1602 SYSC_QUIRK("usb_host_hs", 0, 0, 0x10, 0x14, 0x50700100, 0xffffffff,
1604 SYSC_QUIRK("usb_host_hs", 0, 0, 0x10, -ENODEV, 0x50700101, 0xffffffff,
1606 SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000033,
1607 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY |
1609 SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000040,
1610 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY |
1612 SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000050,
1613 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY |
1615 SYSC_QUIRK("usb_otg_hs", 0, 0, 0x10, -ENODEV, 0x4ea2080d, 0xffffffff,
1618 SYSC_QUIRK("wdt", 0, 0, 0x10, 0x14, 0x502a0500, 0xfffff0f0,
1621 SYSC_QUIRK("pruss", 0, 0x26000, 0x26004, -ENODEV, 0x47000000, 0xff000000,
1624 SYSC_QUIRK("wdt", 0x44e35000, 0, 0x10, 0x14, 0x502a0500, 0xfffff0f0,
1628 SYSC_QUIRK("adc", 0, 0, 0x10, -ENODEV, 0x47300001, 0xffffffff, 0),
1629 SYSC_QUIRK("atl", 0, 0, -ENODEV, -ENODEV, 0x0a070100, 0xffffffff, 0),
1630 SYSC_QUIRK("cm", 0, 0, -ENODEV, -ENODEV, 0x40000301, 0xffffffff, 0),
1631 SYSC_QUIRK("control", 0, 0, 0x10, -ENODEV, 0x40000900, 0xffffffff, 0),
1632 SYSC_QUIRK("cpgmac", 0, 0x1200, 0x1208, 0x1204, 0x4edb1902,
1633 0xffff00f0, 0),
1634 SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff, 0),
1635 SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0x4edb1902, 0xffffffff, 0),
1636 SYSC_QUIRK("dispc", 0x4832a400, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1637 SYSC_QUIRK("dispc", 0x58001000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1638 SYSC_QUIRK("dispc", 0x58001000, 0, 0x10, 0x14, 0x00000051, 0xffffffff, 0),
1639 SYSC_QUIRK("dmic", 0, 0, 0x10, -ENODEV, 0x50010000, 0xffffffff, 0),
1640 SYSC_QUIRK("dsi", 0x58004000, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1641 SYSC_QUIRK("dsi", 0x58005000, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1642 SYSC_QUIRK("dsi", 0x58005000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1643 SYSC_QUIRK("dsi", 0x58009000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1644 SYSC_QUIRK("dwc3", 0, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff, 0),
1645 SYSC_QUIRK("d2d", 0x4a0b6000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1646 SYSC_QUIRK("d2d", 0x4a0cd000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1647 SYSC_QUIRK("elm", 0x48080000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, 0),
1648 SYSC_QUIRK("emif", 0, 0, -ENODEV, -ENODEV, 0x40441403, 0xffff0fff, 0),
1649 SYSC_QUIRK("emif", 0, 0, -ENODEV, -ENODEV, 0x50440500, 0xffffffff, 0),
1650 SYSC_QUIRK("epwmss", 0, 0, 0x4, -ENODEV, 0x47400001, 0xffffffff, 0),
1651 SYSC_QUIRK("gpu", 0, 0x1fc00, 0x1fc10, -ENODEV, 0, 0, 0),
1652 SYSC_QUIRK("gpu", 0, 0xfe00, 0xfe10, -ENODEV, 0x40000000 , 0xffffffff, 0),
1653 SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50031d00, 0xffffffff, 0),
1654 SYSC_QUIRK("hsi", 0, 0, 0x10, 0x14, 0x50043101, 0xffffffff, 0),
1655 SYSC_QUIRK("iss", 0, 0, 0x10, -ENODEV, 0x40000101, 0xffffffff, 0),
1656 SYSC_QUIRK("keypad", 0x4a31c000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, 0),
1657 SYSC_QUIRK("mcasp", 0, 0, 0x4, -ENODEV, 0x44307b02, 0xffffffff, 0),
1658 SYSC_QUIRK("mcbsp", 0, -ENODEV, 0x8c, -ENODEV, 0, 0, 0),
1659 SYSC_QUIRK("mcspi", 0, 0, 0x10, -ENODEV, 0x40300a0b, 0xffff00ff, 0),
1660 SYSC_QUIRK("mcspi", 0, 0, 0x110, 0x114, 0x40300a0b, 0xffffffff, 0),
1661 SYSC_QUIRK("mailbox", 0, 0, 0x10, -ENODEV, 0x00000400, 0xffffffff, 0),
1662 SYSC_QUIRK("m3", 0, 0, -ENODEV, -ENODEV, 0x5f580105, 0x0fff0f00, 0),
1663 SYSC_QUIRK("ocp2scp", 0, 0, 0x10, 0x14, 0x50060005, 0xfffffff0, 0),
1664 SYSC_QUIRK("ocp2scp", 0, 0, -ENODEV, -ENODEV, 0x50060007, 0xffffffff, 0),
1665 SYSC_QUIRK("padconf", 0, 0, 0x10, -ENODEV, 0x4fff0800, 0xffffffff, 0),
1666 SYSC_QUIRK("padconf", 0, 0, -ENODEV, -ENODEV, 0x40001100, 0xffffffff, 0),
1667 SYSC_QUIRK("pcie", 0x51000000, -ENODEV, -ENODEV, -ENODEV, 0, 0, 0),
1668 SYSC_QUIRK("pcie", 0x51800000, -ENODEV, -ENODEV, -ENODEV, 0, 0, 0),
1669 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x40000100, 0xffffffff, 0),
1670 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x00004102, 0xffffffff, 0),
1671 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x40000400, 0xffffffff, 0),
1672 SYSC_QUIRK("rfbi", 0x4832a800, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1673 SYSC_QUIRK("rfbi", 0x58002000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1674 SYSC_QUIRK("scm", 0, 0, 0x10, -ENODEV, 0x40000900, 0xffffffff, 0),
1675 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x4e8b0100, 0xffffffff, 0),
1676 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x4f000100, 0xffffffff, 0),
1677 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x40000900, 0xffffffff, 0),
1678 SYSC_QUIRK("scrm", 0, 0, -ENODEV, -ENODEV, 0x00000010, 0xffffffff, 0),
1679 SYSC_QUIRK("sdio", 0, 0, 0x10, -ENODEV, 0x40202301, 0xffff0ff0, 0),
1680 SYSC_QUIRK("sdio", 0, 0x2fc, 0x110, 0x114, 0x31010000, 0xffffffff, 0),
1681 SYSC_QUIRK("sdma", 0, 0, 0x2c, 0x28, 0x00010900, 0xffffffff, 0),
1682 SYSC_QUIRK("sham", 0, 0x100, 0x110, 0x114, 0x40000c03, 0xffffffff, 0),
1683 SYSC_QUIRK("slimbus", 0, 0, 0x10, -ENODEV, 0x40000902, 0xffffffff, 0),
1684 SYSC_QUIRK("slimbus", 0, 0, 0x10, -ENODEV, 0x40002903, 0xffffffff, 0),
1685 SYSC_QUIRK("smartreflex", 0, -ENODEV, 0x24, -ENODEV, 0x00000000, 0xffffffff, 0),
1686 SYSC_QUIRK("smartreflex", 0, -ENODEV, 0x38, -ENODEV, 0x00000000, 0xffffffff, 0),
1687 SYSC_QUIRK("spinlock", 0, 0, 0x10, -ENODEV, 0x50020000, 0xffffffff, 0),
1688 SYSC_QUIRK("rng", 0, 0x1fe0, 0x1fe4, -ENODEV, 0x00000020, 0xffffffff, 0),
1689 SYSC_QUIRK("timer", 0, 0, 0x10, 0x14, 0x00000013, 0xffffffff, 0),
1690 SYSC_QUIRK("timer", 0, 0, 0x10, 0x14, 0x00000015, 0xffffffff, 0),
1692 SYSC_QUIRK("timer", 0, 0, 0x10, -ENODEV, 0x50002100, 0xffffffff, 0),
1693 SYSC_QUIRK("timer", 0, 0, 0x10, -ENODEV, 0x4fff1301, 0xffff00ff, 0),
1694 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000040, 0xffffffff, 0),
1695 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000011, 0xffffffff, 0),
1696 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000060, 0xffffffff, 0),
1697 SYSC_QUIRK("tpcc", 0, 0, -ENODEV, -ENODEV, 0x40014c00, 0xffffffff, 0),
1698 SYSC_QUIRK("usbhstll", 0, 0, 0x10, 0x14, 0x00000004, 0xffffffff, 0),
1699 SYSC_QUIRK("usbhstll", 0, 0, 0x10, 0x14, 0x00000008, 0xffffffff, 0),
1700 SYSC_QUIRK("venc", 0x58003000, 0, -ENODEV, -ENODEV, 0x00000002, 0xffffffff, 0),
1701 SYSC_QUIRK("vfpe", 0, 0, 0x104, -ENODEV, 0x4d001200, 0xffffffff, 0),
1714 for (i = 0; i < ARRAY_SIZE(sysc_revision_quirks); i++) { in sysc_init_early_quirks()
1743 for (i = 0; i < ARRAY_SIZE(sysc_revision_quirks); i++) { in sysc_init_revision_quirks()
1776 const int lcd_en_mask = BIT(0), digit_en_mask = BIT(1); in sysc_quirk_dispc()
1779 u32 val, irq_mask = 0; in sysc_quirk_dispc()
1799 return 0; in sysc_quirk_dispc()
1811 val = sysc_read(ddata, dispc_offset + 0x40); in sysc_quirk_dispc()
1815 irq_mask |= BIT(0); /* FRAMEDONE */ in sysc_quirk_dispc()
1823 sysc_write(ddata, dispc_offset + 0x40, in sysc_quirk_dispc()
1830 val = sysc_read(ddata, dispc_offset + 0x238); in sysc_quirk_dispc()
1835 sysc_write(ddata, dispc_offset + 0x238, in sysc_quirk_dispc()
1842 val = sysc_read(ddata, dispc_offset + 0x848); in sysc_quirk_dispc()
1847 sysc_write(ddata, dispc_offset + 0x848, in sysc_quirk_dispc()
1856 const int dispc_offset = 0x1000; in sysc_pre_reset_quirk_dss()
1866 sysc_write(ddata, dispc_offset + 0x18, irq_mask); in sysc_pre_reset_quirk_dss()
1872 error = readl_poll_timeout(ddata->module_va + dispc_offset + 0x18, in sysc_pre_reset_quirk_dss()
1880 sysc_write(ddata, 0x44, 0); in sysc_pre_reset_quirk_dss()
1883 sysc_write(ddata, 0x48, 0); in sysc_pre_reset_quirk_dss()
1887 sysc_write(ddata, 0x40, 0); in sysc_pre_reset_quirk_dss()
1893 int offset = 0x0c; /* HDQ_CTRL_STATUS */ in sysc_pre_reset_quirk_hdq1w()
1904 int offset = 0x7c; /* AESS_AUTO_GATING_ENABLE */ in sysc_module_enable_quirk_aess()
1916 if ((ddata->revision & 0xffffff00) == 0x001f0000) in sysc_clk_quirk_i2c()
1917 offset = 0x24; in sysc_clk_quirk_i2c()
1919 offset = 0xa4; in sysc_clk_quirk_i2c()
1943 u32 val, kick0_val = 0, kick1_val = 0; in sysc_quirk_rtc()
1948 kick0_val = 0x83e70b13; in sysc_quirk_rtc()
1949 kick1_val = 0x95a4f1e0; in sysc_quirk_rtc()
1954 error = readl_poll_timeout_atomic(ddata->module_va + 0x44, val, in sysc_quirk_rtc()
1955 !(val & BIT(0)), 100, 50); in sysc_quirk_rtc()
1959 sysc_write(ddata, 0x6c, kick0_val); in sysc_quirk_rtc()
1960 sysc_write(ddata, 0x70, kick1_val); in sysc_quirk_rtc()
1977 int offset = 0x414; /* OTG_FORCESTDBY */ in sysc_module_enable_quirk_otg()
1979 sysc_write(ddata, offset, 0); in sysc_module_enable_quirk_otg()
1984 int offset = 0x414; /* OTG_FORCESTDBY */ in sysc_module_disable_quirk_otg()
1985 u32 val = BIT(0); /* ENABLEFORCE */ in sysc_module_disable_quirk_otg()
1993 int offset = 0xff08; /* OCP_DEBUG_CONFIG */ in sysc_module_enable_quirk_sgx()
2005 wps = 0x34; in sysc_reset_done_quirk_wdt()
2006 spr = 0x48; in sysc_reset_done_quirk_wdt()
2008 sysc_write(ddata, spr, 0xaaaa); in sysc_reset_done_quirk_wdt()
2010 !(val & 0x10), 100, in sysc_reset_done_quirk_wdt()
2015 sysc_write(ddata, spr, 0x5555); in sysc_reset_done_quirk_wdt()
2017 !(val & 0x10), 100, in sysc_reset_done_quirk_wdt()
2096 return 0; in sysc_clockdomain_init()
2105 case 0: in sysc_clockdomain_init()
2106 return 0; in sysc_clockdomain_init()
2111 return 0; in sysc_clockdomain_init()
2127 return 0; in sysc_legacy_init()
2131 error = 0; in sysc_legacy_init()
2148 ddata->cap->regbits->srst_shift < 0 || in sysc_reset()
2150 return 0; in sysc_reset()
2157 if (sysc_offset >= 0) { in sysc_reset()
2200 int error = 0; in sysc_init_module()
2275 return 0; in sysc_init_sysc_mask()
2279 return 0; in sysc_init_sysc_mask()
2298 return 0; in sysc_init_idlemode()
2315 return 0; in sysc_init_idlemodes()
2321 * SYSTATUS bit 0 is not used. Note that some SYSSTATUS registers
2338 return 0; in sysc_init_syss_mask()
2346 return 0; in sysc_init_syss_mask()
2359 int error = 0; in sysc_child_add_named_clock()
2362 return 0; in sysc_child_add_named_clock()
2388 for (i = 0; i < ddata->nr_clocks; i++) { in sysc_child_add_clocks()
2400 return 0; in sysc_child_add_clocks()
2428 return 0; in sysc_child_runtime_suspend()
2442 if (error < 0) in sysc_child_runtime_resume()
2475 return 0; in sysc_child_suspend_noirq()
2489 return 0; in sysc_child_suspend_noirq()
2672 for (i = 0; i < ARRAY_SIZE(sysc_dts_quirks); i++) { in sysc_parse_dts_quirks()
2707 return 0; in sysc_init_dts_quirks()
2717 for (i = 0; i < SYSC_MAX_CLOCKS; i++) { in sysc_unprepare()
2734 .autoidle_shift = 0,
2766 .autoidle_shift = 0,
2787 .autoidle_shift = 0,
2807 .srst_shift = 0,
2831 .sidle_shift = 0,
2899 .sidle_shift = 0,
2948 .srst_shift = 0,
2976 return 0; in sysc_init_pdata()
2994 return 0; in sysc_init_pdata()
3009 return 0; in sysc_init_match()
3099 return 0; in sysc_add_disabled()
3114 unsigned long features = 0; in sysc_init_static_data()
3118 return 0; in sysc_init_static_data()
3159 sysc_add_disabled(0x48304000); /* timer12 */ in sysc_init_static_data()
3162 sysc_add_disabled(0x48310000); /* rng */ in sysc_init_static_data()
3171 return 0; in sysc_init_static_data()
3182 sysc_add_disabled(0x480bd400); in sysc_init_static_data()
3184 sysc_add_disabled(0x5d000000); in sysc_init_static_data()
3186 sysc_add_disabled(0x50000000); in sysc_init_static_data()
3188 return 0; in sysc_init_static_data()
3220 int error = 0; in sysc_check_disabled_devices()
3246 return 0; in sysc_check_active_timer()
3264 return 0; in sysc_check_active_timer()
3346 if (error < 0) { in sysc_probe()
3389 return 0; in sysc_probe()
3410 if (error < 0) { in sysc_remove()
3426 return 0; in sysc_remove()