~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/board/esd/otc570/partition.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * (C) Copyright 2008
 
3
 * Ulf Samuelsson <ulf@atmel.com>
 
4
 *
 
5
 * SPDX-License-Identifier:     GPL-2.0+
 
6
 */
 
7
#include <common.h>
 
8
#include <config.h>
 
9
#include <asm/hardware.h>
 
10
#include <dataflash.h>
 
11
 
 
12
AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 
13
 
 
14
struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
 
15
        {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},       /* Logical adress, CS */
 
16
};
 
17
 
 
18
/* define the area offsets */
 
19
dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
 
20
        {0x00000000, 0x000041FF, FLAG_PROTECT_SET,   0, "Bootstrap"},
 
21
        {0x00004200, 0x000083FF, FLAG_PROTECT_CLEAR, 0, "Environment"},
 
22
        {0x00008400, 0x00041FFF, FLAG_PROTECT_SET,   0, "U-Boot"},
 
23
};