Регистры Allwinner H616

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


NDFC_EFR
5.2.5. NDFC Enhanced Feature Register - адрес: 0x4011040 (смещение: 0x0040)

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



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

  Unused

Bits 31 : 25

  DB_CNT_EN

Bit 24
R/W
0x0

Dummy_Byte_Count_EN
0:Disable fill dummy byte
1:Enable fill dummy byte


  DB_CNT

Bits 23 : 16
R/W
0x0

Dummy_Byte_Count
After PAGE CMD operation finishing sending out the main data , user data and
ECC code, controller would send dummy byte to fill the unused space in one
page.
Note: It is only valid in PAGE CMD operation(NDFC_CMD_TYPE=0x3), and this
function is disabled when Dummy_Byte_Count_EN is 0.
If the NDFC_RANDOM_EN = 0x0, the value of the dummy byte is 0, so in order
to improve the stability, when using this function , it is better to set the
NDFC_RANDOM_EN to 0x1.


  Unused

Bits 15 : 9

  NDFC_WP_CTRL

Bit 8
R/W
0x0

NAND Flash Write Protect Control Bit
0: Write Protect is active
1: Write Protect is not active
When this bit is '0', WP signal line is low level and external NAND flash is on
protected state.


  Unused

Bit 7

  NDFC_ECC_DEBUG

Bits 6 : 0
R/W
0x0

For the purpose of debugging ECC engine, special error bits are inserted before
writing external Flash Memory.
0: No error is inserted (ECC Normal Operation)
n: N bits error are inserted



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

md 4011040 1



Bit fields structure

typedef union  ndfc_efr
{
  struct
  {
   unsigned ndfc_ecc_debug : 7;
   unsigned unused0 : 1;
   unsigned ndfc_wp_ctrl : 1;
   unsigned unused1 : 7;
   unsigned db_cnt : 8;
   unsigned db_cnt_en : 1;
   unsigned unused2 : 7;
  } b;
   unsigned long w;
} NDFC_EFR
   

Allwinner H616 Manual