Lines Matching refs:nand_version
222 int nand_version; member
663 ctrl->nand_version = nand_readreg(ctrl, 0) & 0xffff; in brcmnand_revision_init()
666 if (ctrl->nand_version < 0x0201) { in brcmnand_revision_init()
668 ctrl->nand_version); in brcmnand_revision_init()
673 if (ctrl->nand_version >= 0x0702) in brcmnand_revision_init()
675 else if (ctrl->nand_version == 0x0701) in brcmnand_revision_init()
677 else if (ctrl->nand_version >= 0x0600) in brcmnand_revision_init()
679 else if (ctrl->nand_version >= 0x0500) in brcmnand_revision_init()
681 else if (ctrl->nand_version >= 0x0303) in brcmnand_revision_init()
683 else if (ctrl->nand_version >= 0x0201) in brcmnand_revision_init()
687 if (ctrl->nand_version >= 0x0701) in brcmnand_revision_init()
693 if (ctrl->nand_version >= 0x0701) { in brcmnand_revision_init()
699 if (ctrl->nand_version >= 0x0303 && in brcmnand_revision_init()
700 ctrl->nand_version <= 0x0500) in brcmnand_revision_init()
705 if (ctrl->nand_version >= 0x0701) { in brcmnand_revision_init()
710 if (ctrl->nand_version >= 0x0304) in brcmnand_revision_init()
712 else if (ctrl->nand_version >= 0x0202) in brcmnand_revision_init()
717 if (ctrl->nand_version >= 0x0202) in brcmnand_revision_init()
722 if (ctrl->nand_version >= 0x0600) in brcmnand_revision_init()
724 else if (ctrl->nand_version >= 0x0400) in brcmnand_revision_init()
726 else if (ctrl->nand_version >= 0x0202) in brcmnand_revision_init()
731 if (ctrl->nand_version < 0x0400) { in brcmnand_revision_init()
732 if (ctrl->nand_version < 0x0202) in brcmnand_revision_init()
741 if (ctrl->nand_version == 0x0702) in brcmnand_revision_init()
743 else if (ctrl->nand_version >= 0x0600) in brcmnand_revision_init()
745 else if (ctrl->nand_version >= 0x0500) in brcmnand_revision_init()
751 if (ctrl->nand_version >= 0x0600 && ctrl->nand_version != 0x0601) in brcmnand_revision_init()
758 if (ctrl->nand_version >= 0x0700) in brcmnand_revision_init()
761 if (ctrl->nand_version >= 0x0500) in brcmnand_revision_init()
764 if (ctrl->nand_version >= 0x0700) in brcmnand_revision_init()
770 if (ctrl->nand_version == 0x0702) in brcmnand_revision_init()
781 if (ctrl->nand_version >= 0x0703) in brcmnand_flash_dma_revision_init()
783 else if (ctrl->nand_version == 0x0602) in brcmnand_flash_dma_revision_init()
920 if (ctrl->nand_version < 0x0600) in brcmnand_count_corrected()
935 if (ctrl->nand_version == 0x0702) in brcmnand_wr_corr_thresh()
937 else if (ctrl->nand_version >= 0x0600) in brcmnand_wr_corr_thresh()
939 else if (ctrl->nand_version >= 0x0500) in brcmnand_wr_corr_thresh()
944 if (ctrl->nand_version >= 0x0702) { in brcmnand_wr_corr_thresh()
948 } else if (ctrl->nand_version >= 0x0600) { in brcmnand_wr_corr_thresh()
961 if (ctrl->nand_version == 0x0304 && brcmnand_non_mmio_ops(ctrl)) in brcmnand_cmd_shift()
964 if (ctrl->nand_version < 0x0602) in brcmnand_cmd_shift()
971 if (ctrl->nand_version == 0x0702) in brcmnand_spare_area_mask()
973 else if (ctrl->nand_version >= 0x0600) in brcmnand_spare_area_mask()
975 else if (ctrl->nand_version >= 0x0303) in brcmnand_spare_area_mask()
983 u32 mask = (ctrl->nand_version >= 0x0600) ? 0x1f : 0x0f; in brcmnand_ecc_level_mask()
988 if (ctrl->nand_version == 0x0702) in brcmnand_ecc_level_mask()
1015 if (ctrl->nand_version >= 0x0702) in brcmnand_sector_1k_shift()
1017 else if (ctrl->nand_version >= 0x0600) in brcmnand_sector_1k_shift()
1019 else if (ctrl->nand_version >= 0x0500) in brcmnand_sector_1k_shift()
1174 if (ctrl->nand_version <= 0x0701) in is_hamming_ecc()
2097 if (ctrl->nand_version > 0x0602) { in brcmnand_dma_run()
2297 if ((ctrl->nand_version == 0x0700) || in brcmnand_read()
2298 (ctrl->nand_version == 0x0701)) { in brcmnand_read()
2309 if (ctrl->nand_version < 0x0702) { in brcmnand_read()
2604 if (ctrl->nand_version >= 0x0302) { in brcmnand_set_cfg()
2775 if (ctrl->nand_version >= 0x0702) in brcmnand_setup_dev()
3135 if (ctrl->nand_version >= 0x0700) in brcmnand_probe()