summaryrefslogtreecommitdiff
path: root/components/drivers/sdio/block_dev.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-02-28 16:40:40 +0000
committer[email protected] <[email protected]>2012-02-28 16:40:40 +0000
commitdea9c19e5e407f8091da5d6d3c6be71aac2b48d8 (patch)
tree51f042e5414ba6efbc1df72dd8eda10afdce419d /components/drivers/sdio/block_dev.c
parentb2d0a9c146f9c8067e7a191bea224de5b8762f58 (diff)
update SDIO protocol
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1979 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/sdio/block_dev.c')
-rw-r--r--components/drivers/sdio/block_dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/block_dev.c
index 87bd2a1f91..362e1e3a28 100644
--- a/components/drivers/sdio/block_dev.c
+++ b/components/drivers/sdio/block_dev.c
@@ -114,7 +114,7 @@ static rt_err_t rt_mmcsd_req_blk(struct rt_mmcsd_card *card, rt_uint32_t sector,
req.data = &data;
cmd.arg = sector;
- if (!(card->card_type & CARD_TYPE_SDHC))
+ if (!(card->flags & CARD_FLAG_SDHC))
{
cmd.arg <<= 9;
}
@@ -307,7 +307,7 @@ static rt_int32_t mmcsd_set_blksize(struct rt_mmcsd_card *card)
int err;
/* Block-addressed cards ignore MMC_SET_BLOCKLEN. */
- if (card->card_type & CARD_TYPE_SDHC)
+ if (card->flags & CARD_FLAG_SDHC)
return 0;
mmcsd_host_lock(card->host);
@@ -412,7 +412,7 @@ rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card)
blk_dev->geometry.bytes_per_sector = 1<<9;
blk_dev->geometry.block_size = card->card_blksize;
- if (card->card_type | CARD_TYPE_SDHC)
+ if (card->flags & CARD_FLAG_SDHC)
{
blk_dev->geometry.sector_count = (card->csd.c_size + 1) * 1024;
}