diff --git a/common/boot_rkimg.c b/common/boot_rkimg.c index cc92903e47..2545ca90d4 100644 --- a/common/boot_rkimg.c +++ b/common/boot_rkimg.c @@ -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