Lines Matching +full:0 +full:x4a000000
30 #define DIS_SGX BIT(0)
165 writew_relaxed(value & 0xffff, ddata->module_va + offset); in sysc_write()
168 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_write()
189 if (ddata->offsets[SYSC_REVISION] >= 0 && in sysc_read()
211 if (offset < 0) in sysc_read_revision()
212 return 0; in sysc_read_revision()
221 if (offset < 0) in sysc_read_sysconfig()
222 return 0; in sysc_read_sysconfig()
231 if (offset < 0) in sysc_read_sysstatus()
232 return 0; in sysc_read_sysstatus()
243 syss_done = 0; in sysc_poll_reset_sysstatus()
256 return 0; in sysc_poll_reset_sysstatus()
281 return 0; in sysc_poll_reset_sysconfig()
293 int syss_offset, error = 0; in sysc_wait_softreset()
295 if (ddata->cap->regbits->srst_shift < 0) in sysc_wait_softreset()
296 return 0; in sysc_wait_softreset()
300 if (syss_offset >= 0) in sysc_wait_softreset()
328 return 0; in sysc_add_named_clock_from_child()
355 return 0; in sysc_add_named_clock_from_child()
380 return 0; in sysc_init_ext_opt_clock()
392 if (index < 0) { in sysc_get_one_clock()
401 if (index < 0) { in sysc_get_one_clock()
422 return 0; in sysc_get_one_clock()
430 int nr_fck = 0, nr_ick = 0, i, error = 0; in sysc_get_clocks()
449 return 0; in sysc_get_clocks()
481 for (i = 0; i < SYSC_MAX_CLOCKS; i++) { in sysc_get_clocks()
492 return 0; in sysc_get_clocks()
501 return 0; in sysc_enable_main_clocks()
503 for (i = 0; i < SYSC_OPTFCK0; i++) { in sysc_enable_main_clocks()
515 return 0; in sysc_enable_main_clocks()
518 for (i--; i >= 0; i--) { in sysc_enable_main_clocks()
539 for (i = 0; i < SYSC_OPTFCK0; i++) { in sysc_disable_main_clocks()
554 return 0; in sysc_enable_opt_clocks()
561 return 0; in sysc_enable_opt_clocks()
568 return 0; in sysc_enable_opt_clocks()
571 for (i--; i >= 0; i--) { in sysc_enable_opt_clocks()
688 return 0; in sysc_parse_and_check_child_range()
694 { .start = 0x44c00000, .end = 0x44c00000 + 0x300000, },
696 { .start = 0x4a000000, .end = 0x4a000000 + 0x300000, },
698 { .start = 0x4a300000, .end = 0x4a300000 + 0x30000, },
700 { .start = 0x4ae00000, .end = 0x4ae00000 + 0x30000, },
719 return 0; in sysc_defer_non_critical()
721 for (i = 0; i < ARRAY_SIZE(early_bus_ranges); i++) { in sysc_defer_non_critical()
725 atomic_set(&sysc_defer, 0); in sysc_defer_non_critical()
727 return 0; in sysc_defer_non_critical()
847 return 0; in sysc_parse_one()
854 return 0; in sysc_parse_one()
861 for (i = 0; i < SYSC_MAX_REGS; i++) { in sysc_parse_registers()
867 return 0; in sysc_parse_registers()
876 int i, j, nr_regs = 0, nr_matches = 0; in sysc_check_registers()
878 for (i = 0; i < SYSC_MAX_REGS; i++) { in sysc_check_registers()
879 if (ddata->offsets[i] < 0) in sysc_check_registers()
888 for (j = 0; j < SYSC_MAX_REGS; j++) { in sysc_check_registers()
889 if (ddata->offsets[j] < 0) in sysc_check_registers()
905 return 0; in sysc_check_registers()
914 * them at offset 0x1fc00 in the 32MB module address space. And cpsw
915 * has them at offset 0x1200 in the CPSW_WR child. Usually the
923 if (ddata->offsets[SYSC_REVISION] < 0 && in sysc_ioremap()
924 ddata->offsets[SYSC_SYSCONFIG] < 0 && in sysc_ioremap()
925 ddata->offsets[SYSC_SYSSTATUS] < 0) { in sysc_ioremap()
945 return 0; in sysc_ioremap()
968 return 0; in sysc_map_and_check_registers()
982 return 0; in sysc_map_and_check_registers()
994 if (ddata->offsets[SYSC_REVISION] < 0) in sysc_show_rev()
1005 if (ddata->offsets[reg] < 0) in sysc_show_reg()
1014 return 0; in sysc_show_name()
1029 for (i = 0; i < SYSC_MAX_REGS; i++) in sysc_show_registers()
1100 return 0; in sysc_enable_module()
1110 if (regbits->clkact_shift >= 0 && in sysc_enable_module()
1116 if (!idlemodes || regbits->sidle_shift < 0) in sysc_enable_module()
1130 if (regbits->enwkup_shift >= 0 && in sysc_enable_module()
1142 if (!idlemodes || regbits->midle_shift < 0) in sysc_enable_module()
1161 if (regbits->autoidle_shift >= 0 && in sysc_enable_module()
1167 error = 0; in sysc_enable_module()
1190 return 0; in sysc_best_idle_mode()
1203 return 0; in sysc_disable_module()
1213 if (!idlemodes || regbits->midle_shift < 0) in sysc_disable_module()
1233 if (!idlemodes || regbits->sidle_shift < 0) { in sysc_disable_module()
1234 ret = 0; in sysc_disable_module()
1251 if (regbits->autoidle_shift >= 0 && in sysc_disable_module()
1256 ret = 0; in sysc_disable_module()
1273 return 0; in sysc_runtime_suspend_legacy()
1285 return 0; in sysc_runtime_suspend_legacy()
1296 return 0; in sysc_runtime_resume_legacy()
1308 return 0; in sysc_runtime_resume_legacy()
1314 int error = 0; in sysc_runtime_suspend()
1319 return 0; in sysc_runtime_suspend()
1351 int error = 0; in sysc_runtime_resume()
1356 return 0; in sysc_runtime_resume()
1387 return 0; in sysc_runtime_resume()
1417 return 0; in sysc_check_context()
1431 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()
1491 return 0; in sysc_noirq_resume()
1503 ddata->needs_resume = 0; in sysc_noirq_resume()
1542 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000046, 0xffffffff,
1544 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x00000052, 0xffffffff,
1547 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x50411e03, 0xffff00ff,
1549 SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47422e03, 0xffffffff,
1553 SYSC_QUIRK("mcpdm", 0x40132000, 0, 0x10, -ENODEV, 0x50000800, 0xffffffff,
1558 SYSC_QUIRK("aess", 0, 0, 0x10, -ENODEV, 0x40000000, 0xffffffff,
1561 SYSC_QUIRK("dcan", 0x4ae3c000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff,
1563 SYSC_QUIRK("dcan", 0x48480000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff,
1565 SYSC_QUIRK("dss", 0x4832a000, 0, 0x10, 0x14, 0x00000020, 0xffffffff,
1567 SYSC_QUIRK("dss", 0x58000000, 0, -ENODEV, 0x14, 0x00000040, 0xffffffff,
1569 SYSC_QUIRK("dss", 0x58000000, 0, -ENODEV, 0x14, 0x00000061, 0xffffffff,
1571 SYSC_QUIRK("dwc3", 0x48880000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
1573 SYSC_QUIRK("dwc3", 0x488c0000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
1575 SYSC_QUIRK("gpio", 0, 0, 0x10, 0x114, 0x50600801, 0xffff00ff,
1577 SYSC_QUIRK("gpmc", 0, 0, 0x10, 0x14, 0x00000060, 0xffffffff,
1580 SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50030200, 0xffffffff,
1582 SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x00000006, 0xffffffff,
1584 SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x0000000a, 0xffffffff,
1586 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x00000036, 0x000000ff,
1588 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x0000003c, 0x000000ff,
1590 SYSC_QUIRK("i2c", 0, 0, 0x20, 0x10, 0x00000040, 0x000000ff,
1592 SYSC_QUIRK("i2c", 0, 0, 0x10, 0x90, 0x5040000a, 0xfffff0f0,
1594 SYSC_QUIRK("gpu", 0x50000000, 0x14, -ENODEV, -ENODEV, 0x00010201, 0xffffffff, 0),
1595 SYSC_QUIRK("gpu", 0x50000000, 0xfe00, 0xfe10, -ENODEV, 0x40000000 , 0xffffffff,
1597 SYSC_QUIRK("lcdc", 0, 0, 0x54, -ENODEV, 0x4f201000, 0xffffffff,
1599 SYSC_QUIRK("mcasp", 0, 0, 0x4, -ENODEV, 0x44306302, 0xffffffff,
1601 SYSC_QUIRK("rtc", 0, 0x74, 0x78, -ENODEV, 0x4eb01908, 0xffff00f0,
1603 SYSC_QUIRK("tptc", 0, 0, 0x10, -ENODEV, 0x40006c00, 0xffffefff,
1605 SYSC_QUIRK("tptc", 0, 0, -ENODEV, -ENODEV, 0x40007c00, 0xffffffff,
1607 SYSC_QUIRK("sata", 0, 0xfc, 0x1100, -ENODEV, 0x5e412000, 0xffffffff,
1609 SYSC_QUIRK("usb_host_hs", 0, 0, 0x10, 0x14, 0x50700100, 0xffffffff,
1611 SYSC_QUIRK("usb_host_hs", 0, 0, 0x10, -ENODEV, 0x50700101, 0xffffffff,
1613 SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000050,
1614 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY |
1616 SYSC_QUIRK("usb_otg_hs", 0, 0, 0x10, -ENODEV, 0x4ea2080d, 0xffffffff,
1619 SYSC_QUIRK("wdt", 0, 0, 0x10, 0x14, 0x502a0500, 0xfffff0f0,
1622 SYSC_QUIRK("pruss", 0, 0x26000, 0x26004, -ENODEV, 0x47000000, 0xff000000,
1625 SYSC_QUIRK("wdt", 0x44e35000, 0, 0x10, 0x14, 0x502a0500, 0xfffff0f0,
1629 SYSC_QUIRK("adc", 0, 0, 0x10, -ENODEV, 0x47300001, 0xffffffff, 0),
1630 SYSC_QUIRK("atl", 0, 0, -ENODEV, -ENODEV, 0x0a070100, 0xffffffff, 0),
1631 SYSC_QUIRK("cm", 0, 0, -ENODEV, -ENODEV, 0x40000301, 0xffffffff, 0),
1632 SYSC_QUIRK("control", 0, 0, 0x10, -ENODEV, 0x40000900, 0xffffffff, 0),
1633 SYSC_QUIRK("cpgmac", 0, 0x1200, 0x1208, 0x1204, 0x4edb1902,
1634 0xffff00f0, 0),
1635 SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff, 0),
1636 SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0x4edb1902, 0xffffffff, 0),
1637 SYSC_QUIRK("dispc", 0x4832a400, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1638 SYSC_QUIRK("dispc", 0x58001000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1639 SYSC_QUIRK("dispc", 0x58001000, 0, 0x10, 0x14, 0x00000051, 0xffffffff, 0),
1640 SYSC_QUIRK("dmic", 0, 0, 0x10, -ENODEV, 0x50010000, 0xffffffff, 0),
1641 SYSC_QUIRK("dsi", 0x58004000, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1642 SYSC_QUIRK("dsi", 0x58005000, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0),
1643 SYSC_QUIRK("dsi", 0x58005000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1644 SYSC_QUIRK("dsi", 0x58009000, 0, 0x10, 0x14, 0x00000040, 0xffffffff, 0),
1645 SYSC_QUIRK("dwc3", 0, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff, 0),
1646 SYSC_QUIRK("d2d", 0x4a0b6000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1647 SYSC_QUIRK("d2d", 0x4a0cd000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1648 SYSC_QUIRK("elm", 0x48080000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, 0),
1649 SYSC_QUIRK("emif", 0, 0, -ENODEV, -ENODEV, 0x40441403, 0xffff0fff, 0),
1650 SYSC_QUIRK("emif", 0, 0, -ENODEV, -ENODEV, 0x50440500, 0xffffffff, 0),
1651 SYSC_QUIRK("epwmss", 0, 0, 0x4, -ENODEV, 0x47400001, 0xffffffff, 0),
1652 SYSC_QUIRK("gpu", 0, 0x1fc00, 0x1fc10, -ENODEV, 0, 0, 0),
1653 SYSC_QUIRK("gpu", 0, 0xfe00, 0xfe10, -ENODEV, 0x40000000 , 0xffffffff, 0),
1654 SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50031d00, 0xffffffff, 0),
1655 SYSC_QUIRK("hsi", 0, 0, 0x10, 0x14, 0x50043101, 0xffffffff, 0),
1656 SYSC_QUIRK("iss", 0, 0, 0x10, -ENODEV, 0x40000101, 0xffffffff, 0),
1657 SYSC_QUIRK("keypad", 0x4a31c000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, 0),
1658 SYSC_QUIRK("mcasp", 0, 0, 0x4, -ENODEV, 0x44307b02, 0xffffffff, 0),
1659 SYSC_QUIRK("mcbsp", 0, -ENODEV, 0x8c, -ENODEV, 0, 0, 0),
1660 SYSC_QUIRK("mcspi", 0, 0, 0x10, -ENODEV, 0x40300a0b, 0xffff00ff, 0),
1661 SYSC_QUIRK("mcspi", 0, 0, 0x110, 0x114, 0x40300a0b, 0xffffffff, 0),
1662 SYSC_QUIRK("mailbox", 0, 0, 0x10, -ENODEV, 0x00000400, 0xffffffff, 0),
1663 SYSC_QUIRK("m3", 0, 0, -ENODEV, -ENODEV, 0x5f580105, 0x0fff0f00, 0),
1664 SYSC_QUIRK("ocp2scp", 0, 0, 0x10, 0x14, 0x50060005, 0xfffffff0, 0),
1665 SYSC_QUIRK("ocp2scp", 0, 0, -ENODEV, -ENODEV, 0x50060007, 0xffffffff, 0),
1666 SYSC_QUIRK("padconf", 0, 0, 0x10, -ENODEV, 0x4fff0800, 0xffffffff, 0),
1667 SYSC_QUIRK("padconf", 0, 0, -ENODEV, -ENODEV, 0x40001100, 0xffffffff, 0),
1668 SYSC_QUIRK("pcie", 0x51000000, -ENODEV, -ENODEV, -ENODEV, 0, 0, 0),
1669 SYSC_QUIRK("pcie", 0x51800000, -ENODEV, -ENODEV, -ENODEV, 0, 0, 0),
1670 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x40000100, 0xffffffff, 0),
1671 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x00004102, 0xffffffff, 0),
1672 SYSC_QUIRK("prcm", 0, 0, -ENODEV, -ENODEV, 0x40000400, 0xffffffff, 0),
1673 SYSC_QUIRK("rfbi", 0x4832a800, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1674 SYSC_QUIRK("rfbi", 0x58002000, 0, 0x10, 0x14, 0x00000010, 0xffffffff, 0),
1675 SYSC_QUIRK("scm", 0, 0, 0x10, -ENODEV, 0x40000900, 0xffffffff, 0),
1676 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x4e8b0100, 0xffffffff, 0),
1677 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x4f000100, 0xffffffff, 0),
1678 SYSC_QUIRK("scm", 0, 0, -ENODEV, -ENODEV, 0x40000900, 0xffffffff, 0),
1679 SYSC_QUIRK("scrm", 0, 0, -ENODEV, -ENODEV, 0x00000010, 0xffffffff, 0),
1680 SYSC_QUIRK("sdio", 0, 0, 0x10, -ENODEV, 0x40202301, 0xffff0ff0, 0),
1681 SYSC_QUIRK("sdio", 0, 0x2fc, 0x110, 0x114, 0x31010000, 0xffffffff, 0),
1682 SYSC_QUIRK("sdma", 0, 0, 0x2c, 0x28, 0x00010900, 0xffffffff, 0),
1683 SYSC_QUIRK("sham", 0, 0x100, 0x110, 0x114, 0x40000c03, 0xffffffff, 0),
1684 SYSC_QUIRK("slimbus", 0, 0, 0x10, -ENODEV, 0x40000902, 0xffffffff, 0),
1685 SYSC_QUIRK("slimbus", 0, 0, 0x10, -ENODEV, 0x40002903, 0xffffffff, 0),
1686 SYSC_QUIRK("smartreflex", 0, -ENODEV, 0x24, -ENODEV, 0x00000000, 0xffffffff, 0),
1687 SYSC_QUIRK("smartreflex", 0, -ENODEV, 0x38, -ENODEV, 0x00000000, 0xffffffff, 0),
1688 SYSC_QUIRK("spinlock", 0, 0, 0x10, -ENODEV, 0x50020000, 0xffffffff, 0),
1689 SYSC_QUIRK("rng", 0, 0x1fe0, 0x1fe4, -ENODEV, 0x00000020, 0xffffffff, 0),
1690 SYSC_QUIRK("timer", 0, 0, 0x10, 0x14, 0x00000013, 0xffffffff, 0),
1691 SYSC_QUIRK("timer", 0, 0, 0x10, 0x14, 0x00000015, 0xffffffff, 0),
1693 SYSC_QUIRK("timer", 0, 0, 0x10, -ENODEV, 0x50002100, 0xffffffff, 0),
1694 SYSC_QUIRK("timer", 0, 0, 0x10, -ENODEV, 0x4fff1301, 0xffff00ff, 0),
1695 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000040, 0xffffffff, 0),
1696 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000011, 0xffffffff, 0),
1697 SYSC_QUIRK("timer32k", 0, 0, 0x4, -ENODEV, 0x00000060, 0xffffffff, 0),
1698 SYSC_QUIRK("tpcc", 0, 0, -ENODEV, -ENODEV, 0x40014c00, 0xffffffff, 0),
1699 SYSC_QUIRK("usbhstll", 0, 0, 0x10, 0x14, 0x00000004, 0xffffffff, 0),
1700 SYSC_QUIRK("usbhstll", 0, 0, 0x10, 0x14, 0x00000008, 0xffffffff, 0),
1701 SYSC_QUIRK("venc", 0x58003000, 0, -ENODEV, -ENODEV, 0x00000002, 0xffffffff, 0),
1702 SYSC_QUIRK("vfpe", 0, 0, 0x104, -ENODEV, 0x4d001200, 0xffffffff, 0),
1715 for (i = 0; i < ARRAY_SIZE(sysc_revision_quirks); i++) { in sysc_init_early_quirks()
1744 for (i = 0; i < ARRAY_SIZE(sysc_revision_quirks); i++) { in sysc_init_revision_quirks()
1777 const int lcd_en_mask = BIT(0), digit_en_mask = BIT(1); in sysc_quirk_dispc()
1780 u32 val, irq_mask = 0; in sysc_quirk_dispc()
1800 return 0; in sysc_quirk_dispc()
1812 val = sysc_read(ddata, dispc_offset + 0x40); in sysc_quirk_dispc()
1816 irq_mask |= BIT(0); /* FRAMEDONE */ in sysc_quirk_dispc()
1824 sysc_write(ddata, dispc_offset + 0x40, in sysc_quirk_dispc()
1831 val = sysc_read(ddata, dispc_offset + 0x238); in sysc_quirk_dispc()
1836 sysc_write(ddata, dispc_offset + 0x238, in sysc_quirk_dispc()
1843 val = sysc_read(ddata, dispc_offset + 0x848); in sysc_quirk_dispc()
1848 sysc_write(ddata, dispc_offset + 0x848, in sysc_quirk_dispc()
1857 const int dispc_offset = 0x1000; in sysc_pre_reset_quirk_dss()
1867 sysc_write(ddata, dispc_offset + 0x18, irq_mask); in sysc_pre_reset_quirk_dss()
1873 error = readl_poll_timeout(ddata->module_va + dispc_offset + 0x18, in sysc_pre_reset_quirk_dss()
1881 sysc_write(ddata, 0x44, 0); in sysc_pre_reset_quirk_dss()
1884 sysc_write(ddata, 0x48, 0); in sysc_pre_reset_quirk_dss()
1888 sysc_write(ddata, 0x40, 0); in sysc_pre_reset_quirk_dss()
1894 int offset = 0x0c; /* HDQ_CTRL_STATUS */ in sysc_pre_reset_quirk_hdq1w()
1905 int offset = 0x7c; /* AESS_AUTO_GATING_ENABLE */ in sysc_module_enable_quirk_aess()
1917 if ((ddata->revision & 0xffffff00) == 0x001f0000) in sysc_clk_quirk_i2c()
1918 offset = 0x24; in sysc_clk_quirk_i2c()
1920 offset = 0xa4; in sysc_clk_quirk_i2c()
1944 u32 val, kick0_val = 0, kick1_val = 0; in sysc_quirk_rtc()
1949 kick0_val = 0x83e70b13; in sysc_quirk_rtc()
1950 kick1_val = 0x95a4f1e0; in sysc_quirk_rtc()
1955 error = readl_poll_timeout_atomic(ddata->module_va + 0x44, val, in sysc_quirk_rtc()
1956 !(val & BIT(0)), 100, 50); in sysc_quirk_rtc()
1960 sysc_write(ddata, 0x6c, kick0_val); in sysc_quirk_rtc()
1961 sysc_write(ddata, 0x70, kick1_val); in sysc_quirk_rtc()
1978 int offset = 0x414; /* OTG_FORCESTDBY */ in sysc_module_enable_quirk_otg()
1980 sysc_write(ddata, offset, 0); in sysc_module_enable_quirk_otg()
1985 int offset = 0x414; /* OTG_FORCESTDBY */ in sysc_module_disable_quirk_otg()
1986 u32 val = BIT(0); /* ENABLEFORCE */ in sysc_module_disable_quirk_otg()
1994 int offset = 0xff08; /* OCP_DEBUG_CONFIG */ in sysc_module_enable_quirk_sgx()
2006 wps = 0x34; in sysc_reset_done_quirk_wdt()
2007 spr = 0x48; in sysc_reset_done_quirk_wdt()
2009 sysc_write(ddata, spr, 0xaaaa); in sysc_reset_done_quirk_wdt()
2011 !(val & 0x10), 100, in sysc_reset_done_quirk_wdt()
2016 sysc_write(ddata, spr, 0x5555); in sysc_reset_done_quirk_wdt()
2018 !(val & 0x10), 100, in sysc_reset_done_quirk_wdt()
2097 return 0; in sysc_clockdomain_init()
2106 case 0: in sysc_clockdomain_init()
2107 return 0; in sysc_clockdomain_init()
2112 return 0; in sysc_clockdomain_init()
2128 return 0; in sysc_legacy_init()
2132 error = 0; in sysc_legacy_init()
2149 ddata->cap->regbits->srst_shift < 0 || in sysc_reset()
2151 return 0; in sysc_reset()
2158 if (sysc_offset >= 0) { in sysc_reset()
2190 int error = 0; in sysc_init_module()
2265 return 0; in sysc_init_sysc_mask()
2269 return 0; in sysc_init_sysc_mask()
2288 return 0; in sysc_init_idlemode()
2305 return 0; in sysc_init_idlemodes()
2311 * SYSTATUS bit 0 is not used. Note that some SYSSTATUS registers
2328 return 0; in sysc_init_syss_mask()
2336 return 0; in sysc_init_syss_mask()
2349 int error = 0; in sysc_child_add_named_clock()
2352 return 0; in sysc_child_add_named_clock()
2378 for (i = 0; i < ddata->nr_clocks; i++) { in sysc_child_add_clocks()
2390 return 0; in sysc_child_add_clocks()
2418 return 0; in sysc_child_runtime_suspend()
2432 if (error < 0) in sysc_child_runtime_resume()
2465 return 0; in sysc_child_suspend_noirq()
2479 return 0; in sysc_child_suspend_noirq()
2664 for (i = 0; i < ARRAY_SIZE(sysc_dts_quirks); i++) { in sysc_parse_dts_quirks()
2699 return 0; in sysc_init_dts_quirks()
2709 for (i = 0; i < SYSC_MAX_CLOCKS; i++) { in sysc_unprepare()
2726 .autoidle_shift = 0,
2758 .autoidle_shift = 0,
2779 .autoidle_shift = 0,
2799 .srst_shift = 0,
2823 .sidle_shift = 0,
2891 .sidle_shift = 0,
2940 .srst_shift = 0,
2968 return 0; in sysc_init_pdata()
2986 return 0; in sysc_init_pdata()
3001 return 0; in sysc_init_match()
3090 return 0; in sysc_add_disabled()
3105 unsigned long features = 0; in sysc_init_static_data()
3109 return 0; in sysc_init_static_data()
3150 sysc_add_disabled(0x48304000); /* timer12 */ in sysc_init_static_data()
3153 sysc_add_disabled(0x48310000); /* rng */ in sysc_init_static_data()
3162 return 0; in sysc_init_static_data()
3173 sysc_add_disabled(0x480bd400); in sysc_init_static_data()
3175 sysc_add_disabled(0x5d000000); in sysc_init_static_data()
3177 sysc_add_disabled(0x50000000); in sysc_init_static_data()
3179 return 0; in sysc_init_static_data()
3212 int error = 0; in sysc_check_disabled_devices()
3239 return 0; in sysc_check_active_timer()
3257 return 0; in sysc_check_active_timer()
3339 if (error < 0) { in sysc_probe()
3382 return 0; in sysc_probe()
3403 if (error < 0) { in sysc_remove()
3419 return 0; in sysc_remove()