/*1* linux/arch/arm/mach-clps711x/mm.c2*3* Generic MM setup for the CLPS711x-based machines.4*5* Copyright (C) 2001 Deep Blue Solutions Ltd6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA20*/21#include <linux/kernel.h>22#include <linux/mm.h>23#include <linux/init.h>2425#include <asm/sizes.h>26#include <mach/hardware.h>27#include <asm/pgtable.h>28#include <asm/page.h>29#include <asm/mach/map.h>30#include <asm/hardware/clps7111.h>3132/*33* This maps the generic CLPS711x registers34*/35static struct map_desc clps711x_io_desc[] __initdata = {36{37.virtual = CLPS7111_VIRT_BASE,38.pfn = __phys_to_pfn(CLPS7111_PHYS_BASE),39.length = SZ_1M,40.type = MT_DEVICE41}42};4344void __init clps711x_map_io(void)45{46iotable_init(clps711x_io_desc, ARRAY_SIZE(clps711x_io_desc));47}484950