#ifndef CYGONCE_DEVS_FLASH_MXC_NAND_PARTS_INL
#define CYGONCE_DEVS_FLASH_MXC_NAND_PARTS_INL
//==========================================================================
//
//      mxc_nfc.h
//
//      Flash programming to support NAND flash on Freescale MXC platforms
//
//==========================================================================
//####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
//
// eCos 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 or (at your option) any later version.
//
// eCos 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 eCos; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
//
// As a special exception, if other files instantiate templates or use macros
// or inline functions from this file, or you compile this file and link it
// with other works to produce a work based on this file, this file does not
// by itself cause the resulting work to be covered by the GNU General Public
// License. However the source code for this file must still be made available
// in accordance with section (3) of the GNU General Public License.
//
// This exception does not invalidate any other reasons why a work based on
// this file might be covered by the GNU General Public License.
//
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
// at http://sources.redhat.com/ecos/ecos-license/
// -------------------------------------------
//####ECOSGPLCOPYRIGHTEND####
//==========================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s):    Kevin Zhang <k.zhang@freescale.com>
// Contributors: Kevin Zhang <k.zhang@freescale.com>
// Date:         2006-01-23
// Purpose:      
// Description:  
//              
//####DESCRIPTIONEND####
//
//==========================================================================

    {
        device_id  : 0x35ec, // Samsung K9F5608x0C (on EVB SDR memory card)
        device_id2 : 0xFFFF,
        device_id3 : 0xFFFF,
        device_id4 : 0xFFFF,
        page_size  : 512,
        spare_size : 16,
        pages_per_block : 32,
        block_size : 0x4000,
        block_count: 2048,
        device_size: 0x2000000,
        base_mask  : ~(0x2000000 - 1),
        port_size  : MXC_NAND_8_BIT,
        type       : NAND_SLC,
    },
    {
        device_id  : 0x36ec, // Samsung K9F1208R0B (on MXC91131 EVB mem1)
        device_id2 : 0xFFFF,
        device_id3 : 0xFFFF,
        device_id4 : 0xFFFF,
        page_size  : 512,
        spare_size : 16,
        pages_per_block : 32,
        block_size : 0x4000,
        block_count: 4096,
        device_size: 0x4000000,
        base_mask  : ~(0x4000000 - 1),
        port_size  : MXC_NAND_8_BIT,
        type       : NAND_SLC,
    },
    {
        device_id  : 0x79ec, // Samsung K9K1G08x0B (MX31 ADS 512B page 8 bit)
        device_id2 : 0xFFFF,
        device_id3 : 0xFFFF,
        device_id4 : 0xFFFF,
        page_size  : 512,
        spare_size : 16,
        pages_per_block : 32,
        block_size : 0x4000,
        block_count: 4096 * 2,
        device_size: 0x4000000 * 2,
        base_mask  : ~(0x4000000 * 2 - 1),
        port_size  : MXC_NAND_8_BIT,
        type       : NAND_SLC,
    },
    {
        device_id  : 0xf1ec, // Samsung K9F1G08U0A (MX31 ADS 2KB page 8 bit nand)
        device_id2 : 0xFFFF,
        device_id3 : 0xFFFF,
        device_id4 : 0xFFFF,
        page_size  : 512*4,
        spare_size : 16*4,
        pages_per_block : 64,
        block_size : 64*2*1024,
        block_count: 1024,
        device_size: 128*1024*1024, // 128MB device =0x08000000
        port_size  : MXC_NAND_8_BIT,
        base_mask  : ~(0x08000000 - 1),
        type       : NAND_SLC,
    },
    {
        device_id  : 0xa1ec, // Samsung K9F1G08R0A (2KB page 8 bit nand)
        device_id2 : 0xFFFF,
        device_id3 : 0xFFFF,
        device_id4 : 0xFFFF,
        page_size  : 512*4,
        spare_size : 16*4,
        pages_per_block : 64,
        block_size : 64*2*1024,
        block_count: 1024,
        device_size: 0x08000000, // 128MB device =0x08000000
        port_size  : MXC_NAND_8_BIT,
        base_mask  : ~(0x08000000 - 1),
        type       : NAND_SLC,
    },
    {
        device_id  : 0xd5ec, // Samsung K9LAG08U0M (2KB page 2G x 8 bit MLC nand)
        device_id2 : 0x2555,
        device_id3 : 0xFFFF,
        device_id4 : 0xFFFF,
        page_size  : 512*4,
        spare_size : 16*4,
        pages_per_block : 128,
        block_size : 128*2*1024,
        block_count: 8192,
        device_size: 0x80000000, // 2GB device =0x8000,0000
        port_size  : MXC_NAND_8_BIT,
        base_mask  : ~(0x80000000 - 1),
        type       : NAND_MLC,
    },
    {
        device_id  : 0xAD, // Hynix HYD0SQH0MF3(P) (2KB page 2G x 16 bit MLC nand)
        device_id2 : 0xB1,
        device_id3 : 0x80,
        device_id4 : 0x55,
        page_size  : 512*4,
        spare_size : 16*4,
        pages_per_block : 64,
        block_size : 64*2*1024,
        block_count: 1024,
        device_size: 0x08000000, // 128MB device =0x0800,0000
        port_size  : MXC_NAND_16_BIT,
        base_mask  : ~(0x08000000 - 1),
        type       : NAND_MLC,
    },
#endif // CYGONCE_DEVS_FLASH_MXC_NAND_PARTS_INL
