Регистры Allwinner H616

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


NDFC_ERR_CNT_N
5.2.5. NDFC Error Counter Register(N from 0 to 7) - адрес: 0x4061004 (смещение: 0x0050+0x04*N)

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



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

  ECC_COR_NUM2

Bits 31 : 24
R
0x0

ECC Corrected Bits Number for ECC Data Block [N*0x04+3]
00000000: No corrected bits
00000001: 1 corrected bit
00000010: 2 corrected bits
etc
01010000: 80 corrected bits
Others: Reserved

Note: 1 ECC Data Block = 1024 byte


  ECC_COR_NUM2

Bits 23 : 16
R
0x0

ECC Corrected Bits Number for ECC Data Block [N*0x04+2]
00000000: No corrected bits
00000001: 1 corrected bit
00000010: 2 corrected bits
etc
01010000: 80 corrected bits
Others: Reserved


  ECC_COR_NUM1

Bits 15 : 8
R
0x0

ECC Corrected Bits Number for ECC Data Block [N*0x04+1]
00000000: No corrected bits
00000001: 1 corrected bit
00000010: 2 corrected bits
etc
01010000: 80 corrected bits
Others: Reserved


  ECC_COR_NUM0

Bits 7 : 0
R
0x0

ECC Corrected Bits Number for ECC Data Block [N*0x04]
00000000: No corrected bits
00000001: 1 corrected bit
00000010: 2 corrected bits
etc
01010000: 80 corrected bits
Others: Reserved



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

md 4061004 1



Bit fields structure

typedef union  ndfc_err_cnt_n
{
  struct
  {
   unsigned ecc_cor_num0 : 8;
   unsigned ecc_cor_num1 : 8;
   unsigned ecc_cor_num2 : 8;
   unsigned ecc_cor_num2 : 8;
  } b;
   unsigned long w;
} NDFC_ERR_CNT_N
   

Allwinner H616 Manual