📄 mxc_nb_nfc.h
字号:
/* * misc/source/bootloader/nandboot/mxc_nb_uart.h * * Copyright 2004-2006 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//*! * @file spl/mxc_nb_nfc.h * * @brief This file contains the NAND Flash Controller register information. * * * @ingroup NANDboot */ #ifndef MXC_NB_NFC_H#define MXC_NB_NFC_H/*! * Base address for NFC */#ifdef MX21#define NFC_BASE 0xdf003000#endif /*! * RAM address where SPL code will be copied */#ifdef MX21#define SPL_DEST_ADDR (U16 *)0xc1000000#else#define SPL_DEST_ADDR (U16 *)0x80005000#endif/*! * @name Addresses for NFC registers *//*! @{ *//*! * NFC buffer size register */#define NFC_BUF_SIZE (*((volatile U16 *)(NFC_BASE+0xE00)))/*! * NFC RAM buffer address register */#define NFC_BUFFER_ADDR (*((volatile U16 *)(NFC_BASE+0xE04)))/*! * NFC flash address register */#define NFC_FLASH_ADDR (*((volatile U16 *)(NFC_BASE+0xE06)))/*! * NFC flash command register */#define NFC_FLASH_CMD (*((volatile U16 *)(NFC_BASE+0xE08)))/*! * NFC configuration register */#define NFC_CONFIG (*((volatile U16 *)(NFC_BASE+0xE0A)))/*! * NFC status register */#define NFC_STATUS_RESULT (*((volatile U16 *)(NFC_BASE+0xE0C)))/*! * NFC spare area result register */#define MFC_RSLTSPARE_AREA (*((volatile U16 *)(NFC_BASE+0xE10)))/*! * NFC write protect register */#define NFC_WRPROT (*((volatile U16 *)(NFC_BASE+0xE12)))/*! * NFC start block address register for unlocking buffer */#define NFC_UNLOCKSTART_BLKADDR (*((volatile U16 *)(NFC_BASE+0xE14)))/*! * NFC end block address register for unlocking buffer */#define NFC_UNLOCKEND_BLKADDR (*((volatile U16 *)(NFC_BASE+0xE16)))/*! * NFC write protect status register */#define NFC_NF_WRPRST (*((volatile U16 *)(NFC_BASE+0xE18)))/*! * NFC configuration register 1 */#define NFC_CONFIG1 (*((volatile U16 *)(NFC_BASE+0xE1A)))/*! * NFC configuration register 2 */#define NFC_CONFIG2 (*((volatile U16 *)(NFC_BASE+0xE1C)))/*! @} *//*! * @name NFC RAM buffer main area addresses *//*! @{ *//*! * NFC RAM buffer main area 0 address */#define MAIN_AREA0 (volatile U16 *)(NFC_BASE+0x000)/*! * NFC RAM buffer main area 1 address */#define MAIN_AREA1 (volatile U16 *)(NFC_BASE+0x200)/*! * NFC RAM buffer main area 2 address */#define MAIN_AREA2 (volatile U16 *)(NFC_BASE+0x400)/*! * NFC RAM buffer main area 3 address */#define MAIN_AREA3 (volatile U16 *)(NFC_BASE+0x600)/*! @} *//*! * @name NFC Spare buffer area addresses *//*! @{ *//*! * NFC Spare buffer area 0 address */#define SPARE_AREA0 (volatile U16 *)(NFC_BASE+0x800)/*! * NFC Spare buffer area 1 address */#define SPARE_AREA1 (volatile U16 *)(NFC_BASE+0x810)/*! * NFC Spare buffer area 2 address */#define SPARE_AREA2 (volatile U16 *)(NFC_BASE+0x820)/*! * NFC Spare buffer area 3 address */#define SPARE_AREA3 (volatile U16 *)(NFC_BASE+0x830)/*! @} *//*! * Address to determine Bad block Information(BI) in Spare area. * BI information for 8 bit NAND is stored at 6th byte in Spare area. */#define BI_BASE_8 (volatile U16 *)(NFC_BASE + 0x804); /*! * Address to determine Bad block Information(BI) in Spare area. * BI information for 16 bit NAND is stored at 6th word in Spare area. */#define BI_BASE_16 (volatile U16 *)(NFC_BASE + 0x83A); #endif /* MXC_NB_NFC_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -