aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-clps711x/autcpu12.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-clps711x/autcpu12.c')
-rw-r--r--arch/arm/mach-clps711x/autcpu12.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-clps711x/autcpu12.c b/arch/arm/mach-clps711x/autcpu12.c
index 3fb79a1d0bde..32871918bb6e 100644
--- a/arch/arm/mach-clps711x/autcpu12.c
+++ b/arch/arm/mach-clps711x/autcpu12.c
@@ -23,6 +23,8 @@
23#include <linux/string.h> 23#include <linux/string.h>
24#include <linux/mm.h> 24#include <linux/mm.h>
25#include <linux/io.h> 25#include <linux/io.h>
26#include <linux/ioport.h>
27#include <linux/platform_device.h>
26 28
27#include <mach/hardware.h> 29#include <mach/hardware.h>
28#include <asm/sizes.h> 30#include <asm/sizes.h>
@@ -62,9 +64,26 @@ void __init autcpu12_map_io(void)
62 iotable_init(autcpu12_io_desc, ARRAY_SIZE(autcpu12_io_desc)); 64 iotable_init(autcpu12_io_desc, ARRAY_SIZE(autcpu12_io_desc));
63} 65}
64 66
67static struct resource autcpu12_nvram_resource[] __initdata = {
68 DEFINE_RES_MEM_NAMED(AUTCPU12_PHYS_NVRAM, SZ_128K, "SRAM"),
69};
70
71static struct platform_device autcpu12_nvram_pdev __initdata = {
72 .name = "autcpu12_nvram",
73 .id = -1,
74 .resource = autcpu12_nvram_resource,
75 .num_resources = ARRAY_SIZE(autcpu12_nvram_resource),
76};
77
78static void __init autcpu12_init(void)
79{
80 platform_device_register(&autcpu12_nvram_pdev);
81}
82
65MACHINE_START(AUTCPU12, "autronix autcpu12") 83MACHINE_START(AUTCPU12, "autronix autcpu12")
66 /* Maintainer: Thomas Gleixner */ 84 /* Maintainer: Thomas Gleixner */
67 .atag_offset = 0x20000, 85 .atag_offset = 0x20000,
86 .init_machine = autcpu12_init,
68 .map_io = autcpu12_map_io, 87 .map_io = autcpu12_map_io,
69 .init_irq = clps711x_init_irq, 88 .init_irq = clps711x_init_irq,
70 .timer = &clps711x_timer, 89 .timer = &clps711x_timer,