summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp23xx/roadrunner.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2006-06-22 10:30:52 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-06-22 10:30:52 +0100
commit84b61f6d3ad8a5761e61d83076588f64a289a574 (patch)
tree1a36155da857eedbd9834abc5d12f94cff6b9614 /arch/arm/mach-ixp23xx/roadrunner.c
parent0967b5f0790cff737c86e9797cbbbdf420eb00f3 (diff)
[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/roadrunner.c')
-rw-r--r--arch/arm/mach-ixp23xx/roadrunner.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp23xx/roadrunner.c b/arch/arm/mach-ixp23xx/roadrunner.c
index 43c14e74079..b9f5d13fcfe 100644
--- a/arch/arm/mach-ixp23xx/roadrunner.c
+++ b/arch/arm/mach-ixp23xx/roadrunner.c
@@ -137,9 +137,29 @@ static int __init roadrunner_pci_init(void)
subsys_initcall(roadrunner_pci_init);
+static struct physmap_flash_data roadrunner_flash_data = {
+ .width = 2,
+};
+
+static struct resource roadrunner_flash_resource = {
+ .start = 0x90000000,
+ .end = 0x94000000,
+ .flags = IORESOURCE_MEM,
+};
+
+static struct platform_device roadrunner_flash = {
+ .name = "physmap-flash",
+ .id = 0,
+ .dev = {
+ .platform_data = &roadrunner_flash_data,
+ },
+ .num_resources = 1,
+ .resource = &roadrunner_flash_resource,
+};
+
static void __init roadrunner_init(void)
{
- physmap_configure(0x90000000, 0x04000000, 2, NULL);
+ platform_device_register(&roadrunner_flash);
/*
* Mark flash as writeable