Lines Matching refs:nfi_write32

346 static inline void nfi_write32(struct mtk_snand *snf, u32 reg, u32 val)  in nfi_write32()  function
383 nfi_write32(snf, NFI_CON, CON_FIFO_FLUSH | CON_NFI_RST); in mtk_nfi_reset()
425 nfi_write32(snf, SNF_MISC_CTL, in mtk_snand_mac_reset()
436 nfi_write32(snf, SNF_MAC_CTL, SF_MAC_EN); in mtk_snand_mac_trigger()
437 nfi_write32(snf, SNF_MAC_OUTL, outlen); in mtk_snand_mac_trigger()
438 nfi_write32(snf, SNF_MAC_INL, inlen); in mtk_snand_mac_trigger()
440 nfi_write32(snf, SNF_MAC_CTL, SF_MAC_EN | SF_TRIG); in mtk_snand_mac_trigger()
455 nfi_write32(snf, SNF_MAC_CTL, 0); in mtk_snand_mac_trigger()
483 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val); in mtk_snand_mac_io()
492 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val); in mtk_snand_mac_io()
499 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val); in mtk_snand_mac_io()
508 nfi_write32(snf, SNF_GPRAM + reg_offs - 3, val); in mtk_snand_mac_io()
515 nfi_write32(snf, SNF_GPRAM + (reg_offs & ~3), val); in mtk_snand_mac_io()
613 nfi_write32(snf, NFI_PAGEFMT, in mtk_snand_setup_pagefmt()
823 nfi_write32(snf, NFI_FDML(i), vall); in mtk_snand_write_fdm()
824 nfi_write32(snf, NFI_FDMM(i), valm); in mtk_snand_write_fdm()
903 nfi_write32(snf, SNF_RD_CTL2, in mtk_snand_read_page_cache()
908 nfi_write32(snf, SNF_RD_CTL3, op_addr); in mtk_snand_read_page_cache()
926 nfi_write32(snf, SNF_MISC_CTL2, in mtk_snand_read_page_cache()
934 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S)); in mtk_snand_read_page_cache()
942 nfi_write32(snf, NFI_STRADDR, buf_dma); in mtk_snand_read_page_cache()
950 nfi_write32(snf, NFI_INTR_EN, NFI_IRQ_INTR_EN | NFI_IRQ_CUS_READ); in mtk_snand_read_page_cache()
1039 nfi_write32(snf, NFI_CON, 0); in mtk_snand_read_page_cache()
1044 nfi_write32(snf, SNF_STA_CTL1, 0); in mtk_snand_read_page_cache()
1048 nfi_write32(snf, NFI_INTR_EN, 0); in mtk_snand_read_page_cache()
1102 nfi_write32(snf, SNF_PG_CTL1, (op->cmd.opcode << PG_LOAD_CMD_S)); in mtk_snand_write_page_cache()
1105 nfi_write32(snf, SNF_PG_CTL2, op_addr); in mtk_snand_write_page_cache()
1117 nfi_write32(snf, SNF_MISC_CTL2, in mtk_snand_write_page_cache()
1125 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S)); in mtk_snand_write_page_cache()
1132 nfi_write32(snf, NFI_STRADDR, buf_dma); in mtk_snand_write_page_cache()
1140 nfi_write32(snf, NFI_INTR_EN, NFI_IRQ_INTR_EN | NFI_IRQ_CUS_PG); in mtk_snand_write_page_cache()
1172 nfi_write32(snf, NFI_CON, 0); in mtk_snand_write_page_cache()
1177 nfi_write32(snf, SNF_STA_CTL1, 0); in mtk_snand_write_page_cache()
1181 nfi_write32(snf, NFI_INTR_EN, 0); in mtk_snand_write_page_cache()
1321 nfi_write32(snf, NFI_INTR_EN, 0); in mtk_snand_irq()
1415 nfi_write32(ms, SNF_CFG, SPI_MODE); in mtk_snand_probe()