source: SVN/laguna/u-boot-2008.10/board/cavium/cns3000/partition.c @ 62

Last change on this file since 62 was 62, checked in by Tim Harvey, 2 years ago

laguna: increase kernel size to 2MB in SPI flash partition map

Recent kernels are difficult to prune down to 1.5MB so we will increase
this to 2MB which matches the size we use for NOR flash. Note that this has
no effect in the bootloader other than informational purposes.

Signed-off-by: Tim Harvey <tharvey@…>

File size: 1.5 KB
Line 
1/*
2 * Copyright (c) 2008 Cavium Networks
3 *
4 * This file is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, Version 2, as
6 * published by the Free Software Foundation.
7 *
8 * This file is distributed in the hope that it will be useful,
9 * but AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
11 * NONINFRINGEMENT.  See the GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this file; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA or
16 * visit http://www.gnu.org/licenses/.
17 *
18 * This file may also be available under a different license from Cavium.
19 * Contact Cavium Networks for more information
20 *
21 */
22#include <common.h>
23#include <config.h>
24#include <asm/hardware.h>
25#include <dataflash.h>
26
27AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS];
28
29struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {
30        {CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},      /* Logical adress, CS */
31};
32
33/*define the area offsets*/
34dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
35        {0x00000000, 0x0003FFFF, FLAG_PROTECT_CLEAR, 0, "U-boot"},
36        {0x00040000, 0x0007FFFF, FLAG_PROTECT_CLEAR, 0, "Environment"},
37        {0x00080000, 0x001fFFFF, FLAG_PROTECT_CLEAR, 0, "linux"},
38        {0x00280000, 0x00FFFFFF, FLAG_PROTECT_CLEAR, 0, "rootfs"},
39};
Note: See TracBrowser for help on using the repository browser.