2 * linux/arch/arm/mach-clps711x/p720t.c
4 * Copyright (C) 2000-2001 Deep Blue Solutions Ltd
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #include <linux/config.h>
21 #include <linux/kernel.h>
22 #include <linux/init.h>
23 #include <linux/types.h>
24 #include <linux/string.h>
27 #include <asm/hardware.h>
29 #include <asm/pgtable.h>
31 #include <asm/setup.h>
32 #include <asm/mach-types.h>
33 #include <asm/mach/arch.h>
34 #include <asm/mach/map.h>
35 #include <asm/arch/syspld.h>
37 extern void clps711x_init_irq(void);
38 extern void clps711x_map_io(void);
39 extern void clps711x_init_time(void);
42 * Map the P720T system PLD. It occupies two address spaces:
43 * SYSPLD_PHYS_BASE and SYSPLD_PHYS_BASE + 0x00400000
46 static struct map_desc p720t_io_desc[] __initdata = {
47 { SYSPLD_VIRT_BASE, SYSPLD_PHYS_BASE, 1048576, MT_DEVICE },
48 { 0xfe400000, 0x10400000, 1048576, MT_DEVICE }
52 fixup_p720t(struct machine_desc *desc, struct tag *tag,
53 char **cmdline, struct meminfo *mi)
56 * Our bootloader doesn't setup any tags (yet).
58 if (tag->hdr.tag != ATAG_CORE) {
59 tag->hdr.tag = ATAG_CORE;
60 tag->hdr.size = tag_size(tag_core);
61 tag->u.core.flags = 0;
62 tag->u.core.pagesize = PAGE_SIZE;
63 tag->u.core.rootdev = 0x0100;
66 tag->hdr.tag = ATAG_MEM;
67 tag->hdr.size = tag_size(tag_mem32);
68 tag->u.mem.size = 4096;
69 tag->u.mem.start = PHYS_OFFSET;
72 tag->hdr.tag = ATAG_NONE;
77 static void __init p720t_map_io(void)
80 iotable_init(p720t_io_desc, ARRAY_SIZE(p720t_io_desc));
83 MACHINE_START(P720T, "ARM-Prospector720T")
84 MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd")
85 BOOT_MEM(0xc0000000, 0x80000000, 0xff000000)
86 BOOT_PARAMS(0xc0000100)
89 INITIRQ(clps711x_init_irq)
90 INITTIME(clps711x_init_time)
93 static int p720t_hw_init(void)
96 * Power down as much as possible in case we don't
97 * have the drivers loaded.
100 PLD_PWR &= ~(PLD_S4_ON|PLD_S3_ON|PLD_S2_ON|PLD_S1_ON);
108 #ifndef CONFIG_DEBUG_LL
116 __initcall(p720t_hw_init);