drvers: block: blk-uclass: add SPI Flash blk devices

1.Add SPI Flash blk devices;
2.Remove unused RKSFC blk devices.

Change-Id: I0c570798875b4dddf7dfc651f992d2e8eb725228
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
This commit is contained in:
Dingqiang Lin 2018-07-26 23:12:33 +08:00 committed by Kever Yang
parent 3f360b7931
commit 3872c3f472
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,8 @@ 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",
[IF_TYPE_SPINAND] = "spinand",
[IF_TYPE_SPINOR] = "spinor",
};
static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
@ -40,7 +41,8 @@ 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_SPINAND] = UCLASS_SPI_FLASH,
[IF_TYPE_SPINOR] = UCLASS_SPI_FLASH,
[IF_TYPE_SYSTEMACE] = UCLASS_INVALID,
};

View File

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