Lines Matching refs:nfi_writel

228 static inline void nfi_writel(struct mtk_nfc *nfc, u32 val, u32 reg)  in nfi_writel()  function
265 nfi_writel(nfc, CON_FIFO_FLUSH | CON_NFI_RST, NFI_CON); in mtk_nfc_hw_reset()
276 nfi_writel(nfc, CON_FIFO_FLUSH | CON_NFI_RST, NFI_CON); in mtk_nfc_hw_reset()
286 nfi_writel(nfc, command, NFI_CMD); in mtk_nfc_send_command()
304 nfi_writel(nfc, addr, NFI_COLADDR); in mtk_nfc_send_address()
305 nfi_writel(nfc, 0, NFI_ROWADDR); in mtk_nfc_send_address()
381 nfi_writel(nfc, fmt, NFI_PAGEFMT); in mtk_nfc_hw_runtime_config()
417 nfi_writel(nfc, reg, NFI_CON); in mtk_nfc_read_byte()
448 nfi_writel(nfc, reg, NFI_CON); in mtk_nfc_write_byte()
506 nfi_writel(nfc, mtk_nand->sels[cs], NFI_CSEL); in mtk_nfc_select_target()
620 nfi_writel(nfc, temp, NFI_DEBUG_CON1); in mtk_nfc_setup_interface()
636 nfi_writel(nfc, trlt, NFI_ACCCON); in mtk_nfc_setup_interface()
769 nfi_writel(nfc, vall, NFI_FDML(i)); in mtk_nfc_write_fdm()
770 nfi_writel(nfc, valm, NFI_FDMM(i)); in mtk_nfc_write_fdm()
793 nfi_writel(nfc, chip->ecc.steps << CON_SEC_SHIFT, NFI_CON); in mtk_nfc_do_write_page()
794 nfi_writel(nfc, lower_32_bits(addr), NFI_STRADDR); in mtk_nfc_do_write_page()
800 nfi_writel(nfc, reg, NFI_CON); in mtk_nfc_do_write_page()
820 nfi_writel(nfc, 0, NFI_CON); in mtk_nfc_do_write_page()
997 nfi_writel(nfc, sectors << CON_SEC_SHIFT, NFI_CON); in mtk_nfc_read_subpage()
999 nfi_writel(nfc, lower_32_bits(addr), NFI_STRADDR); in mtk_nfc_read_subpage()
1003 nfi_writel(nfc, reg, NFI_CON); in mtk_nfc_read_subpage()
1033 nfi_writel(nfc, 0, NFI_CON); in mtk_nfc_read_subpage()
1096 nfi_writel(nfc, PAGEFMT_8K_16K, NFI_PAGEFMT); in mtk_nfc_hw_init()
1101 nfi_writel(nfc, 0, NFI_INTR_EN); in mtk_nfc_hw_init()