diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-06-22 11:30:52 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-22 11:30:52 +0200 |
commit | 84b61f6d3ad8a5761e61d83076588f64a289a574 (patch) | |
tree | 1a36155da857eedbd9834abc5d12f94cff6b9614 /arch/arm/mach-ixp23xx/ixdp2351.c | |
parent | [ARM] 3614/1: ep93xx: use platform devices for physmap flash (diff) | |
download | linux-84b61f6d3ad8a5761e61d83076588f64a289a574.tar.xz linux-84b61f6d3ad8a5761e61d83076588f64a289a574.zip |
[ARM] 3615/1: ixp23xx: use platform devices for physmap flash
Patch from Lennert Buytenhek
Now that the physmap platform device rewrite is in, make the ixp23xx
boards use platform devices for physmap flash.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp23xx/ixdp2351.c')
-rw-r--r-- | arch/arm/mach-ixp23xx/ixdp2351.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp23xx/ixdp2351.c b/arch/arm/mach-ixp23xx/ixdp2351.c index 00146c35daac..535b334ee045 100644 --- a/arch/arm/mach-ixp23xx/ixdp2351.c +++ b/arch/arm/mach-ixp23xx/ixdp2351.c @@ -298,9 +298,29 @@ static void __init ixdp2351_map_io(void) iotable_init(ixdp2351_io_desc, ARRAY_SIZE(ixdp2351_io_desc)); } +static struct physmap_flash_data ixdp2351_flash_data = { + .width = 1, +}; + +static struct resource ixdp2351_flash_resource = { + .start = 0x90000000, + .end = 0x94000000, + .flags = IORESOURCE_MEM, +}; + +static struct platform_device ixdp2351_flash = { + .name = "physmap-flash", + .id = 0, + .dev = { + .platform_data = &ixdp2351_flash_data, + }, + .num_resources = 1, + .resource = &ixdp2351_flash_resource, +}; + static void __init ixdp2351_init(void) { - physmap_configure(0x90000000, 0x04000000, 1, NULL); + platform_device_register(&ixdp2351_flash); /* * Mark flash as writeable |