FSMC: Implement all missing bit defines.

This commit is contained in:
Uwe Hermann 2010-12-31 00:35:20 +01:00
parent 62f1bab21f
commit 43856e1436

View File

@ -97,4 +97,149 @@
/* MBKEN: Memory bank enable bit */
#define FSMC_BCR_MBKEN (1 << 0)
/* --- FSMC_BTRx values ---------------------------------------------------- */
/* ACCMOD[29:28]: Access mode */
#define FSMC_BTR_ACCMOD (1 << 28)
/* DATLAT[27:24]: Data latency (for synchronous burst NOR flash) */
#define FSMC_BTR_DATLAT (1 << 24)
/* CLKDIV[23:20]: Clock divide ratio (for CLK signal) */
#define FSMC_BTR_CLKDIV (1 << 20)
/* BUSTURN[19:16]: Bus turnaround phase duration */
#define FSMC_BTR_BUSTURN (1 << 16)
/* DATAST[15:8]: Data-phase duration */
#define FSMC_BTR_DATAST (1 << 8)
/* ADDHLD[7:4]: Address-hold phase duration */
#define FSMC_BTR_ADDHLD (1 << 4)
/* ADDSET[3:0]: Address setup phase duration */
#define FSMC_BTR_ADDSET (1 << 0)
/* --- FSMC_BWTRx values --------------------------------------------------- */
/* ACCMOD[29:28]: Access mode */
#define FSMC_BWTR_ACCMOD (1 << 28)
/* DATLAT[27:24]: Data latency (for synchronous burst NOR Flash) */
#define FSMC_BWTR_DATLAT (1 << 24)
/* CLKDIV[23:20]: Clock divide ratio (for CLK signal) */
#define FSMC_BWTR_CLKDIV (1 << 20)
/* Bits 19..16: Reserved. */
/* DATAST[15:8]: Data-phase duration */
#define FSMC_BWTR_DATAST (1 << 8)
/* ADDHLD[7:4]: Address-hold phase duration */
#define FSMC_BWTR_ADDHLD (1 << 4)
/* ADDSET[3:0]: Address setup phase duration */
#define FSMC_BWTR_ADDSET (1 << 0)
/* --- FSMC_PCRx values ---------------------------------------------------- */
/* ECCPS[19:17]: ECC page size */
#define FSMC_PCR_ECCPS (1 << 17)
/* TAR[16:13]: ALE to RE delay */
#define FSMC_PCR_TAR (1 << 13)
/* TCLR[12:9]: CLE to RE delay */
#define FSMC_PCR_TCLR (1 << 9)
/* Bits 8..7: Reserved. */
/* ECCEN: ECC computation logic enable bit */
#define FSMC_PCR_ECCEN (1 << 6)
/* PWID[5:4]: Databus width */
#define FSMC_PCR_PWID (1 << 4)
/* PTYP: Memory type */
#define FSMC_PCR_PTYP (1 << 3)
/* PBKEN: PC Card/NAND Flash memory bank enable bit */
#define FSMC_PCR_PBKEN (1 << 2)
/* PWAITEN: Wait feature enable bit */
#define FSMC_PCR_PWAITEN (1 << 1)
/* Bit 0: Reserved. */
/* --- FSMC_SRx values ----------------------------------------------------- */
/* FEMPT: FIFO empty */
#define FSMC_SR_FEMPT (1 << 6)
/* IFEN: Interrupt falling edge detection enable bit */
#define FSMC_SR_IFEN (1 << 5)
/* ILEN: Interrupt high-level detection enable bit */
#define FSMC_SR_ILEN (1 << 4)
/* IREN: Interrupt rising edge detection enable bit */
#define FSMC_SR_IREN (1 << 3)
/* IFS: Interrupt falling edge status */
#define FSMC_SR_IFS (1 << 2)
/* ILS: Interrupt high-level status */
#define FSMC_SR_ILS (1 << 1)
/* IRS: Interrupt rising edge status */
#define FSMC_SR_IRS (1 << 0)
/* --- FSMC_PMEMx values --------------------------------------------------- */
/* MEMHIZx[31:24]: Common memory x databus HiZ time */
#define FSMC_PMEM_MEMHIZX (1 << 24)
/* MEMHOLDx[23:16]: Common memory x hold time */
#define FSMC_PMEM_MEMHOLDX (1 << 16)
/* MEMWAITx[15:8]: Common memory x wait time */
#define FSMC_PMEM_MEMHOLDX (1 << 8)
/* MEMSETx[7:0]: Common memory x setup time */
#define FSMC_PMEM_MEMSETX (1 << 0)
/* --- FSMC_PATTx values --------------------------------------------------- */
/* ATTHIZx[31:24]: Attribute memory x databus HiZ time */
#define FSMC_PATT_ATTHIZX (1 << 24)
/* ATTHOLDx[23:16]: Attribute memory x hold time */
#define FSMC_PATT_ATTHOLDX (1 << 16)
/* ATTWAITx[15:8]: Attribute memory x wait time */
#define FSMC_PATT_ATTWAITX (1 << 8)
/* ATTSETx[7:0]: Attribute memory x setup time */
#define FSMC_PATT_ATTSETX (1 << 0)
/* --- FSMC_PIO4 values ---------------------------------------------------- */
/* IOHIZx[31:24]: I/O x databus HiZ time */
#define FSMC_PIO4_IOHIZX (1 << 24)
/* IOHOLDx[23:16]: I/O x hold time */
#define FSMC_PIO4_IOHOLDX (1 << 16)
/* IOWAITx[15:8]: I/O x wait time */
#define FSMC_PIO4_IOWAITX (1 << 8)
/* IOSETx[7:0]: I/O x setup time */
#define FSMC_PIO4_IOSETX (1 << 0)
/* --- FSMC_ECCRx values --------------------------------------------------- */
/* ECCx[31:0]: ECC result */
#define FSMC_ECCR_ECCX (1 << 0)
#endif