summaryrefslogtreecommitdiff
path: root/api_examples
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@semihalf.com>2008-07-28 18:38:25 (GMT)
committerWolfgang Denk <wd@denx.de>2008-07-29 23:01:28 (GMT)
commit8d87589e8e874df7120a3d9667f051bc33bac250 (patch)
tree8ee4d94e214d59975feafe1280653f2f8266b7b3 /api_examples
parent6b73b754f782e1ecce5048bf20b22ce56a07a5b8 (diff)
downloadu-boot-fsl-qoriq-8d87589e8e874df7120a3d9667f051bc33bac250.tar.xz
API: Teach the storage layer about SATA and MMC options.
Signed-off-by: Rafal Czubak <rcz@semihalf.com> Acked-by: Rafal Jaworowski <raj@semihalf.com>
Diffstat (limited to 'api_examples')
-rw-r--r--api_examples/demo.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/api_examples/demo.c b/api_examples/demo.c
index a842448..69ac318 100644
--- a/api_examples/demo.c
+++ b/api_examples/demo.c
@@ -226,20 +226,23 @@ void test_dump_si(struct sys_info *si)
}
}
-static char * test_stor_typ(int type)
+static char *test_stor_typ(int type)
{
if (type & DT_STOR_IDE)
return "IDE";
+ if (type & DT_STOR_MMC)
+ return "MMC";
+
+ if (type & DT_STOR_SATA)
+ return "SATA";
+
if (type & DT_STOR_SCSI)
return "SCSI";
if (type & DT_STOR_USB)
return "USB";
- if (type & DT_STOR_MMC);
- return "MMC";
-
return "Unknown";
}