aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-pxa/poodle.c31
1 files changed, 10 insertions, 21 deletions
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index 47cfb8bb8318..7c4a1cebfd6b 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -126,6 +126,15 @@ static void __init poodle_init(void)
126{ 126{
127 int ret = 0; 127 int ret = 0;
128 128
129 /* setup sleep mode values */
130 PWER = 0x00000002;
131 PFER = 0x00000000;
132 PRER = 0x00000002;
133 PGSR0 = 0x00008000;
134 PGSR1 = 0x003F0202;
135 PGSR2 = 0x0001C000;
136 PCFR |= PCFR_OPDE;
137
129 /* cpu initialize */ 138 /* cpu initialize */
130 /* Pgsr Register */ 139 /* Pgsr Register */
131 PGSR0 = 0x0146dd80; 140 PGSR0 = 0x0146dd80;
@@ -171,32 +180,12 @@ static void __init fixup_poodle(struct machine_desc *desc,
171 sharpsl_save_param(); 180 sharpsl_save_param();
172} 181}
173 182
174static struct map_desc poodle_io_desc[] __initdata = {
175 /* virtual physical length */
176 { 0xef800000, 0x00000000, 0x00800000, MT_DEVICE }, /* Boot Flash */
177};
178
179static void __init poodle_map_io(void)
180{
181 pxa_map_io();
182 iotable_init(poodle_io_desc, ARRAY_SIZE(poodle_io_desc));
183
184 /* setup sleep mode values */
185 PWER = 0x00000002;
186 PFER = 0x00000000;
187 PRER = 0x00000002;
188 PGSR0 = 0x00008000;
189 PGSR1 = 0x003F0202;
190 PGSR2 = 0x0001C000;
191 PCFR |= PCFR_OPDE;
192}
193
194MACHINE_START(POODLE, "SHARP Poodle") 183MACHINE_START(POODLE, "SHARP Poodle")
195 .phys_ram = 0xa0000000, 184 .phys_ram = 0xa0000000,
196 .phys_io = 0x40000000, 185 .phys_io = 0x40000000,
197 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, 186 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
198 .fixup = fixup_poodle, 187 .fixup = fixup_poodle,
199 .map_io = poodle_map_io, 188 .map_io = pxa_map_io,
200 .init_irq = pxa_init_irq, 189 .init_irq = pxa_init_irq,
201 .timer = &pxa_timer, 190 .timer = &pxa_timer,
202 .init_machine = poodle_init, 191 .init_machine = poodle_init,