FreeCalypso > hg > freecalypso-sw
changeset 940:0fb9b7f2ef87
gsm-fw/services/ffs/drv.c: Intel single bank flash driver hooked in
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 31 Oct 2015 23:39:41 +0000 |
parents | 62ca61292b77 |
children | 6b0b2f6dbb20 |
files | gsm-fw/services/ffs/drv.c |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/services/ffs/drv.c Sat Oct 31 23:21:40 2015 +0000 +++ b/gsm-fw/services/ffs/drv.c Sat Oct 31 23:39:41 2015 +0000 @@ -190,6 +190,8 @@ #elif CONFIG_FLASH_WRITE +#if FLASH_IS_AMD_MULTIBANK + /****************************************************************************** * AMD Dual/Multi Bank Driver Functions ******************************************************************************/ @@ -359,6 +361,29 @@ ffsdrv_amd_erase_resume }; +#elif FLASH_IS_INTEL_ONEBANK + +extern int ffsdrv_ram_intel_sb_init(void); +extern void ffsdrv_ram_intel_sb_write_halfword(volatile uint16 *addr, + uint16 value); +extern void ffsdrv_ram_intel_sb_erase(uint8 block); + +const struct ffsdrv_s ffsdrv = { + ffsdrv_ram_intel_sb_init, + ffsdrv_ram_intel_sb_erase, + ffsdrv_ram_intel_sb_write_halfword, + ffsdrv_generic_write, + ffsdrv_null_write_end, + ffsdrv_null_erase_suspend, + ffsdrv_null_erase_resume +}; + +#else + +#error "Flash hardware type unknown" + +#endif /* flash hardware type */ + #else /*