Lines Matching +full:is +full:- +full:dual
5 * SPDX-License-Identifier: Apache-2.0
29 if (regs->ACR & FLASH_ACR_ARTEN) { in flush_cache()
30 regs->ACR &= ~FLASH_ACR_ARTEN; in flush_cache()
33 * is disabled (ARTEN = 0). in flush_cache()
35 regs->ACR |= FLASH_ACR_ARTRST; in flush_cache()
36 regs->ACR &= ~FLASH_ACR_ARTRST; in flush_cache()
37 regs->ACR |= FLASH_ACR_ARTEN; in flush_cache()
46 /* if the control register is locked, do not fail silently */ in write_byte()
47 if (regs->CR & FLASH_CR_LOCK) { in write_byte()
48 return -EIO; in write_byte()
57 regs->CR = (regs->CR & CR_PSIZE_MASK) | in write_byte()
68 regs->CR &= (~FLASH_CR_PG); in write_byte()
78 /* if the control register is locked, do not fail silently */ in erase_sector()
79 if (regs->CR & FLASH_CR_LOCK) { in erase_sector()
80 return -EIO; in erase_sector()
88 /* Dual bank mode, SNB MSB selects the bank2, in erase_sector()
103 regs->CR = (regs->CR & ~(FLASH_CR_PSIZE | FLASH_CR_SNB)) | in erase_sector()
112 regs->CR &= ~(FLASH_CR_SER | FLASH_CR_SNB); in erase_sector()
131 rc = flash_get_page_info_by_offs(dev, offset + len - 1, &info); in flash_stm32_block_erase_loop()
163 /* Some SoC can run in single or dual bank mode, others can't.
165 * manuals, but the flash layout for a given number of sectors is
166 * consistent across these manuals. The number of sectors is given
172 * In case of 24 sectors we need to check if the SoC is running
173 * in single or dual bank mode.
211 /* RM0410, table 4: STM32F76xxx and STM32F77xxx in dual bank */
228 if (FLASH_STM32_REGS(dev)->OPTCR & FLASH_OPTCR_nDBANK) { in flash_stm32_page_layout()