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:
parent
ae20a02c8e
commit
c2717d6fed
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue