From f4d409b3e57f4b2a47ea738df57fbeee4552373f Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Mon, 29 May 2023 09:51:33 +0200 Subject: [PATCH] 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 --- boards/arm/samv7/common/include/board_progmem.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/arm/samv7/common/include/board_progmem.h b/boards/arm/samv7/common/include/board_progmem.h index c07df50ae23..501cd61f15e 100644 --- a/boards/arm/samv7/common/include/board_progmem.h +++ b/boards/arm/samv7/common/include/board_progmem.h @@ -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 */ };