blob: 8617f4899cce92f56f362608793d6cf3c0b57493 [file] [log] [blame]
Stelian Pop0bf5cad2008-05-08 18:52:25 +02001/*
2 * (C) Copyright 2008
3 * Ulf Samuelsson <ulf@atmel.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Stelian Pop0bf5cad2008-05-08 18:52:25 +02006 */
7#include <common.h>
8#include <config.h>
9#include <asm/hardware.h>
10#include <dataflash.h>
11
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020012AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
Stelian Pop0bf5cad2008-05-08 18:52:25 +020013
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020014struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
15 {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0}, /* Logical adress, CS */
Stelian Pop0bf5cad2008-05-08 18:52:25 +020016};
17
18/*define the area offsets*/
19dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
20 {0x00000000, 0x000041FF, FLAG_PROTECT_SET, 0, "Bootstrap"},
21 {0x00004200, 0x000083FF, FLAG_PROTECT_CLEAR, 0, "Environment"},
Alexandre Belloni9ef19ba2012-07-02 04:26:58 +000022 {0x00008400, 0x00083FFF, FLAG_PROTECT_SET, 0, "U-Boot"},
23 {0x00084000, 0x00293FFF, FLAG_PROTECT_CLEAR, 0, "Kernel"},
24 {0x00294000, 0xFFFFFFFF, FLAG_PROTECT_CLEAR, 0, "FS"},
Stelian Pop0bf5cad2008-05-08 18:52:25 +020025};