Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


NDFC_ECC_CTL
5.2.5. NDFC ECC Control Register - адрес: 0x4011034 (смещение: 0x0034)

Контроллер Nand Flash (NDFC): список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bit 31

  NDFC_RANDOM_SEED

Bits 30 : 16
R/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 : 8
R/W
0x0

00000000: BCH-16
00000001: BCH-24
00000010: BCH-28
00000011: BCH-32
00000100: BCH-40
00000101: BCH-44
00000110: BCH-48
00000111: BCH-52
00001000: BCH-56
00001001: BCH-60
00001010: BCH-64
00001011: BCH-68
00001100: BCH-72
00001101: BCH-76
00001110: BCH-80
Others : Reserved


  NDFC_RANDOM_SIZE

Bit 7
R/W
0x0

0: ECC block size
1: Page size


  NDFC_RANDOM_DIRECTION

Bit 6
R/W
0x0

0: LSB first
1: MSB first


  NDFC_RANDOM_EN

Bit 5
R/W
0x0

0: Disable Data Randomize
1: Enable Data Randomize


  NDFC_ECC_EXCEPTION

Bit 4
R/W
0x0

0: Normal ECC
1: For ECC, there is an exception. If all data is 0xff or 0x00 for the block. When
reading this page, ECC assumes that it is right. For this case, no error information
is reported.
Note: It is only active when ECC is ON


  NDFC_ECC_PIPELINE

Bit 3
R/W
0x1

Pipeline function enable or disable for batch command
0: Error Correction function no pipeline with next block operation
1: Error Correction pipeline


  Unused

Bits 2 : 1

  NDFC_ECC_EN

Bit 0
R/W
0x0

0: ECC is OFF
1: ECC is ON



Команда U-Boot для чтения регистра

md 4011034 1



Bit fields structure

typedef 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
   

Allwinner H616 Manual