Lines Matching refs:dew_regs
89 enum dew_regs { enum
1355 const u32 *dew_regs; member
1592 static bool pwrap_pmic_read_test(struct pmic_wrapper *wrp, const u32 *dew_regs, in pwrap_pmic_read_test() argument
1598 pwrap_read(wrp, dew_regs[PWRAP_DEW_READ_TEST], &rdata); in pwrap_pmic_read_test()
1656 read_ok = pwrap_pmic_read_test(wrp, wrp->slave->dew_regs, in pwrap_init_sidly()
1682 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_DIO_EN], 1); in pwrap_init_dual_io()
1697 read_ok = pwrap_pmic_read_test(wrp, wrp->slave->dew_regs, PWRAP_DEW_READ_TEST_VAL); in pwrap_init_dual_io()
1742 const u32 *dew_regs = wrp->slave->dew_regs; in pwrap_common_init_reg_clock() local
1744 pwrap_write(wrp, dew_regs[PWRAP_DEW_RDDMY_NO], 0x8); in pwrap_common_init_reg_clock()
1747 dew_regs = wrp->slave->comp_dew_regs; in pwrap_common_init_reg_clock()
1748 pwrap_write(wrp, dew_regs[PWRAP_DEW_RDDMY_NO], 0x8); in pwrap_common_init_reg_clock()
1778 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_RDDMY_NO], in pwrap_mt2701_init_reg_clock()
1794 static bool __pwrap_is_pmic_cipher_ready(struct pmic_wrapper *wrp, const u32 *dew_regs) in __pwrap_is_pmic_cipher_ready() argument
1799 ret = pwrap_read(wrp, dew_regs[PWRAP_DEW_CIPHER_RDY], &rdata); in __pwrap_is_pmic_cipher_ready()
1809 bool ret = __pwrap_is_pmic_cipher_ready(wrp, wrp->slave->dew_regs); in pwrap_is_pmic_cipher_ready()
1821 static void pwrap_config_cipher(struct pmic_wrapper *wrp, const u32 *dew_regs) in pwrap_config_cipher() argument
1823 pwrap_write(wrp, dew_regs[PWRAP_DEW_CIPHER_SWRST], 0x1); in pwrap_config_cipher()
1824 pwrap_write(wrp, dew_regs[PWRAP_DEW_CIPHER_SWRST], 0x0); in pwrap_config_cipher()
1825 pwrap_write(wrp, dew_regs[PWRAP_DEW_CIPHER_KEY_SEL], 0x1); in pwrap_config_cipher()
1826 pwrap_write(wrp, dew_regs[PWRAP_DEW_CIPHER_IV_SEL], 0x2); in pwrap_config_cipher()
1866 pwrap_config_cipher(wrp, wrp->slave->dew_regs); in pwrap_init_cipher()
1874 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_LOAD], in pwrap_init_cipher()
1876 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_START], in pwrap_init_cipher()
1882 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_EN], in pwrap_init_cipher()
1907 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_MODE], 0x1); in pwrap_init_cipher()
1918 if (pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_WRITE_TEST], in pwrap_init_cipher()
1920 pwrap_read(wrp, wrp->slave->dew_regs[PWRAP_DEW_WRITE_TEST], in pwrap_init_cipher()
1941 ret = pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CRC_EN], 0x1); in pwrap_init_security()
1949 crc_val = wrp->slave->dew_regs[PWRAP_DEW_CRC_VAL]; in pwrap_init_security()
1976 if (pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_OUT_EN], in pwrap_mt8135_init_soc_specific()
1978 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_SRC_EN], in pwrap_mt8135_init_soc_specific()
1990 if (pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_OUT_EN], in pwrap_mt8173_init_soc_specific()
1992 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_EVENT_SRC_EN], in pwrap_mt8173_init_soc_specific()
2045 pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CRC_EN], 0x1); in pwrap_mt8183_init_soc_specific()
2194 .dew_regs = mt6323_regs,
2202 .dew_regs = mt6331_regs,
2212 .dew_regs = mt6351_regs,
2219 .dew_regs = mt6357_regs,
2226 .dew_regs = mt6358_regs,
2233 .dew_regs = mt6359_regs,
2240 .dew_regs = NULL,
2247 .dew_regs = mt6397_regs,