drvers: block: blk-uclass: add rksfc block interface

Change-Id: Ia9244aa6d5829b7a67fadab18f655fa7a7c5cfe1
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
This commit is contained in:
Dingqiang Lin 2018-04-26 14:40:18 +08:00 committed by Kever Yang
parent d5f538dc02
commit 2c3e7d2a83
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ static const char *if_typename_str[IF_TYPE_COUNT] = {
[IF_TYPE_SYSTEMACE] = "ace",
[IF_TYPE_NVME] = "nvme",
[IF_TYPE_RKNAND] = "rknand",
[IF_TYPE_RKSFC] = "rksfc",
};
static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
@ -39,6 +40,7 @@ static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
[IF_TYPE_HOST] = UCLASS_ROOT,
[IF_TYPE_NVME] = UCLASS_NVME,
[IF_TYPE_RKNAND] = UCLASS_RKNAND,
[IF_TYPE_RKSFC] = UCLASS_SPI_FLASH,
[IF_TYPE_SYSTEMACE] = UCLASS_INVALID,
};

View File

@ -35,6 +35,7 @@ enum if_type {
IF_TYPE_SYSTEMACE,
IF_TYPE_NVME,
IF_TYPE_RKNAND,
IF_TYPE_RKSFC,
IF_TYPE_SPINAND,
IF_TYPE_SPINOR,