blob: 23ab8cf8a069642a15bb2c9a87645aee5d2a86f3 [file] [log] [blame]
Ilko Iliev32949232009-06-12 21:20:39 +02001/*
2 * (C) Copyright 2008
3 * Ulf Samuelsson <ulf@atmel.com>
4 * Ilko Iliev <www.ronetix.at>
5 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Ilko Iliev32949232009-06-12 21:20:39 +02007 */
8#include <common.h>
9#include <config.h>
10#include <asm/hardware.h>
11#include <dataflash.h>
12
13AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
14
15struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
16 {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0}, /* Logical adress, CS */
17};
18
19/*define the area offsets*/
20#ifdef CONFIG_SYS_USE_DATAFLASH
21dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
22 {0x00000000, 0x000041FF, FLAG_PROTECT_SET, 0, "Bootstrap"},
23 {0x00004200, 0x000083FF, FLAG_PROTECT_CLEAR, 0, "Environment"},
24 {0x00008400, 0x00041FFF, FLAG_PROTECT_SET, 0, "U-Boot"},
25 {0x00042000, 0x00251FFF, FLAG_PROTECT_CLEAR, 0, "Kernel"},
26 {0x00252000, 0xFFFFFFFF, FLAG_PROTECT_CLEAR, 0, "FS"},
27};
28#else
29dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
30 {0x00000000, 0xFFFFFFFF, FLAG_PROTECT_CLEAR, 0, ""},
31};
32
33#endif