3 * (c) 2009 Magnus Lilja <lilja.magnus@gmail.com>
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 * Register map and bit definitions for the Freescale NAND Flash
29 * Controller present in i.MX31 and other devices.
33 u32 main_area0[128]; /* @0x000 */
41 u32 reserved1[64 - 16 + 64 * 5];
42 u16 bufsiz; /* @ 0xe00 */
48 u16 ecc_status_result;
49 u16 ecc_rslt_main_area;
50 u16 ecc_rslt_spare_area;
52 u16 unlock_start_blk_add;
53 u16 unlock_end_blk_add;
54 u16 nand_flash_wr_pr_st;
55 u16 nand_flash_config1;
56 u16 nand_flash_config2;
60 * Set INT to 0, FCMD to 1, rest to 0 in NFC_CONFIG2 Register for Command
66 * Set INT to 0, FADD to 1, rest to 0 in NFC_CONFIG2 Register for Address
72 * Set INT to 0, FDI to 1, rest to 0 in NFC_CONFIG2 Register for Input
78 * Set INT to 0, FDO to 001, rest to 0 in NFC_CONFIG2 Register for Data
81 #define NFC_OUTPUT 0x8
84 * Set INT to 0, FD0 to 010, rest to 0 in NFC_CONFIG2 Register for Read ID
90 * Set INT to 0, FDO to 100, rest to 0 in NFC_CONFIG2 Register for Read
93 #define NFC_STATUS 0x20
96 * Set INT to 1, rest to 0 in NFC_CONFIG2 Register for Read Status
99 #define NFC_INT 0x8000
101 #define NFC_SP_EN (1 << 2)
102 #define NFC_ECC_EN (1 << 3)
103 #define NFC_INT_MSK (1 << 4)
104 #define NFC_BIG (1 << 5)
105 #define NFC_RST (1 << 6)
106 #define NFC_CE (1 << 7)
107 #define NFC_ONE_CYCLE (1 << 8)
109 #endif /* __FSL_NFC_H */