nfi_write32
nfi_write32(snf, NFI_CON, 0);
nfi_write32(snf, SNF_STA_CTL1, 0);
nfi_write32(snf, NFI_INTR_EN, 0);
nfi_write32(snf, SNF_PG_CTL1, (op->cmd.opcode << PG_LOAD_CMD_S));
nfi_write32(snf, SNF_PG_CTL2, op_addr);
nfi_write32(snf, SNF_MISC_CTL2,
nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S));
nfi_write32(snf, NFI_STRADDR, buf_dma);
nfi_write32(snf, NFI_INTR_EN, NFI_IRQ_INTR_EN | NFI_IRQ_CUS_PG);
nfi_write32(snf, NFI_CON, 0);
nfi_write32(snf, SNF_STA_CTL1, 0);
nfi_write32(snf, NFI_INTR_EN, 0);
nfi_write32(snf, NFI_INTR_EN, 0);
nfi_write32(ms, SNF_CFG, SPI_MODE);
nfi_write32(snf, NFI_CON, CON_FIFO_FLUSH | CON_NFI_RST);
nfi_write32(snf, SNF_MISC_CTL,
nfi_write32(snf, SNF_MAC_CTL, SF_MAC_EN);
nfi_write32(snf, SNF_MAC_OUTL, outlen);
nfi_write32(snf, SNF_MAC_INL, inlen);
nfi_write32(snf, SNF_MAC_CTL, SF_MAC_EN | SF_TRIG);
nfi_write32(snf, SNF_MAC_CTL, 0);
nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val);
nfi_write32(snf, SNF_GPRAM + (reg_offs & ~3), val);
nfi_write32(snf, NFI_PAGEFMT,
nfi_write32(snf, NFI_FDML(i), vall);
nfi_write32(snf, NFI_FDMM(i), valm);
nfi_write32(snf, SNF_RD_CTL2,
nfi_write32(snf, SNF_RD_CTL3, op_addr);
nfi_write32(snf, SNF_MISC_CTL2,
nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S));
nfi_write32(snf, NFI_STRADDR, buf_dma);
nfi_write32(snf, NFI_INTR_EN, NFI_IRQ_INTR_EN | NFI_IRQ_CUS_READ);