Lines Matching refs:regbits
230 if (ddata->cap->regbits->srst_shift < 0) in sysc_wait_softreset()
234 sysc_mask = BIT(ddata->cap->regbits->srst_shift); in sysc_wait_softreset()
957 const struct sysc_regbits *regbits; in sysc_enable_module() local
996 regbits = ddata->cap->regbits; in sysc_enable_module()
1004 if (regbits->clkact_shift >= 0 && in sysc_enable_module()
1006 reg |= SYSC_CLOCACT_ICK << regbits->clkact_shift; in sysc_enable_module()
1010 if (!idlemodes || regbits->sidle_shift < 0) in sysc_enable_module()
1024 if (regbits->enwkup_shift >= 0 && in sysc_enable_module()
1025 ddata->cfg.sysc_val & BIT(regbits->enwkup_shift)) in sysc_enable_module()
1026 reg |= BIT(regbits->enwkup_shift); in sysc_enable_module()
1029 reg &= ~(SYSC_IDLE_MASK << regbits->sidle_shift); in sysc_enable_module()
1030 reg |= best_mode << regbits->sidle_shift; in sysc_enable_module()
1036 if (!idlemodes || regbits->midle_shift < 0) in sysc_enable_module()
1048 reg &= ~(SYSC_IDLE_MASK << regbits->midle_shift); in sysc_enable_module()
1049 reg |= best_mode << regbits->midle_shift; in sysc_enable_module()
1054 if (regbits->autoidle_shift >= 0 && in sysc_enable_module()
1055 ddata->cfg.sysc_val & BIT(regbits->autoidle_shift)) { in sysc_enable_module()
1056 reg |= 1 << regbits->autoidle_shift; in sysc_enable_module()
1087 const struct sysc_regbits *regbits; in sysc_disable_module() local
1098 regbits = ddata->cap->regbits; in sysc_disable_module()
1103 if (!idlemodes || regbits->midle_shift < 0) in sysc_disable_module()
1116 reg &= ~(SYSC_IDLE_MASK << regbits->midle_shift); in sysc_disable_module()
1117 reg |= best_mode << regbits->midle_shift; in sysc_disable_module()
1123 if (!idlemodes || regbits->sidle_shift < 0) in sysc_disable_module()
1136 reg &= ~(SYSC_IDLE_MASK << regbits->sidle_shift); in sysc_disable_module()
1137 reg |= best_mode << regbits->sidle_shift; in sysc_disable_module()
1138 if (regbits->autoidle_shift >= 0 && in sysc_disable_module()
1139 ddata->cfg.sysc_val & BIT(regbits->autoidle_shift)) in sysc_disable_module()
1140 reg |= 1 << regbits->autoidle_shift; in sysc_disable_module()
1908 ddata->cap->regbits->srst_shift < 0 || in sysc_reset()
1912 sysc_mask = BIT(ddata->cap->regbits->srst_shift); in sysc_reset()
2419 .regbits = &sysc_regbits_omap2,
2428 .regbits = &sysc_regbits_omap2,
2450 .regbits = &sysc_regbits_omap3_sham,
2471 .regbits = &sysc_regbits_omap3_aes,
2492 .regbits = &sysc_regbits_omap4,
2499 .regbits = &sysc_regbits_omap4,
2518 .regbits = &sysc_regbits_omap4_simple,
2538 .regbits = &sysc_regbits_omap34xx_sr,
2560 .regbits = &sysc_regbits_omap36xx_sr,
2566 .regbits = &sysc_regbits_omap36xx_sr,
2586 .regbits = &sysc_regbits_omap4_mcasp,
2595 .regbits = &sysc_regbits_omap4_simple,
2616 .regbits = &sysc_regbits_omap4_usb_host_fs,
2633 .regbits = &sysc_regbits_dra7_mcan,
2643 .regbits = &sysc_regbits_omap4_simple,