mmc_writel
mmc_writel(host, REG_HWRST, 0);
mmc_writel(host, REG_HWRST, 1);
mmc_writel(host, REG_BLKSZ, data->blksz);
mmc_writel(host, REG_BCNTR, data->blksz * data->blocks);
mmc_writel(host, REG_IMASK, host->sdio_imask | imask);
mmc_writel(host, REG_CARG, cmd->arg);
mmc_writel(host, REG_CMDR, cmd_val);
mmc_writel(host, REG_GCTRL, SDXC_HARDWARE_RESET);
mmc_writel(host, REG_FTRGL, 0x20070008);
mmc_writel(host, REG_TMOUT, 0xffffffff);
mmc_writel(host, REG_IMASK, host->sdio_imask);
mmc_writel(host, REG_RINTR, 0xffffffff);
mmc_writel(host, REG_DBGC, 0xdeb);
mmc_writel(host, REG_FUNS, SDXC_CEATA_ON);
mmc_writel(host, REG_DLBA, host->sg_dma >> host->cfg->idma_des_shift);
mmc_writel(host, REG_GCTRL, rval);
mmc_writel(host, REG_GCTRL, rval);
mmc_writel(host, REG_GCTRL, rval);
mmc_writel(host, REG_DMAC, SDXC_IDMAC_SOFT_RESET);
mmc_writel(host, REG_IDIE, SDXC_IDMAC_RECEIVE_INTERRUPT);
mmc_writel(host, REG_DMAC,
mmc_writel(host, REG_CARG, arg);
mmc_writel(host, REG_CMDR, cmd_val);
mmc_writel(host, REG_RINTR, 0xffff);
mmc_writel(host, REG_IMASK, host->sdio_imask);
mmc_writel(host, REG_IDIE, 0);
mmc_writel(host, REG_IDST, 0x337);
mmc_writel(host, REG_DMAC, 0);
mmc_writel(host, REG_GCTRL, rval);
mmc_writel(host, REG_GCTRL, rval);
mmc_writel(host, REG_GCTRL, rval);
mmc_writel(host, REG_RINTR, 0xffff);
mmc_writel(host, REG_IMASK,
mmc_writel(host, REG_RINTR, msk_int);
mmc_writel(host, REG_IDST, idma_int);
mmc_writel(host, REG_CLKCR, rval);
mmc_writel(host, REG_CMDR, rval);
mmc_writel(host, REG_RINTR,
mmc_writel(host, REG_CLKCR, rval & ~SDXC_MASK_DATA0);
mmc_writel(host, REG_CLKCR, rval);
mmc_writel(host, REG_SD_NTSR, rval);
mmc_writel(host, REG_WIDTH, SDXC_WIDTH1);
mmc_writel(host, REG_WIDTH, SDXC_WIDTH4);
mmc_writel(host, REG_WIDTH, SDXC_WIDTH8);
mmc_writel(host, REG_GCTRL, rval);
mmc_writel(host, REG_IMASK, imask);