1 #ifndef CYGONCE_DEVS_FLASH_TOSHIBA_TC58XXX_PARTS_INL
2 #define CYGONCE_DEVS_FLASH_TOSHIBA_TC58XXX_PARTS_INL
3 //==========================================================================
5 // flash_tc58xxx_parts.inl
7 // Toshiba Tc58xxx series part descriptions
9 //==========================================================================
10 //####ECOSGPLCOPYRIGHTBEGIN####
11 // -------------------------------------------
12 // This file is part of eCos, the Embedded Configurable Operating System.
13 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
14 // Copyright (C) 2003 Jonathan Larmour
15 // Copyright (C) 2003, 2004 Gary Thomas
17 // eCos is free software; you can redistribute it and/or modify it under
18 // the terms of the GNU General Public License as published by the Free
19 // Software Foundation; either version 2 or (at your option) any later version.
21 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
22 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
23 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 // You should have received a copy of the GNU General Public License along
27 // with eCos; if not, write to the Free Software Foundation, Inc.,
28 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
30 // As a special exception, if other files instantiate templates or use macros
31 // or inline functions from this file, or you compile this file and link it
32 // with other works to produce a work based on this file, this file does not
33 // by itself cause the resulting work to be covered by the GNU General Public
34 // License. However the source code for this file must still be made available
35 // in accordance with section (3) of the GNU General Public License.
37 // This exception does not invalidate any other reasons why a work based on
38 // this file might be covered by the GNU General Public License.
40 // -------------------------------------------
41 //####ECOSGPLCOPYRIGHTEND####
43 //==========================================================================
44 //#####DESCRIPTIONBEGIN####
46 // Author(s): Gary Thomas <gary@mlbassoc.com>
49 // Purpose: Should be included from the flash_tc58xxx.inl file only.
50 // Description: Toshiba Tc58xxx part descriptions
51 // Roughly based on Atmel AT49xxxx work by Jani Monoses <jani@iv.ro>
53 // FIXME: Add configury for selecting bottom/top bootblocks
54 //####DESCRIPTIONEND####
56 //==========================================================================
58 // Platform code must define the below
59 // #define CYGNUM_FLASH_INTERLEAVE : Number of interleaved devices (in parallel)
60 // #define CYGNUM_FLASH_SERIES : Number of devices in series
61 // #define CYGNUM_FLASH_WIDTH : Width of devices on platform
62 // #define CYGNUM_FLASH_BASE : Address of first device
63 // And select one of the below device variants
65 #if defined(CYGHWR_DEVS_FLASH_TOSHIBA_TC58256)
67 device_id : FLASHWORD(0x75),
68 block_size : 0x4000 * CYGNUM_FLASH_INTERLEAVE,
69 page_size : 0x200 * CYGNUM_FLASH_INTERLEAVE,
71 device_size: 0x2000000 * CYGNUM_FLASH_INTERLEAVE,
72 base_mask : ~(0x2000000 * CYGNUM_FLASH_INTERLEAVE - 1),
75 #if defined(CYGHWR_DEVS_FLASH_TOSHIBA_TC58DVG02)
77 device_id : FLASHWORD(0x79),
78 block_size : 0x4000 * CYGNUM_FLASH_INTERLEAVE,
79 page_size : 0x200 * CYGNUM_FLASH_INTERLEAVE,
81 device_size: 0x8000000 * CYGNUM_FLASH_INTERLEAVE,
82 base_mask : ~(0x8000000 * CYGNUM_FLASH_INTERLEAVE - 1),
85 #endif // ifndef CYGONCE_DEVS_FLASH_TOSHIBA_TC58XXX_PARTS_INL
87 // EOF flash_tc58xxx_parts.inl