common: boot_rkimg: add boot devtype rksfc

Change-Id: I2ec14959aa1cc83ef7edf82944f8235f4db17690
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
This commit is contained in:
Dingqiang Lin 2018-04-26 14:45:09 +08:00 committed by Kever Yang
parent ae20a02c8e
commit c2717d6fed
1 changed files with 4 additions and 1 deletions

View File

@ -166,6 +166,9 @@ int get_bootdev_type(void)
} else if (!strcmp(devtype, "rknand")) {
type = IF_TYPE_RKNAND;
boot_media = "nand";
} else if (!strcmp(devtype, "rksfc")) {
type = IF_TYPE_RKSFC;
boot_media = "spi flash";
} else {
/* Add new to support */
}
@ -177,7 +180,7 @@ int get_bootdev_type(void)
* 2. rknand doesn't need "androidboot.mode=";
*/
if (env_exist("bootargs", "androidboot.mode=charger") ||
(type == IF_TYPE_RKNAND))
(type == IF_TYPE_RKNAND) || (type == IF_TYPE_RKSFC))
snprintf(boot_options, sizeof(boot_options),
"storagemedia=%s", boot_media);
else