diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-22 11:09:59 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-06-28 22:40:15 +0200 |
commit | 341188b9ccaa8d4462d772cc067aca8d7618633a (patch) | |
tree | d5a386491aed035ad5bf7667be7a3aa28a165123 /cpu/at32ap | |
parent | fa60edfc4c952626e048c0e065f654b3c1822fa5 (diff) | |
download | u-boot-341188b9ccaa8d4462d772cc067aca8d7618633a.zip u-boot-341188b9ccaa8d4462d772cc067aca8d7618633a.tar.gz u-boot-341188b9ccaa8d4462d772cc067aca8d7618633a.tar.bz2 |
MMC: Consolidate MMC/SD command definitions
This moves the MMC and SD Card command definitions from
include/asm/arch/mmc.h into include/mmc.h. These definitions are
given by the MMC and SD Card standards, not by any particular
architecture.
There's a lot more room for consolidation in the MMC drivers which
I'm hoping to get done eventually, but this patch is a start.
Compile-tested for all avr32 boards as well as lpc2292sodimm and
lubbock. This should cover all three mmc drivers in the tree.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'cpu/at32ap')
-rw-r--r-- | cpu/at32ap/atmel_mci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/at32ap/atmel_mci.c b/cpu/at32ap/atmel_mci.c index 3795add..61aa184 100644 --- a/cpu/at32ap/atmel_mci.c +++ b/cpu/at32ap/atmel_mci.c @@ -349,7 +349,7 @@ static int sd_init_card(struct mmc_cid *cid, int verbose) mmc_idle_cards(); for (i = 0; i < 1000; i++) { - ret = mmc_acmd(MMC_ACMD_SD_SEND_OP_COND, CFG_MMC_OP_COND, + ret = mmc_acmd(SD_CMD_APP_SEND_OP_COND, CFG_MMC_OP_COND, resp, R3 | NID); if (ret || (resp[0] & 0x80000000)) break; @@ -367,7 +367,7 @@ static int sd_init_card(struct mmc_cid *cid, int verbose) mmc_dump_cid(cid); /* Get RCA of the card that responded */ - ret = mmc_cmd(MMC_CMD_SD_SEND_RELATIVE_ADDR, 0, resp, R6 | NCR); + ret = mmc_cmd(SD_CMD_SEND_RELATIVE_ADDR, 0, resp, R6 | NCR); if (ret) return ret; |