summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sdmmc-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-09-07 00:53:21 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-09-07 00:53:21 +0200
commit90007da3e997a3bb585dca2b58b2337a178b3f53 (patch)
tree9c2b49b93f4e7e36eaab54c188e6fdf8989e2fae /firmware/target/arm/imx233/sdmmc-imx233.c
parent070e27933c71c9dc58e411d365e25fabb29138fa (diff)
downloadrockbox-90007da3e997a3bb585dca2b58b2337a178b3f53.tar.gz
rockbox-90007da3e997a3bb585dca2b58b2337a178b3f53.tar.bz2
rockbox-90007da3e997a3bb585dca2b58b2337a178b3f53.zip
imx233: implement mmc card info
This one is a bit strange: our codebase just don't use it if there is both SD and MMC, so this missing function got unnoticed so far. Change-Id: Ifea4bb5140477b7637d033737594259cc44fb10e
Diffstat (limited to 'firmware/target/arm/imx233/sdmmc-imx233.c')
-rw-r--r--firmware/target/arm/imx233/sdmmc-imx233.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sdmmc-imx233.c b/firmware/target/arm/imx233/sdmmc-imx233.c
index 7bc6d70cc9..708e3c2464 100644
--- a/firmware/target/arm/imx233/sdmmc-imx233.c
+++ b/firmware/target/arm/imx233/sdmmc-imx233.c
@@ -982,4 +982,9 @@ int mmc_write_sectors(IF_MD(int mmc_drive,) unsigned long start, int count, cons
return transfer_sectors(mmc_map[mmc_drive], start, count, (void *)buf, false);
}
+tCardInfo *mmc_card_info(int card_no)
+{
+ return &SDMMC_INFO(mmc_map[card_no]);
+}
+
#endif