boards/arm/samv7/samv71-xult/src/sam_bringup.c: CONFIG_BCH

This commit is contained in:
YAMAMOTO Takashi 2021-03-17 08:06:30 +09:00 committed by Xiang Xiao
parent dd86f7d461
commit 4494a2a501
1 changed files with 6 additions and 0 deletions

View File

@ -187,8 +187,10 @@ int sam_bringup(void)
FAR struct i2c_master_s *i2c;
#endif
#if defined(HAVE_S25FL1_CHARDEV) || defined(HAVE_PROGMEM_CHARDEV)
#if defined(CONFIG_BCH)
char blockdev[18];
char chardev[12];
#endif /* defined(CONFIG_BCH) */
#endif
int ret;
@ -430,6 +432,7 @@ int sam_bringup(void)
return ret;
}
#if defined(CONFIG_BCH)
/* Use the minor number to create device paths */
snprintf(blockdev, 18, "/dev/mtdblock%d", S25FL1_MTD_MINOR);
@ -444,6 +447,7 @@ int sam_bringup(void)
chardev, ret);
return ret;
}
#endif /* defined(CONFIG_BCH) */
#endif
}
#endif
@ -471,6 +475,7 @@ int sam_bringup(void)
return ret;
}
#if defined(CONFIG_BCH)
/* Use the minor number to create device paths */
snprintf(blockdev, 18, "/dev/mtdblock%d", PROGMEM_MTD_MINOR);
@ -485,6 +490,7 @@ int sam_bringup(void)
chardev, ret);
return ret;
}
#endif /* defined(CONFIG_BCH) */
#endif
#ifdef HAVE_USBHOST