summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2008-10-30 16:21:00 -0500
committerAndy Fleming <afleming@freescale.com>2009-02-16 18:07:40 -0600
commitabb5466ccf4ce50f412d459586f4f4b81cb73ac3 (patch)
tree0b4af419109659e21ada81fb38a68ac8e041b4eb
parentb2e2ed0233a5ef299361abec4fbdaefb63456eff (diff)
downloadu-boot-imx-abb5466ccf4ce50f412d459586f4f4b81cb73ac3.zip
u-boot-imx-abb5466ccf4ce50f412d459586f4f4b81cb73ac3.tar.gz
u-boot-imx-abb5466ccf4ce50f412d459586f4f4b81cb73ac3.tar.bz2
Convert mmc_init to mmc_legacy_init
This is to get it out of the way of incoming MMC framework Signed-off-by: Andy Fleming <afleming@freescale.com>
-rw-r--r--common/cmd_mmc.c2
-rw-r--r--cpu/arm720t/lpc2292/mmc.c4
-rw-r--r--cpu/pxa/mmc.c2
-rw-r--r--drivers/mmc/atmel_mci.c2
-rw-r--r--include/mmc.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 473825e..75a75e5 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -27,7 +27,7 @@
int do_mmc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
- if (mmc_init (1) != 0) {
+ if (mmc_legacy_init (1) != 0) {
printf ("No MMC card found\n");
return 1;
}
diff --git a/cpu/arm720t/lpc2292/mmc.c b/cpu/arm720t/lpc2292/mmc.c
index 792a884..beaffe9 100644
--- a/cpu/arm720t/lpc2292/mmc.c
+++ b/cpu/arm720t/lpc2292/mmc.c
@@ -93,12 +93,12 @@ static int mmc_hw_get_parameters(void)
return 0;
}
-int mmc_init(int verbose)
+int mmc_legacy_init(int verbose)
{
int ret = -ENODEV;
if (verbose)
- printf("mmc_init\n");
+ printf("mmc_legacy_init\n");
spi_init();
/* this meeds to be done twice */
diff --git a/cpu/pxa/mmc.c b/cpu/pxa/mmc.c
index 1f0d488..7199e89 100644
--- a/cpu/pxa/mmc.c
+++ b/cpu/pxa/mmc.c
@@ -543,7 +543,7 @@ static void mmc_decode_csd(uint32_t * resp)
int
/****************************************************/
-mmc_init(int verbose)
+mmc_legacy_init(int verbose)
/****************************************************/
{
int retries, rc = -ENODEV;
diff --git a/drivers/mmc/atmel_mci.c b/drivers/mmc/atmel_mci.c
index 4028256..3946ffe 100644
--- a/drivers/mmc/atmel_mci.c
+++ b/drivers/mmc/atmel_mci.c
@@ -463,7 +463,7 @@ static void mci_set_data_timeout(struct mmc_csd *csd)
dtocyc << shift, dtor);
}
-int mmc_init(int verbose)
+int mmc_legacy_init(int verbose)
{
struct mmc_cid cid;
struct mmc_csd csd;
diff --git a/include/mmc.h b/include/mmc.h
index 26b9553..47cc053 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -49,7 +49,7 @@
#define SD_CMD_APP_SET_BUS_WIDTH 6
#define SD_CMD_APP_SEND_OP_COND 41
-int mmc_init(int verbose);
+int mmc_legacy_init(int verbose);
int mmc_read(ulong src, uchar *dst, int size);
int mmc_write(uchar *src, ulong dst, int size);