Path: blob/master/arch/arm/mach-clps711x/cdb89712.c
10817 views
/*1* linux/arch/arm/mach-clps711x/cdb89712.c2*3* Copyright (C) 2000-2001 Deep Blue Solutions Ltd4*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/pgtable.h>28#include <asm/page.h>29#include <asm/setup.h>30#include <asm/mach-types.h>31#include <asm/mach/arch.h>32#include <asm/mach/map.h>3334#include "common.h"3536/*37* Map the CS89712 Ethernet port. That should be moved to the38* ethernet driver, perhaps.39*/40static struct map_desc cdb89712_io_desc[] __initdata = {41{42.virtual = ETHER_BASE,43.pfn =__phys_to_pfn(ETHER_START),44.length = ETHER_SIZE,45.type = MT_DEVICE46}47};4849static void __init cdb89712_map_io(void)50{51clps711x_map_io();52iotable_init(cdb89712_io_desc, ARRAY_SIZE(cdb89712_io_desc));53}5455MACHINE_START(CDB89712, "Cirrus-CDB89712")56/* Maintainer: Ray Lehtiniemi */57.boot_params = 0xc0000100,58.map_io = cdb89712_map_io,59.init_irq = clps711x_init_irq,60.timer = &clps711x_timer,61MACHINE_END626364