Lines Matching refs:pwrap_writel
1398 static void pwrap_writel(struct pmic_wrapper *wrp, u32 val, enum pwrap_regs reg) in pwrap_writel() function
1435 pwrap_writel(wrp, 1, PWRAP_WACS2_VLDCLR); in pwrap_leave_fsm_vldclr()
1468 pwrap_writel(wrp, val, PWRAP_WACS2_CMD); in pwrap_read16()
1481 pwrap_writel(wrp, 1, PWRAP_WACS2_VLDCLR); in pwrap_read16()
1501 pwrap_writel(wrp, ((msb << 30) | (adr << 16)), in pwrap_read32()
1512 pwrap_writel(wrp, 1, PWRAP_WACS2_VLDCLR); in pwrap_read32()
1536 pwrap_writel(wrp, wdata, PWRAP_SWINF_2_WDATA_31_0); in pwrap_write16()
1537 pwrap_writel(wrp, BIT(29) | adr, PWRAP_WACS2_CMD); in pwrap_write16()
1539 pwrap_writel(wrp, BIT(31) | ((adr >> 1) << 16) | wdata, in pwrap_write16()
1559 pwrap_writel(wrp, (1 << 31) | (msb << 30) | (adr << 16) | in pwrap_write32()
1609 pwrap_writel(wrp, 0, PWRAP_HIPRIO_ARB_EN); in pwrap_reset_spislave()
1610 pwrap_writel(wrp, 0, PWRAP_WRAP_EN); in pwrap_reset_spislave()
1611 pwrap_writel(wrp, 1, PWRAP_MUX_SEL); in pwrap_reset_spislave()
1612 pwrap_writel(wrp, 1, PWRAP_MAN_EN); in pwrap_reset_spislave()
1613 pwrap_writel(wrp, 0, PWRAP_DIO_EN); in pwrap_reset_spislave()
1615 pwrap_writel(wrp, wrp->master->spi_w | PWRAP_MAN_CMD_OP_CSL, in pwrap_reset_spislave()
1617 pwrap_writel(wrp, wrp->master->spi_w | PWRAP_MAN_CMD_OP_OUTS, in pwrap_reset_spislave()
1619 pwrap_writel(wrp, wrp->master->spi_w | PWRAP_MAN_CMD_OP_CSH, in pwrap_reset_spislave()
1623 pwrap_writel(wrp, wrp->master->spi_w | PWRAP_MAN_CMD_OP_OUTS, in pwrap_reset_spislave()
1633 pwrap_writel(wrp, 0, PWRAP_MAN_EN); in pwrap_reset_spislave()
1634 pwrap_writel(wrp, 0, PWRAP_MUX_SEL); in pwrap_reset_spislave()
1655 pwrap_writel(wrp, i, PWRAP_SIDLY); in pwrap_init_sidly()
1670 pwrap_writel(wrp, dly[pass], PWRAP_SIDLY); in pwrap_init_sidly()
1694 pwrap_writel(wrp, 1, PWRAP_DIO_EN); in pwrap_init_dual_io()
1725 pwrap_writel(wrp, hext_write, PWRAP_CSHEXT_WRITE); in pwrap_init_chip_select_ext()
1726 pwrap_writel(wrp, hext_read, PWRAP_CSHEXT_READ); in pwrap_init_chip_select_ext()
1733 pwrap_writel(wrp, lext_start, PWRAP_CSLEXT_START); in pwrap_init_chip_select_ext()
1734 pwrap_writel(wrp, lext_end, PWRAP_CSLEXT_END); in pwrap_init_chip_select_ext()
1751 pwrap_writel(wrp, 0x88, PWRAP_RDDMY); in pwrap_common_init_reg_clock()
1758 pwrap_writel(wrp, 0x4, PWRAP_CSHEXT); in pwrap_common_init_reg_clock()
1772 pwrap_writel(wrp, 0xc, PWRAP_RDDMY); in pwrap_mt2701_init_reg_clock()
1777 pwrap_writel(wrp, 0x8, PWRAP_RDDMY); in pwrap_mt2701_init_reg_clock()
1835 pwrap_writel(wrp, 0x1, PWRAP_CIPHER_SWRST); in pwrap_init_cipher()
1836 pwrap_writel(wrp, 0x0, PWRAP_CIPHER_SWRST); in pwrap_init_cipher()
1837 pwrap_writel(wrp, 0x1, PWRAP_CIPHER_KEY_SEL); in pwrap_init_cipher()
1838 pwrap_writel(wrp, 0x2, PWRAP_CIPHER_IV_SEL); in pwrap_init_cipher()
1842 pwrap_writel(wrp, 1, PWRAP_CIPHER_LOAD); in pwrap_init_cipher()
1843 pwrap_writel(wrp, 1, PWRAP_CIPHER_START); in pwrap_init_cipher()
1854 pwrap_writel(wrp, 1, PWRAP_CIPHER_EN); in pwrap_init_cipher()
1857 pwrap_writel(wrp, 0, PWRAP_CIPHER_EN); in pwrap_init_cipher()
1915 pwrap_writel(wrp, 1, PWRAP_CIPHER_MODE); in pwrap_init_cipher()
1945 pwrap_writel(wrp, 0x1, PWRAP_CRC_EN); in pwrap_init_security()
1946 pwrap_writel(wrp, 0x0, PWRAP_SIG_MODE); in pwrap_init_security()
1953 pwrap_writel(wrp, crc_val, PWRAP_SIG_ADR); in pwrap_init_security()
1956 pwrap_writel(wrp, in pwrap_init_security()
1965 pwrap_writel(wrp, 0x1, PWRAP_EVENT_IN_EN); in pwrap_mt8135_init_soc_specific()
1966 pwrap_writel(wrp, 0xffff, PWRAP_EVENT_DST_EN); in pwrap_mt8135_init_soc_specific()
2006 pwrap_writel(wrp, 0x076c, PWRAP_ADC_CMD_ADDR); in pwrap_mt2701_init_soc_specific()
2007 pwrap_writel(wrp, 0x8000, PWRAP_PWRAP_ADC_CMD); in pwrap_mt2701_init_soc_specific()
2008 pwrap_writel(wrp, 0x072c, PWRAP_ADC_RDY_ADDR); in pwrap_mt2701_init_soc_specific()
2009 pwrap_writel(wrp, 0x072e, PWRAP_ADC_RDATA_ADDR1); in pwrap_mt2701_init_soc_specific()
2010 pwrap_writel(wrp, 0x0730, PWRAP_ADC_RDATA_ADDR2); in pwrap_mt2701_init_soc_specific()
2021 pwrap_writel(wrp, 0xf, PWRAP_STAUPD_GRPEN); in pwrap_mt6795_init_soc_specific()
2024 pwrap_writel(wrp, 0x1b4, PWRAP_EINT_STA0_ADR); in pwrap_mt6795_init_soc_specific()
2027 pwrap_writel(wrp, 0x8112, PWRAP_EINT_STA1_ADR); in pwrap_mt6795_init_soc_specific()
2034 pwrap_writel(wrp, 0, PWRAP_STAUPD_PRD); in pwrap_mt7622_init_soc_specific()
2036 pwrap_writel(wrp, 0x8000000, PWRAP_SPI2_CTRL); in pwrap_mt7622_init_soc_specific()
2043 pwrap_writel(wrp, 0xf5, PWRAP_STAUPD_GRPEN); in pwrap_mt8183_init_soc_specific()
2046 pwrap_writel(wrp, 1, PWRAP_CRC_EN); in pwrap_mt8183_init_soc_specific()
2047 pwrap_writel(wrp, 0x416, PWRAP_SIG_ADR); in pwrap_mt8183_init_soc_specific()
2048 pwrap_writel(wrp, 0x42e, PWRAP_EINT_STA0_ADR); in pwrap_mt8183_init_soc_specific()
2050 pwrap_writel(wrp, 1, PWRAP_WACS_P2P_EN); in pwrap_mt8183_init_soc_specific()
2051 pwrap_writel(wrp, 1, PWRAP_WACS_MD32_EN); in pwrap_mt8183_init_soc_specific()
2052 pwrap_writel(wrp, 1, PWRAP_INIT_DONE_P2P); in pwrap_mt8183_init_soc_specific()
2053 pwrap_writel(wrp, 1, PWRAP_INIT_DONE_MD32); in pwrap_mt8183_init_soc_specific()
2072 pwrap_writel(wrp, 3, PWRAP_DCM_EN); in pwrap_init()
2073 pwrap_writel(wrp, 0, PWRAP_DCM_DBC_PRD); in pwrap_init()
2086 pwrap_writel(wrp, 1, PWRAP_WRAP_EN); in pwrap_init()
2088 pwrap_writel(wrp, wrp->master->arb_en_all, PWRAP_HIPRIO_ARB_EN); in pwrap_init()
2090 pwrap_writel(wrp, 1, PWRAP_WACS2_EN); in pwrap_init()
2118 pwrap_writel(wrp, 0x7, PWRAP_RRARB_EN); in pwrap_init()
2120 pwrap_writel(wrp, 0x1, PWRAP_WACS0_EN); in pwrap_init()
2121 pwrap_writel(wrp, 0x1, PWRAP_WACS1_EN); in pwrap_init()
2122 pwrap_writel(wrp, 0x1, PWRAP_WACS2_EN); in pwrap_init()
2123 pwrap_writel(wrp, 0x5, PWRAP_STAUPD_PRD); in pwrap_init()
2124 pwrap_writel(wrp, 0xff, PWRAP_STAUPD_GRPEN); in pwrap_init()
2133 pwrap_writel(wrp, 1, PWRAP_INIT_DONE2); in pwrap_init()
2134 pwrap_writel(wrp, 1, PWRAP_INIT_DONE0); in pwrap_init()
2135 pwrap_writel(wrp, 1, PWRAP_INIT_DONE1); in pwrap_init()
2152 pwrap_writel(wrp, 0xffffffff, PWRAP_INT_CLR); in pwrap_interrupt()
2157 pwrap_writel(wrp, 0xffffffff, PWRAP_INT1_CLR); in pwrap_interrupt()
2570 pwrap_writel(wrp, 1, PWRAP_DCM_EN); in pwrap_probe()
2571 pwrap_writel(wrp, 0, PWRAP_DCM_DBC_PRD); in pwrap_probe()
2601 pwrap_writel(wrp, 0xf, PWRAP_WDT_UNIT); in pwrap_probe()
2607 pwrap_writel(wrp, wrp->master->wdt_src, PWRAP_WDT_SRC_EN); in pwrap_probe()
2609 pwrap_writel(wrp, wrp->master->wdt_src, PWRAP_WDT_SRC_EN_1); in pwrap_probe()
2612 pwrap_writel(wrp, 0x3, PWRAP_TIMER_EN); in pwrap_probe()
2614 pwrap_writel(wrp, 0x1, PWRAP_TIMER_EN); in pwrap_probe()
2616 pwrap_writel(wrp, wrp->master->int_en_all, PWRAP_INT_EN); in pwrap_probe()
2622 pwrap_writel(wrp, wrp->master->int1_en_all, PWRAP_INT1_EN); in pwrap_probe()