Path: blob/master/arch/arm/mach-clps711x/autcpu12.c
10817 views
/*1* linux/arch/arm/mach-clps711x/autcpu12.c2*3* (c) 2001 Thomas Gleixner, autronix automation <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/19#include <linux/kernel.h>20#include <linux/init.h>21#include <linux/types.h>22#include <linux/string.h>23#include <linux/mm.h>24#include <linux/io.h>2526#include <mach/hardware.h>27#include <asm/sizes.h>28#include <asm/setup.h>29#include <asm/mach-types.h>30#include <asm/mach/arch.h>31#include <asm/pgtable.h>32#include <asm/page.h>3334#include <asm/mach/map.h>35#include <mach/autcpu12.h>3637#include "common.h"3839/*40* The on-chip registers are given a size of 1MB so that a section can41* be used to map them; this saves a page table. This is the place to42* add mappings for ROM, expansion memory, PCMCIA, etc. (if static43* mappings are chosen for those areas).44*45*/4647static struct map_desc autcpu12_io_desc[] __initdata = {48/* memory-mapped extra io and CS8900A Ethernet chip */49/* ethernet chip */50{51.virtual = AUTCPU12_VIRT_CS8900A,52.pfn = __phys_to_pfn(AUTCPU12_PHYS_CS8900A),53.length = SZ_1M,54.type = MT_DEVICE55}56};5758void __init autcpu12_map_io(void)59{60clps711x_map_io();61iotable_init(autcpu12_io_desc, ARRAY_SIZE(autcpu12_io_desc));62}6364MACHINE_START(AUTCPU12, "autronix autcpu12")65/* Maintainer: Thomas Gleixner */66.boot_params = 0xc0020000,67.map_io = autcpu12_map_io,68.init_irq = clps711x_init_irq,69.timer = &clps711x_timer,70MACHINE_END71727374