diff options
author | Tony Luck <tony.luck@intel.com> | 2006-06-23 16:46:23 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-06-23 16:46:23 -0400 |
commit | 8cf60e04a131310199d5776e2f9e915f0c468899 (patch) | |
tree | 373a68e88e6737713a0a5723d552cdeefffff929 /arch/arm/mach-ixp23xx/espresso.c | |
parent | 1323523f505606cfd24af6122369afddefc3b09d (diff) | |
parent | 95eaa5fa8eb2c345244acd5f65b200b115ae8c65 (diff) |
Auto-update from upstream
Diffstat (limited to 'arch/arm/mach-ixp23xx/espresso.c')
-rw-r--r-- | arch/arm/mach-ixp23xx/espresso.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp23xx/espresso.c b/arch/arm/mach-ixp23xx/espresso.c index bf688c128630..dc5e489c70bc 100644 --- a/arch/arm/mach-ixp23xx/espresso.c +++ b/arch/arm/mach-ixp23xx/espresso.c | |||
@@ -53,9 +53,29 @@ static int __init espresso_pci_init(void) | |||
53 | }; | 53 | }; |
54 | subsys_initcall(espresso_pci_init); | 54 | subsys_initcall(espresso_pci_init); |
55 | 55 | ||
56 | static struct physmap_flash_data espresso_flash_data = { | ||
57 | .width = 2, | ||
58 | }; | ||
59 | |||
60 | static struct resource espresso_flash_resource = { | ||
61 | .start = 0x90000000, | ||
62 | .end = 0x92000000, | ||
63 | .flags = IORESOURCE_MEM, | ||
64 | }; | ||
65 | |||
66 | static struct platform_device espresso_flash = { | ||
67 | .name = "physmap-flash", | ||
68 | .id = 0, | ||
69 | .dev = { | ||
70 | .platform_data = &espresso_flash_data, | ||
71 | }, | ||
72 | .num_resources = 1, | ||
73 | .resource = &espresso_flash_resource, | ||
74 | }; | ||
75 | |||
56 | static void __init espresso_init(void) | 76 | static void __init espresso_init(void) |
57 | { | 77 | { |
58 | physmap_configure(0x90000000, 0x02000000, 2, NULL); | 78 | platform_device_register(&espresso_flash); |
59 | 79 | ||
60 | /* | 80 | /* |
61 | * Mark flash as writeable. | 81 | * Mark flash as writeable. |