#include <asm/arch/sc8810_reg_global.h>
#include <asm/arch/sc8810_module_config.h>
#endif
+#include "card_sdio.h"
static struct list_head mmc_devices;
static int cur_dev_num = -1;
#define MMCSD_SECTOR_SIZE 512
int mmc_legacy_init(int dev)
{
+ int rc = -ENODEV;
printf("mmc_legacy_init\n");
- int retries, rc = -ENODEV;
- uint32_t cid_resp[4];
- uint32_t *resp;
- uint16_t rca = 0;
if(TRUE == Emmc_Init())
{
#endif
#ifdef CONFIG_GENERIC_MMC
-int mmc_sdcard_init()
+int mmc_sdcard_init(void)
{
#if defined(CONFIG_SC8830) || defined(CONFIG_SC9630)
if (TRUE == SDCARD_PowerOn()) {