Ulf Samuelsson | c3a60cb | 2008-04-12 20:29:44 +0200 | [diff] [blame] | 1 | /* |
Stelian Pop | ceb6b4f | 2008-05-08 22:52:11 +0200 | [diff] [blame] | 2 | * (C) Copyright 2008 |
| 3 | * Ulf Samuelsson <ulf@atmel.com> |
Ulf Samuelsson | c3a60cb | 2008-04-12 20:29:44 +0200 | [diff] [blame] | 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Ulf Samuelsson | c3a60cb | 2008-04-12 20:29:44 +0200 | [diff] [blame] | 6 | */ |
| 7 | #include <common.h> |
| 8 | #include <config.h> |
| 9 | #include <asm/hardware.h> |
| 10 | #include <dataflash.h> |
| 11 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 12 | AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS]; |
Ulf Samuelsson | c3a60cb | 2008-04-12 20:29:44 +0200 | [diff] [blame] | 13 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 14 | struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = { |
| 15 | {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0}, /* Logical adress, CS */ |
| 16 | {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1, 1} |
Ulf Samuelsson | c3a60cb | 2008-04-12 20:29:44 +0200 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | /*define the area offsets*/ |
| 20 | dataflash_protect_t area_list[NB_DATAFLASH_AREA] = { |
| 21 | {0x00000000, 0x000041FF, FLAG_PROTECT_SET, 0, "Bootstrap"}, |
| 22 | {0x00004200, 0x000083FF, FLAG_PROTECT_CLEAR, 0, "Environment"}, |
Alexandre Belloni | e139cb3 | 2012-07-02 04:26:58 +0000 | [diff] [blame] | 23 | {0x00008400, 0x00083FFF, FLAG_PROTECT_SET, 0, "U-Boot"}, |
| 24 | {0x00084000, 0x00293FFF, FLAG_PROTECT_CLEAR, 0, "Kernel"}, |
| 25 | {0x00294000, 0xFFFFFFFF, FLAG_PROTECT_CLEAR, 0, "FS"}, |
Ulf Samuelsson | c3a60cb | 2008-04-12 20:29:44 +0200 | [diff] [blame] | 26 | }; |