2013-05-19 16:37:30 +02:00
|
|
|
/*
|
2012-12-18 06:56:40 +01:00
|
|
|
* These need to be defined in a .c file so that we can use
|
|
|
|
* designated initializer syntax which c++ doesn't support (yet).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "pios_flash_ut_priv.h"
|
|
|
|
|
|
|
|
|
|
|
|
const struct pios_flash_ut_cfg flash_config = {
|
2013-05-19 16:37:30 +02:00
|
|
|
.size_of_flash = 0x00300000,
|
|
|
|
.size_of_sector = 0x00010000,
|
2012-12-18 06:56:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#include "pios_flashfs_logfs_priv.h"
|
|
|
|
|
2013-04-19 05:32:52 +02:00
|
|
|
const struct flashfs_logfs_cfg flashfs_config_partition_a = {
|
2013-05-19 16:37:30 +02:00
|
|
|
.fs_magic = 0x89abceef,
|
|
|
|
.total_fs_size = 0x00200000, /* 2M bytes (32 sectors) */
|
|
|
|
.arena_size = 0x00010000, /* 256 * slot size */
|
|
|
|
.slot_size = 0x00000100, /* 256 bytes */
|
|
|
|
|
|
|
|
.start_offset = 0, /* start at the beginning of the chip */
|
|
|
|
.sector_size = 0x00010000, /* 64K bytes */
|
|
|
|
.page_size = 0x00000100, /* 256 bytes */
|
2012-12-18 06:56:40 +01:00
|
|
|
};
|
|
|
|
|
2013-04-19 05:32:52 +02:00
|
|
|
const struct flashfs_logfs_cfg flashfs_config_partition_b = {
|
2013-05-19 16:37:30 +02:00
|
|
|
.fs_magic = 0x89abceef,
|
|
|
|
.total_fs_size = 0x00100000, /* 1M bytes (16 sectors) */
|
|
|
|
.arena_size = 0x00010000, /* 64 * slot size */
|
|
|
|
.slot_size = 0x00000400, /* 256 bytes */
|
|
|
|
|
|
|
|
.start_offset = 0x00200000, /* start after partition a */
|
|
|
|
.sector_size = 0x00010000, /* 64K bytes */
|
|
|
|
.page_size = 0x00000100, /* 256 bytes */
|
2013-04-19 05:32:52 +02:00
|
|
|
};
|