mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 19:10:13 +00:00
1bb707c39a
Flex-OneNAND is a monolithic integrated circuit with a NAND Flash array using a NOR Flash interface. This on-chip integration enables system designers to reduce external system logic and use high-density NAND Flash in applications that would otherwise have to use more NOR components. Flex-OneNAND enables users to configure to partition it into SLC and MLC areas in more flexible way. While MLC area of Flex-OneNAND can be used to store data that require low reliability and high density, SLC area of Flex-OneNAND to store data that need high reliability and high performance. Flex-OneNAND can let users take advantage of storing these two different types of data into one chip, which is making Flex-OneNAND more cost- and space-effective. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
/*
|
|
* (C) Copyright 2005-2008 Samsung Electronics
|
|
* Kyungmin Park <kyungmin.park@samsung.com>
|
|
*
|
|
* 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
|
|
*/
|
|
|
|
#ifndef _ONENAND_IPL_H
|
|
#define _ONENAND_IPL_H
|
|
|
|
#include <linux/mtd/onenand_regs.h>
|
|
|
|
#define ONENAND_BLOCK_SIZE 2048
|
|
|
|
#ifndef CFG_PRINTF
|
|
#define printf(format, args...)
|
|
#endif
|
|
|
|
#define onenand_readw(a) readw(a)
|
|
#define onenand_writew(v, a) writew(v, a)
|
|
|
|
#define THIS_ONENAND(a) (CFG_ONENAND_BASE + (a))
|
|
|
|
#define READ_INTERRUPT() \
|
|
onenand_readw(THIS_ONENAND(ONENAND_REG_INTERRUPT))
|
|
|
|
#define ONENAND_PAGE_SIZE 2048
|
|
|
|
extern int onenand_read_block0(unsigned char *buf);
|
|
#endif
|