Lines Matching refs:flash_regs
109 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in ramcode_flash_follow_mode() local
116 flash_regs->SMFI_ECINDAR3 = (EC_INDIRECT_READ_INTERNAL_FLASH | in ramcode_flash_follow_mode()
120 flash_regs->SMFI_ECINDAR2 = (FLASH_FSCE_HIGH_ADDRESS >> 16) & GENMASK(7, 0); in ramcode_flash_follow_mode()
121 flash_regs->SMFI_ECINDAR1 = (FLASH_FSCE_HIGH_ADDRESS >> 8) & GENMASK(7, 0); in ramcode_flash_follow_mode()
122 flash_regs->SMFI_ECINDAR0 = FLASH_FSCE_HIGH_ADDRESS & GENMASK(7, 0); in ramcode_flash_follow_mode()
125 flash_regs->SMFI_ECINDDR = 0x00; in ramcode_flash_follow_mode()
130 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in ramcode_flash_follow_mode_exit() local
133 flash_regs->SMFI_ECINDAR3 = EC_INDIRECT_READ_INTERNAL_FLASH; in ramcode_flash_follow_mode_exit()
134 flash_regs->SMFI_ECINDAR2 = 0x00; in ramcode_flash_follow_mode_exit()
139 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in ramcode_flash_fsce_high() local
143 flash_regs->SMFI_ECINDAR1 = (FLASH_FSCE_HIGH_ADDRESS >> 8) & GENMASK(7, 0); in ramcode_flash_fsce_high()
158 flash_regs->SMFI_ECINDDR = 0x00; in ramcode_flash_fsce_high()
163 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in ramcode_flash_write_dat() local
166 flash_regs->SMFI_ECINDDR = wdata; in ramcode_flash_write_dat()
172 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in ramcode_flash_transaction() local
176 flash_regs->SMFI_ECINDAR1 = (FLASH_FSCE_LOW_ADDRESS >> 8) & GENMASK(7, 0); in ramcode_flash_transaction()
179 flash_regs->SMFI_ECINDDR = wbuf[i]; in ramcode_flash_transaction()
183 rbuf[i] = flash_regs->SMFI_ECINDDR; in ramcode_flash_transaction()
194 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in ramcode_flash_cmd_read_status() local
207 while ((flash_regs->SMFI_ECINDDR & mask) != target) { in ramcode_flash_cmd_read_status()
346 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in flash_it8xxx2_read() local
351 flash_regs->SMFI_ECINDAR3 = EC_INDIRECT_READ_INTERNAL_FLASH; in flash_it8xxx2_read()
352 flash_regs->SMFI_ECINDAR2 = (offset >> 16) & GENMASK(7, 0); in flash_it8xxx2_read()
353 flash_regs->SMFI_ECINDAR1 = (offset >> 8) & GENMASK(7, 0); in flash_it8xxx2_read()
354 flash_regs->SMFI_ECINDAR0 = (offset & GENMASK(7, 0)); in flash_it8xxx2_read()
360 data_t[i] = flash_regs->SMFI_ECINDDR; in flash_it8xxx2_read()
467 struct smfi_it8xxx2_regs *const flash_regs = FLASH_IT8XXX2_REG_BASE; in flash_it8xxx2_init() local
471 flash_regs->SMFI_ECINDAR3 = EC_INDIRECT_READ_INTERNAL_FLASH; in flash_it8xxx2_init()
478 flash_regs->SMFI_FLHCTRL6R |= IT8XXX2_SMFI_MASK_ECINDPP; in flash_it8xxx2_init()