mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-12 21:46:05 -04:00
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>
This commit is contained in:
parent
b2e2ed0233
commit
abb5466ccf
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
int do_mmc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
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");
|
printf ("No MMC card found\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -93,12 +93,12 @@ static int mmc_hw_get_parameters(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int mmc_init(int verbose)
|
int mmc_legacy_init(int verbose)
|
||||||
{
|
{
|
||||||
int ret = -ENODEV;
|
int ret = -ENODEV;
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf("mmc_init\n");
|
printf("mmc_legacy_init\n");
|
||||||
|
|
||||||
spi_init();
|
spi_init();
|
||||||
/* this meeds to be done twice */
|
/* this meeds to be done twice */
|
||||||
|
@ -543,7 +543,7 @@ static void mmc_decode_csd(uint32_t * resp)
|
|||||||
|
|
||||||
int
|
int
|
||||||
/****************************************************/
|
/****************************************************/
|
||||||
mmc_init(int verbose)
|
mmc_legacy_init(int verbose)
|
||||||
/****************************************************/
|
/****************************************************/
|
||||||
{
|
{
|
||||||
int retries, rc = -ENODEV;
|
int retries, rc = -ENODEV;
|
||||||
|
@ -463,7 +463,7 @@ static void mci_set_data_timeout(struct mmc_csd *csd)
|
|||||||
dtocyc << shift, dtor);
|
dtocyc << shift, dtor);
|
||||||
}
|
}
|
||||||
|
|
||||||
int mmc_init(int verbose)
|
int mmc_legacy_init(int verbose)
|
||||||
{
|
{
|
||||||
struct mmc_cid cid;
|
struct mmc_cid cid;
|
||||||
struct mmc_csd csd;
|
struct mmc_csd csd;
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
#define SD_CMD_APP_SET_BUS_WIDTH 6
|
#define SD_CMD_APP_SET_BUS_WIDTH 6
|
||||||
#define SD_CMD_APP_SEND_OP_COND 41
|
#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_read(ulong src, uchar *dst, int size);
|
||||||
int mmc_write(uchar *src, ulong dst, int size);
|
int mmc_write(uchar *src, ulong dst, int size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user