artik053: specify tagno when creating an mtd partition
authorEunBong Song <eunb.song@samsung.com>
Mon, 10 Apr 2017 22:52:30 +0000 (07:52 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:16 +0000 (12:02 +0900)
There is no knob for finding mtd part using get_mtd_partition().
This patch adds partno info for providing knob in
artik053_configure_partitions.

Change-Id: Ifa1004a471c66f0a0ff6d42935985ad53a10c7f1
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/arch/arm/src/artik053/src/artik053_tash.c

index 2234793..dfd4a76 100644 (file)
@@ -158,7 +158,7 @@ static void artik053_configure_partitions(void)
                }
 
                mtd_part = mtd_partition(mtd, partoffset,
-                               partsize / geo.erasesize, 0);
+                               partsize / geo.erasesize, partno);
                partoffset += partsize / geo.erasesize;
 
                if (!mtd_part) {