NDFC_ECC_CTL Контроллер Nand Flash (NDFC): список регистров 31 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 16 15 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 00 Unused Bit 31NDFC_RANDOM_SEED Bits 30 : 16R/W 0x4a80 The seed value for randomize engine. It is only active when NDFC_RANDOM_EN is set to 1 . NDFC_ECC_MODE Bits 15 : 8R/W 0x0 00000000: BCH-16 NDFC_RANDOM_SIZE Bit 7R/W 0x0 0: ECC block size NDFC_RANDOM_DIRECTION Bit 6R/W 0x0 0: LSB first NDFC_RANDOM_EN Bit 5R/W 0x0 0: Disable Data Randomize NDFC_ECC_EXCEPTION Bit 4R/W 0x0 0: Normal ECC NDFC_ECC_PIPELINE Bit 3R/W 0x1 Pipeline function enable or disable for batch command Unused Bits 2 : 1NDFC_ECC_EN Bit 0R/W 0x0 0: ECC is OFF Команда U-Boot для чтения регистра md 4011034 1Bit fields structuretypedef union ndfc_ecc_ctl { struct { unsigned ndfc_ecc_en : 1; unsigned unused0 : 2; unsigned ndfc_ecc_pipeline : 1; unsigned ndfc_ecc_exception : 1; unsigned ndfc_random_en : 1; unsigned ndfc_random_direction : 1; unsigned ndfc_random_size : 1; unsigned ndfc_ecc_mode : 8; unsigned ndfc_random_seed : 15; unsigned unused1 : 1; } b; unsigned long w; } NDFC_ECC_CTL |