Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2008 |
| 3 | * Ulf Samuelsson <ulf@atmel.com> |
| 4 | * Ilko Iliev <www.ronetix.at> |
| 5 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 7 | */ |
| 8 | #include <common.h> |
| 9 | #include <config.h> |
| 10 | #include <asm/hardware.h> |
| 11 | #include <dataflash.h> |
| 12 | |
| 13 | AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS]; |
| 14 | |
| 15 | struct 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 |
| 21 | dataflash_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 |
| 29 | dataflash_protect_t area_list[NB_DATAFLASH_AREA] = { |
| 30 | {0x00000000, 0xFFFFFFFF, FLAG_PROTECT_CLEAR, 0, ""}, |
| 31 | }; |
| 32 | |
| 33 | #endif |