Регистры Allwinner H616

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


NDFC_USER_DATA_N
5.2.5. NDFC User Data Field Register N (N from 0 to 31) - адрес: 0x4091004 (смещение: 0x0080+0x04*N)

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



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

  USER_DATA

Bits 31 : 0
R/W
0xffffff

All of the user data in one page is stored in NDFC_USER_DATA_N.
The start register address of each ECC DATA BLOCK's user data is determined by
its length configured in NDFC_USER_DATA_LEN_N.
For example:
ECC DATA BLOCK[0] user data len = 8 bytes, address = 0x80
ECC DATA BLOCK[1] user data len = 0 byte,
ECC DATA BLOCK[2] user data len = 4 bytes, address = 0x80+8
ECC DATA BLOCK[3] user data len = 4 bytes, address = 0x80+8+4
ECC DATA BLOCK[4] user data len = 0 byte
ECC DATA BLOCK[5] user data len = 16 bytes, address = 0x80+8+4+4
ECC DATA BLOCK[6] user data len = 0 byte
ECC DATA BLOCK[7] user data len = 0 byte



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

md 4091004 1



Bit fields structure

typedef union  ndfc_user_data_n
{
  struct
  {
   unsigned user_data : 32;
  } b;
   unsigned long w;
} NDFC_USER_DATA_N
   

Allwinner H616 Manual