On Tue, Mar 17, 2015 at 09:04:43AM +0000, Haojian Zhuang wrote:
+static void disable_boot(struct dw_mci *host) +{
- int timeout = 0;
- unsigned int data;
- mci_writel(host, CTRL, SDMMC_CTRL_FIFO_RESET);
- mci_writel(host, CMD, SDMMC_CMD_START | SDMMC_CMD_DISABLE_BOOT);
- while (1) {
data = mci_readl(host, CMD) & 0x80000000;
if (data == 0)
break;
This looks like something generic which other systems might be able to use and not specific to the HiSilicon SoC - does this belong in either the Designware code or the subsystem code?