boards/samv7/common: add type member to mtd_partition_s structure

Board related code may use different mounts for MTD device (block
character for one, SmartFS for another) if required by the board.
Additional type member was therefore added to mtd_partition_s structure
in order to support this.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
Michal Lenc 2023-05-29 09:51:33 +02:00 committed by Petro Karashchenko
parent dde8ae468e
commit f4d409b3e5

View file

@ -39,6 +39,10 @@ struct mtd_partition_s
{
size_t offset; /* Partition offset from the beginning of MTD */
size_t size; /* Partition size in bytes */
uint8_t type; /* Optional if more devices types (block
* character, smartfs) have to be distinguish
* in board related code.
*/
const char *devpath; /* Partition device path */
struct mtd_dev_s *mtd; /* Pointer to allocated MTD partition */
};