NDFC_CTL Контроллер Nand Flash (NDFC): список регистров 31 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 16 15 |•|•|•|•|•|•|•|•|•|•|•|•|•|•|•|•| 00 Unused Bits 31 : 29NDFC_DDR_TYPE Bit 28R/W 0x0 Type of DDR data interface NDFC_CE_SEL Bits 27 : 24R/W 0x0 Chip Select for NAND Flash Chips Unused Bits 23 : 22NDFC_DDR_RM Bit 21R/W 0x0 DDR Repeat Data Mode NDFC_DDR_REN Bit 20R/W 0x0 DDR Repeat Enable NF_TYPE Bits 19 : 18R/W 0x0 NAND Flash Type NDFC_CLE_POL Bit 17R/W 0x0 NDFC Command Latch Enable (CLE) Signal Polarity Select NDFC_ALE_POL Bit 16R/W 0x0 NDFC Address Latch Enable (ALE) Signal Polarity Select NDFC_DMA_TYPE Bit 15R/W 0x0 0: Dedicated DMA NDFC_RAM_METHOD Bit 14R/W 0x0 Access internal RAM method Unused Bits 13 : 12NDFC_PAGE_SIZE Bits 11 : 8R/W 0x0 000: 1KB Unused Bit 7NDFC_CE_ACT Bit 6R/W 0x0 Chip Select Signal CE# Control during NAND Operation Unused Bit 5NDFC_RB_SEL Bits 4 : 3R/W 0x0 NDFC External R/B Signal Select NDFC_BUS_WIDTH Bit 2R/W 0x0 0: 8-bit bus NDFC_RESET Bit 1R/W1C 0x0 NDFC Reset NDFC_EN Bit 0R/W 0x0 NDFC Enable Control Команда U-Boot для чтения регистра md 4011000 1Bit fields structuretypedef union ndfc_ctl { struct { unsigned ndfc_en : 1; unsigned ndfc_reset : 1; unsigned ndfc_bus_width : 1; unsigned ndfc_rb_sel : 2; unsigned unused0 : 1; unsigned ndfc_ce_act : 1; unsigned unused1 : 1; unsigned ndfc_page_size : 4; unsigned unused2 : 2; unsigned ndfc_ram_method : 1; unsigned ndfc_dma_type : 1; unsigned ndfc_ale_pol : 1; unsigned ndfc_cle_pol : 1; unsigned nf_type : 2; unsigned ndfc_ddr_ren : 1; unsigned ndfc_ddr_rm : 1; unsigned unused3 : 2; unsigned ndfc_ce_sel : 4; unsigned ndfc_ddr_type : 1; unsigned unused4 : 3; } b; unsigned long w; } NDFC_CTL |