Browse Source

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>
Andy Fleming 16 năm trước cách đây
mục cha
commit
abb5466ccf
5 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 1 1
      common/cmd_mmc.c
  2. 2 2
      cpu/arm720t/lpc2292/mmc.c
  3. 1 1
      cpu/pxa/mmc.c
  4. 1 1
      drivers/mmc/atmel_mci.c
  5. 1 1
      include/mmc.h

+ 1 - 1
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;
 	}

+ 2 - 2
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 */

+ 1 - 1
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;

+ 1 - 1
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;

+ 1 - 1
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);