Lines Matching refs:smcr
158 uint32_t smcr, val, cycles; in jz4780_nemc_configure_bank() local
183 smcr = readl(nemc->base + NEMC_SMCRn(bank)); in jz4780_nemc_configure_bank()
184 smcr &= ~NEMC_SMCR_SMT; in jz4780_nemc_configure_bank()
187 smcr &= ~NEMC_SMCR_BW_MASK; in jz4780_nemc_configure_bank()
190 smcr |= NEMC_SMCR_BW_8; in jz4780_nemc_configure_bank()
203 smcr &= ~NEMC_SMCR_TAS_MASK; in jz4780_nemc_configure_bank()
211 smcr |= cycles << NEMC_SMCR_TAS_SHIFT; in jz4780_nemc_configure_bank()
215 smcr &= ~NEMC_SMCR_TAH_MASK; in jz4780_nemc_configure_bank()
223 smcr |= cycles << NEMC_SMCR_TAH_SHIFT; in jz4780_nemc_configure_bank()
227 smcr &= ~NEMC_SMCR_TBP_MASK; in jz4780_nemc_configure_bank()
235 smcr |= convert_tBP_tAW[cycles] << NEMC_SMCR_TBP_SHIFT; in jz4780_nemc_configure_bank()
239 smcr &= ~NEMC_SMCR_TAW_MASK; in jz4780_nemc_configure_bank()
247 smcr |= convert_tBP_tAW[cycles] << NEMC_SMCR_TAW_SHIFT; in jz4780_nemc_configure_bank()
251 smcr &= ~NEMC_SMCR_TSTRV_MASK; in jz4780_nemc_configure_bank()
259 smcr |= cycles << NEMC_SMCR_TSTRV_SHIFT; in jz4780_nemc_configure_bank()
262 writel(smcr, nemc->base + NEMC_SMCRn(bank)); in jz4780_nemc_configure_bank()