Lines Matching refs:nfc_write
131 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write() function
142 nfc_write(mtd, reg, nfc_read(mtd, reg) | bits); in nfc_set()
148 nfc_write(mtd, reg, nfc_read(mtd, reg) & ~bits); in nfc_clear()
154 nfc_write(mtd, NFC_FLASH_ADDR, addr); in mpc5121_nfc_send_addr()
155 nfc_write(mtd, NFC_CONFIG2, NFC_ADDRESS); in mpc5121_nfc_send_addr()
162 nfc_write(mtd, NFC_FLASH_CMD, cmd); in mpc5121_nfc_send_cmd()
163 nfc_write(mtd, NFC_CONFIG2, NFC_COMMAND); in mpc5121_nfc_send_cmd()
171 nfc_write(mtd, NFC_CONFIG2, NFC_INPUT); in mpc5121_nfc_send_prog_page()
179 nfc_write(mtd, NFC_CONFIG2, NFC_OUTPUT); in mpc5121_nfc_send_read_page()
187 nfc_write(mtd, NFC_CONFIG2, NFC_ID); in mpc5121_nfc_send_read_id()
195 nfc_write(mtd, NFC_CONFIG2, NFC_STATUS); in mpc5121_nfc_send_read_status()
739 nfc_write(mtd, NFC_CONFIG, NFC_BLS_UNLOCKED); in mpc5121_nfc_probe()
742 nfc_write(mtd, NFC_UNLOCKSTART_BLK0, 0x0000); in mpc5121_nfc_probe()
743 nfc_write(mtd, NFC_UNLOCKEND_BLK0, 0xFFFF); in mpc5121_nfc_probe()
744 nfc_write(mtd, NFC_WRPROT, NFC_WPC_UNLOCK); in mpc5121_nfc_probe()
751 nfc_write(mtd, NFC_CONFIG1, NFC_BIG_ENDIAN | NFC_INT_MASK | in mpc5121_nfc_probe()
755 nfc_write(mtd, NFC_SPAS, mtd->oobsize >> 1); in mpc5121_nfc_probe()