Lines Matching refs:eefc
63 at91_eefc_t *eefc = (at91_eefc_t *) ATMEL_BASE_EEFC; in flash_init() local
79 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GETD, &eefc->fcr); in flash_init()
80 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_init()
82 id = readl(&eefc->frr); /* word 0 */ in flash_init()
83 size = readl(&eefc->frr); /* word 1 */ in flash_init()
84 pagesize = readl(&eefc->frr); /* word 2 */ in flash_init()
85 nplanes = readl(&eefc->frr); /* word 3 */ in flash_init()
86 planesize = readl(&eefc->frr); /* word 4 */ in flash_init()
90 tmp = readl(&eefc->frr); /* words 5..4+nplanes-1 */ in flash_init()
92 nlocks = readl(&eefc->frr); /* word 4+nplanes */ in flash_init()
107 tmp = readl(&eefc->frr); /* words 4+nplanes+1.. */ in flash_init()
114 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GLB, &eefc->fcr); in flash_init()
115 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_init()
119 tmp = readl(&eefc->frr); in flash_init()
153 at91_eefc_t *eefc = (at91_eefc_t *) ATMEL_BASE_EEFC; in flash_real_protect() local
170 (pagenum << AT91_EEFC_FCR_FARG_SHIFT), &eefc->fcr); in flash_real_protect()
173 (pagenum << AT91_EEFC_FCR_FARG_SHIFT), &eefc->fcr); in flash_real_protect()
175 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_real_protect()
178 writel(AT91_EEFC_FCR_KEY | AT91_EEFC_FCR_FCMD_GLB, &eefc->fcr); in flash_real_protect()
179 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_real_protect()
183 tmp = readl(&eefc->frr); in flash_real_protect()
191 at91_eefc_t *eefc = (at91_eefc_t *) ATMEL_BASE_EEFC; in erase_write_page() local
197 (pagenum << AT91_EEFC_FCR_FARG_SHIFT), &eefc->fcr); in erase_write_page()
198 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in erase_write_page()
201 return readl(&eefc->fsr) in erase_write_page()