2 * These need to be defined in a .c file so that we can use
3 * designated initializer syntax which c++ doesn't support (yet).
6 #include "pios_flash_ut_priv.h"
9 const struct pios_flash_ut_cfg flash_config
= {
10 .size_of_flash
= 0x00300000,
11 .size_of_sector
= 0x00010000,
14 #include "pios_flashfs_logfs_priv.h"
16 const struct flashfs_logfs_cfg flashfs_config_partition_a
= {
17 .fs_magic
= 0x89abceef,
18 .total_fs_size
= 0x00200000, /* 2M bytes (32 sectors) */
19 .arena_size
= 0x00010000, /* 256 * slot size */
20 .slot_size
= 0x00000100, /* 256 bytes */
22 .start_offset
= 0, /* start at the beginning of the chip */
23 .sector_size
= 0x00010000, /* 64K bytes */
24 .page_size
= 0x00000100, /* 256 bytes */
27 const struct flashfs_logfs_cfg flashfs_config_partition_b
= {
28 .fs_magic
= 0x89abceef,
29 .total_fs_size
= 0x00100000, /* 1M bytes (16 sectors) */
30 .arena_size
= 0x00010000, /* 64 * slot size */
31 .slot_size
= 0x00000400, /* 256 bytes */
33 .start_offset
= 0x00200000, /* start after partition a */
34 .sector_size
= 0x00010000, /* 64K bytes */
35 .page_size
= 0x00000100, /* 256 bytes */