FreeCalypso > hg > freecalypso-sw
diff loadtools/ltflash.c @ 96:57b8dbb029c2
fc-loadtool: GTA0x flash support
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 01 Sep 2013 04:18:32 +0000 |
parents | a7da6648a7f8 |
children | b78db17bfc85 |
line wrap: on
line diff
--- a/loadtools/ltflash.c Sun Sep 01 03:42:11 2013 +0000 +++ b/loadtools/ltflash.c Sun Sep 01 04:18:32 2013 +0000 @@ -11,6 +11,19 @@ #include <stdlib.h> #include "flash.h" +/* K5A32xx device description */ + +static struct flash_region_desc k5a32xx_topboot_regions[] = { + /* 4 MiB total, 64 KiB sectors except for the boot block of 8x 8 KiB */ + {0x10000, 63}, + {0x2000, 8}, + {0, 0} /* array terminator */ +}; + +static struct flash_bank_desc k5a32xx_topboot_bankdesc = { + k5a32xx_topboot_regions, 0xFFF00000 +}; + /* S{29,71}PL129N device description */ static struct flash_region_desc pl129n_ce1_regions[] = { @@ -35,6 +48,7 @@ /* list of supported flash devices */ struct flash_device_desc flash_device_list[] = { + {"k5a32xx_t", &k5a32xx_topboot_bankdesc, 1}, {"pl129n", pl129n_banks, 2}, {0, 0, 0} /* array terminator */ };