Lines Matching refs:nand_version
218 int nand_version; member
613 ctrl->nand_version = nand_readreg(ctrl, 0) & 0xffff; in brcmnand_revision_init()
616 if (ctrl->nand_version < 0x0201) { in brcmnand_revision_init()
618 ctrl->nand_version); in brcmnand_revision_init()
623 if (ctrl->nand_version >= 0x0702) in brcmnand_revision_init()
625 else if (ctrl->nand_version == 0x0701) in brcmnand_revision_init()
627 else if (ctrl->nand_version >= 0x0600) in brcmnand_revision_init()
629 else if (ctrl->nand_version >= 0x0500) in brcmnand_revision_init()
631 else if (ctrl->nand_version >= 0x0303) in brcmnand_revision_init()
633 else if (ctrl->nand_version >= 0x0201) in brcmnand_revision_init()
637 if (ctrl->nand_version >= 0x0701) in brcmnand_revision_init()
643 if (ctrl->nand_version >= 0x0701) { in brcmnand_revision_init()
649 if (ctrl->nand_version >= 0x0303 && in brcmnand_revision_init()
650 ctrl->nand_version <= 0x0500) in brcmnand_revision_init()
655 if (ctrl->nand_version >= 0x0701) { in brcmnand_revision_init()
660 if (ctrl->nand_version >= 0x0304) in brcmnand_revision_init()
662 else if (ctrl->nand_version >= 0x0202) in brcmnand_revision_init()
667 if (ctrl->nand_version >= 0x0202) in brcmnand_revision_init()
672 if (ctrl->nand_version >= 0x0600) in brcmnand_revision_init()
674 else if (ctrl->nand_version >= 0x0400) in brcmnand_revision_init()
676 else if (ctrl->nand_version >= 0x0202) in brcmnand_revision_init()
681 if (ctrl->nand_version < 0x0400) { in brcmnand_revision_init()
682 if (ctrl->nand_version < 0x0202) in brcmnand_revision_init()
691 if (ctrl->nand_version == 0x0702) in brcmnand_revision_init()
693 else if (ctrl->nand_version >= 0x0600) in brcmnand_revision_init()
695 else if (ctrl->nand_version >= 0x0500) in brcmnand_revision_init()
701 if (ctrl->nand_version >= 0x0600 && ctrl->nand_version != 0x0601) in brcmnand_revision_init()
708 if (ctrl->nand_version >= 0x0700) in brcmnand_revision_init()
711 if (ctrl->nand_version >= 0x0500) in brcmnand_revision_init()
714 if (ctrl->nand_version >= 0x0700) in brcmnand_revision_init()
725 if (ctrl->nand_version >= 0x0703) in brcmnand_flash_dma_revision_init()
727 else if (ctrl->nand_version == 0x0602) in brcmnand_flash_dma_revision_init()
859 if (ctrl->nand_version < 0x0600) in brcmnand_count_corrected()
874 if (ctrl->nand_version == 0x0702) in brcmnand_wr_corr_thresh()
876 else if (ctrl->nand_version >= 0x0600) in brcmnand_wr_corr_thresh()
878 else if (ctrl->nand_version >= 0x0500) in brcmnand_wr_corr_thresh()
883 if (ctrl->nand_version >= 0x0702) { in brcmnand_wr_corr_thresh()
887 } else if (ctrl->nand_version >= 0x0600) { in brcmnand_wr_corr_thresh()
897 if (ctrl->nand_version < 0x0602) in brcmnand_cmd_shift()
928 if (ctrl->nand_version == 0x0702) in brcmnand_spare_area_mask()
930 else if (ctrl->nand_version >= 0x0600) in brcmnand_spare_area_mask()
932 else if (ctrl->nand_version >= 0x0303) in brcmnand_spare_area_mask()
943 u32 mask = (ctrl->nand_version >= 0x0600) ? 0x1f : 0x0f; in brcmnand_ecc_level_mask()
948 if (ctrl->nand_version >= 0x0702) in brcmnand_ecc_level_mask()
975 if (ctrl->nand_version >= 0x0702) in brcmnand_sector_1k_shift()
977 else if (ctrl->nand_version >= 0x0600) in brcmnand_sector_1k_shift()
979 else if (ctrl->nand_version >= 0x0500) in brcmnand_sector_1k_shift()
1126 if (ctrl->nand_version <= 0x0701) in is_hamming_ecc()
1983 if (ctrl->nand_version > 0x0602) { in brcmnand_dma_run()
2182 if ((ctrl->nand_version == 0x0700) || in brcmnand_read()
2183 (ctrl->nand_version == 0x0701)) { in brcmnand_read()
2194 if (ctrl->nand_version < 0x0702) { in brcmnand_read()
2485 if (ctrl->nand_version >= 0x0302) { in brcmnand_set_cfg()
2653 if (ctrl->nand_version >= 0x0702) in brcmnand_setup_dev()
3008 if (ctrl->nand_version >= 0x0700) in brcmnand_probe()