summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonic Zhang <Sonic.Zhang@analog.com>2008-12-09 23:20:18 -0500
committerWolfgang Denk <wd@denx.de>2008-12-10 09:21:48 +0100
commit8c5170a7d088601d5f30d85093388dab1f1e8ec0 (patch)
tree2f5d9c58830626261ddcb66626494884eb61c3e1
parent97a24a78ee6f34b89b821cb70eda1cf34aa11d97 (diff)
downloadu-boot-imx-8c5170a7d088601d5f30d85093388dab1f1e8ec0.zip
u-boot-imx-8c5170a7d088601d5f30d85093388dab1f1e8ec0.tar.gz
u-boot-imx-8c5170a7d088601d5f30d85093388dab1f1e8ec0.tar.bz2
fs/fat: handle FAT on SATA
The FAT file system driver should also handle FAT on SATA devices. Signed-off-by: Sonic Zhang <Sonic.Zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--fs/fat/fat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 06eabc3..a9dde7d 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -84,6 +84,7 @@ fat_register_device(block_dev_desc_t *dev_desc, int part_no)
return -1;
}
#if (defined(CONFIG_CMD_IDE) || \
+ defined(CONFIG_CMD_SATA) || \
defined(CONFIG_CMD_SCSI) || \
defined(CONFIG_CMD_USB) || \
defined(CONFIG_MMC) || \
@@ -980,12 +981,14 @@ file_fat_detectfs(void)
return 1;
}
#if defined(CONFIG_CMD_IDE) || \
+ defined(CONFIG_CMD_SATA) || \
defined(CONFIG_CMD_SCSI) || \
defined(CONFIG_CMD_USB) || \
defined(CONFIG_MMC)
printf("Interface: ");
switch(cur_dev->if_type) {
case IF_TYPE_IDE : printf("IDE"); break;
+ case IF_TYPE_SATA : printf("SATA"); break;
case IF_TYPE_SCSI : printf("SCSI"); break;
case IF_TYPE_ATAPI : printf("ATAPI"); break;
case IF_TYPE_USB : printf("USB"); break;