summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/scb9328
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-16 18:27:41 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-18 07:57:51 +0800
commit23c7b4c4f08bc555aa7b8410b567d1fe3100c2e2 (patch)
tree29d2417c310cdfebab2ce31ac54e87af8ccac733 /arch/arm/boards/scb9328
parent3230114800af52599b6edf61a7a0930ee4ec68ac (diff)
downloadbarebox-23c7b4c4f08bc555aa7b8410b567d1fe3100c2e2.tar.gz
barebox-23c7b4c4f08bc555aa7b8410b567d1fe3100c2e2.tar.xz
dm9200: use "struct resource" instead of platform_data
drop iobase and iodata in favor of resources Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/boards/scb9328')
-rw-r--r--arch/arm/boards/scb9328/scb9328.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/arch/arm/boards/scb9328/scb9328.c b/arch/arm/boards/scb9328/scb9328.c
index a98d9fe26e..69d0589b80 100644
--- a/arch/arm/boards/scb9328/scb9328.c
+++ b/arch/arm/boards/scb9328/scb9328.c
@@ -55,18 +55,27 @@ static struct device_d sdram_dev = {
};
static struct dm9000_platform_data dm9000_data = {
- .iobase = 0x16000000,
- .iodata = 0x16000004,
.buswidth = DM9000_WIDTH_16,
.srom = 1,
};
+static struct resource dm9000_resources[] = {
+ [0] = {
+ .start = 0x16000000,
+ .size = 4,
+ },
+ [1] = {
+ .start = 0x16000004,
+ .size = 4,
+ },
+};
+
static struct device_d dm9000_dev = {
- .id = -1,
- .name = "dm9000",
- .map_base = 0x16000000,
- .size = 8,
- .platform_data = &dm9000_data,
+ .id = -1,
+ .name = "dm9000",
+ .num_resources = ARRAY_SIZE(dm9000_resources),
+ .resource = dm9000_resources,
+ .platform_data = &dm9000_data,
};
struct gpio_led leds[] = {