MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / arch / arm / mach-ks8695 / mm.c
blobeb9704418f3fadc19104f2a6b68ec2ac55dc6b49
1 /*
2 * linux/arch/arm/mach-ks8695/mm.c
4 * Copyright (C) 1999,2000 Arm Limited
5 * Copyright (C) 2000 Deep Blue Solutions Ltd
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include <linux/mm.h>
23 #include <linux/init.h>
24 #include <asm/io.h>
25 #include <asm/page.h>
26 #include <asm/sizes.h>
27 #include <asm/mach/map.h>
30 * The only fixed mapping we setup is for the internal register block.
31 * This contains the all the device peripheral registers.
33 * Logical Physical Comment
34 * -----------------------------------------
35 * FF000000 03FF0000 IO registers
37 static struct map_desc ks8695_io_desc[] __initdata = {
39 .virtual = KS8695_IO_VIRT,
40 .pfn = __phys_to_pfn(KS8695_IO_BASE),
41 .length = SZ_64K,
42 .type = MT_DEVICE
46 void __init ks8695_map_io(void)
48 iotable_init(ks8695_io_desc, ARRAY_SIZE(ks8695_io_desc));