1 | /************************************************************************** |
---|
2 | * |
---|
3 | * Copyright (c) 2013 Alcatel-Lucent |
---|
4 | * |
---|
5 | * Alcatel Lucent licenses this file to You under the Apache License, |
---|
6 | * Version 2.0 (the "License"); you may not use this file except in |
---|
7 | * compliance with the License. A copy of the License is contained the |
---|
8 | * file LICENSE at the top level of this repository. |
---|
9 | * You may also obtain a copy of the License at: |
---|
10 | * |
---|
11 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
12 | * |
---|
13 | * Unless required by applicable law or agreed to in writing, software |
---|
14 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
16 | * See the License for the specific language governing permissions and |
---|
17 | * limitations under the License. |
---|
18 | * |
---|
19 | ************************************************************************** |
---|
20 | * |
---|
21 | * flashram.c |
---|
22 | * |
---|
23 | * Original author: Ed Sutter (ed.sutter@alcatel-lucent.com) |
---|
24 | * |
---|
25 | */ |
---|
26 | |
---|
27 | #include "config.h" |
---|
28 | |
---|
29 | #ifdef FLASHRAM_BASE |
---|
30 | /* As of Jan 2004, this module is no longer needed. |
---|
31 | * I added an option to FlashRamInit() so that if the incoming sector |
---|
32 | * size table is NULL, then all sectors are initialized to the same |
---|
33 | * size. For cases where this table was used, the call to FlashRamInit |
---|
34 | * should have the ssizes argument changed to zero. See FlashRamInit() |
---|
35 | * for more on this. |
---|
36 | */ |
---|
37 | #if 0 |
---|
38 | #include "flash.h" |
---|
39 | |
---|
40 | /* Generic Flash RAM configuration information... |
---|
41 | * The assumption is a 16-element array (FLASHRAM_SECTORCOUNT = 16). |
---|
42 | * |
---|
43 | * This can be included in a monitor build if the build has |
---|
44 | * a block of RAM dedicated to TFS file storage. If some other |
---|
45 | * configuration is required, then copy this to target-specific space |
---|
46 | * and modify a local version. |
---|
47 | */ |
---|
48 | int |
---|
49 | ramSectors[FLASHRAM_SECTORCOUNT] = { |
---|
50 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
51 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
52 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
53 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
54 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
55 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
56 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
57 | FLASHRAM_SECTORSIZE, FLASHRAM_SECTORSIZE, |
---|
58 | }; |
---|
59 | #endif |
---|
60 | #endif |
---|