summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/netx
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/arm/boards/netx
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/arm/boards/netx')
-rw-r--r--arch/arm/boards/netx/netx.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/boards/netx/netx.c b/arch/arm/boards/netx/netx.c
index 5e25b94bac..f3be348109 100644
--- a/arch/arm/boards/netx/netx.c
+++ b/arch/arm/boards/netx/netx.c
@@ -30,13 +30,6 @@
#include <generated/mach-types.h>
#include <mach/netx-eth.h>
-static struct device_d cfi_dev = {
- .id = -1,
- .name = "cfi_flash",
- .map_base = 0xC0000000,
- .size = 32 * 1024 * 1024,
-};
-
struct netx_eth_platform_data eth0_data = {
.xcno = 0,
};
@@ -60,7 +53,7 @@ static struct device_d netx_eth_dev1 = {
static int netx_devices_init(void) {
struct device_d *sdram_dev;
- register_device(&cfi_dev);
+ add_cfi_flash_device(-1, 0xC0000000, 32 * 1024 * 1024, 0);
sdram_dev = add_mem_device("ram0", 0x80000000, 64 * 1024 * 1024,
IORESOURCE_MEM_WRITEABLE);