]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/flash/toshiba/tc58xxx/v2_0/include/flash_tc58xxx_parts.inl
Initial revision
[karo-tx-redboot.git] / packages / devs / flash / toshiba / tc58xxx / v2_0 / include / flash_tc58xxx_parts.inl
1 #ifndef CYGONCE_DEVS_FLASH_TOSHIBA_TC58XXX_PARTS_INL
2 #define CYGONCE_DEVS_FLASH_TOSHIBA_TC58XXX_PARTS_INL
3 //==========================================================================
4 //
5 //      flash_tc58xxx_parts.inl
6 //
7 //      Toshiba Tc58xxx series part descriptions
8 //
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
16 //
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.
20 //
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
24 // for more details.
25 //
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.
29 //
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.
36 //
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.
39 //
40 // -------------------------------------------
41 //####ECOSGPLCOPYRIGHTEND####
42
43 //==========================================================================
44 //#####DESCRIPTIONBEGIN####
45 //
46 // Author(s):    Gary Thomas <gary@mlbassoc.com>
47 // Contributors: 
48 // Date:         2003-09-02
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>
52 //
53 // FIXME:        Add configury for selecting bottom/top bootblocks
54 //####DESCRIPTIONEND####
55 //
56 //==========================================================================
57
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
64
65 #if defined(CYGHWR_DEVS_FLASH_TOSHIBA_TC58256)
66 {  // 256Mb (32MB)
67     device_id  : FLASHWORD(0x75),
68     block_size : 0x4000 * CYGNUM_FLASH_INTERLEAVE,
69     page_size  : 0x200 * CYGNUM_FLASH_INTERLEAVE,
70     block_count: 2048,
71     device_size: 0x2000000 * CYGNUM_FLASH_INTERLEAVE,
72     base_mask  : ~(0x2000000 * CYGNUM_FLASH_INTERLEAVE - 1),
73 },
74 #endif
75 #if defined(CYGHWR_DEVS_FLASH_TOSHIBA_TC58DVG02)
76 {  // 1024Mb (128MB)
77     device_id  : FLASHWORD(0x79),
78     block_size : 0x4000 * CYGNUM_FLASH_INTERLEAVE,
79     page_size  : 0x200 * CYGNUM_FLASH_INTERLEAVE,
80     block_count: 8192,
81     device_size: 0x8000000 * CYGNUM_FLASH_INTERLEAVE,
82     base_mask  : ~(0x8000000 * CYGNUM_FLASH_INTERLEAVE - 1),
83 },
84 #endif
85 #endif // ifndef CYGONCE_DEVS_FLASH_TOSHIBA_TC58XXX_PARTS_INL
86
87 // EOF flash_tc58xxx_parts.inl