1 |
786 |
skrzyp |
//==========================================================================
|
2 |
|
|
//
|
3 |
|
|
// openrisc_orp_flash.c
|
4 |
|
|
//
|
5 |
|
|
// Flash programming for AMD AM29LVxxxxx devices connected to OpenRISC
|
6 |
|
|
// Reference Platform (ORP).
|
7 |
|
|
//
|
8 |
|
|
//==========================================================================
|
9 |
|
|
// ####ECOSGPLCOPYRIGHTBEGIN####
|
10 |
|
|
// -------------------------------------------
|
11 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
12 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
13 |
|
|
//
|
14 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
15 |
|
|
// the terms of the GNU General Public License as published by the Free
|
16 |
|
|
// Software Foundation; either version 2 or (at your option) any later
|
17 |
|
|
// version.
|
18 |
|
|
//
|
19 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT
|
20 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
21 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
22 |
|
|
// for more details.
|
23 |
|
|
//
|
24 |
|
|
// You should have received a copy of the GNU General Public License
|
25 |
|
|
// along with eCos; if not, write to the Free Software Foundation, Inc.,
|
26 |
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
27 |
|
|
//
|
28 |
|
|
// As a special exception, if other files instantiate templates or use
|
29 |
|
|
// macros or inline functions from this file, or you compile this file
|
30 |
|
|
// and link it with other works to produce a work based on this file,
|
31 |
|
|
// this file does not by itself cause the resulting work to be covered by
|
32 |
|
|
// the GNU General Public License. However the source code for this file
|
33 |
|
|
// must still be made available in accordance with section (3) of the GNU
|
34 |
|
|
// General Public License v2.
|
35 |
|
|
//
|
36 |
|
|
// This exception does not invalidate any other reasons why a work based
|
37 |
|
|
// on this file might be covered by the GNU General Public License.
|
38 |
|
|
// -------------------------------------------
|
39 |
|
|
// ####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
//==========================================================================
|
41 |
|
|
//#####DESCRIPTIONBEGIN####
|
42 |
|
|
//
|
43 |
|
|
// Author(s): sfurman
|
44 |
|
|
// Contributors:
|
45 |
|
|
// Date: 2003-04-24
|
46 |
|
|
// Purpose:
|
47 |
|
|
// Description:
|
48 |
|
|
//
|
49 |
|
|
//####DESCRIPTIONEND####
|
50 |
|
|
//
|
51 |
|
|
//==========================================================================
|
52 |
|
|
|
53 |
|
|
//--------------------------------------------------------------------------
|
54 |
|
|
// Device properties
|
55 |
|
|
|
56 |
|
|
#define CYGNUM_FLASH_INTERLEAVE (1)
|
57 |
|
|
#define CYGNUM_FLASH_SERIES (1)
|
58 |
|
|
#define CYGNUM_FLASH_WIDTH (16)
|
59 |
|
|
#define CYGNUM_FLASH_BASE (0xF0000000)
|
60 |
|
|
|
61 |
|
|
//--------------------------------------------------------------------------
|
62 |
|
|
// Platform specific extras
|
63 |
|
|
|
64 |
|
|
//--------------------------------------------------------------------------
|
65 |
|
|
// Now include the driver code.
|
66 |
|
|
#include "cyg/io/flash_am29xxxxx.inl"
|
67 |
|
|
|
68 |
|
|
// ------------------------------------------------------------------------
|
69 |
|
|
// EOF openrisc_orp_flash.c
|