summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/boards
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-22 12:47:45 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-23 09:23:40 +0800
commit166388bcf67edaf932fc026ef98b8749562e50f9 (patch)
treef46e14fcf6711efadedf76751fada75c417c01c1 /arch/blackfin/boards
parent826708d5d8c3d7e3b5cd518ea44fb0bdbaad0175 (diff)
downloadbarebox-166388bcf67edaf932fc026ef98b8749562e50f9.tar.gz
barebox-166388bcf67edaf932fc026ef98b8749562e50f9.tar.xz
resource: introduce add_cfi_device to register simple cfi device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/blackfin/boards')
-rw-r--r--arch/blackfin/boards/ipe337/ipe337.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/blackfin/boards/ipe337/ipe337.c b/arch/blackfin/boards/ipe337/ipe337.c
index 81a6a6fa09..4430f3b3a5 100644
--- a/arch/blackfin/boards/ipe337/ipe337.c
+++ b/arch/blackfin/boards/ipe337/ipe337.c
@@ -5,13 +5,6 @@
#include <partition.h>
#include <fs.h>
-static struct device_d cfi_dev = {
- .id = -1,
- .name = "cfi_flash",
- .map_base = 0x20000000,
- .size = 32 * 1024 * 1024,
-};
-
static struct device_d smc911x_dev = {
.id = -1,
.name = "smc911x",
@@ -20,7 +13,7 @@ static struct device_d smc911x_dev = {
};
static int ipe337_devices_init(void) {
- register_device(&cfi_dev);
+ add_cfi_flash_device(-1, 0x20000000, 32 * 1024 * 1024, 0);
add_mem_device("ram0", 0x0, 128 * 1024 * 1024,
IORESOURCE_MEM_WRITEABLE);