]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/mach-clps711x/mp1000-mm.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
[linux-2.6-omap-h63xx.git] / arch / arm / mach-clps711x / mp1000-mm.c
1 /*
2  *  linux/arch/arm/mach-mp1000/mm.c
3  *
4  *  Extra MM routines for the MP1000
5  *
6  *  Copyright (C) 2005 Comdial Corporation
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22 #include <linux/kernel.h>
23 #include <linux/init.h>
24
25 #include <asm/hardware.h>
26 #include <asm/page.h>
27 #include <asm/pgtable.h>
28 #include <asm/sizes.h>
29
30 #include <asm/mach/map.h>
31
32 extern void clps711x_map_io(void);
33
34 static struct map_desc mp1000_io_desc[] __initdata = {
35     { MP1000_EIO_BASE,  MP1000_EIO_START,       MP1000_EIO_SIZE, MT_DEVICE },
36     { MP1000_FIO_BASE,  MP1000_FIO_START,       MP1000_FIO_SIZE, MT_DEVICE },
37     { MP1000_LIO_BASE,  MP1000_LIO_START,       MP1000_LIO_SIZE, MT_DEVICE },
38     { MP1000_NIO_BASE,  MP1000_NIO_START,       MP1000_NIO_SIZE, MT_DEVICE },
39     { MP1000_IDE_BASE,  MP1000_IDE_START,       MP1000_IDE_SIZE, MT_DEVICE },
40     { MP1000_DSP_BASE,  MP1000_DSP_START,       MP1000_DSP_SIZE, MT_DEVICE }
41 };
42
43 void __init mp1000_map_io(void)
44 {
45         clps711x_map_io();
46         iotable_init(mp1000_io_desc, ARRAY_SIZE(mp1000_io_desc));
47 }