Path: blob/master/arch/arm/mach-ks8695/board-micrel.c
10817 views
/*1* arch/arm/mach-ks8695/board-micrel.c2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License version 2 as5* published by the Free Software Foundation.6*/78#include <linux/kernel.h>9#include <linux/types.h>10#include <linux/interrupt.h>11#include <linux/init.h>12#include <linux/platform_device.h>1314#include <asm/mach-types.h>1516#include <asm/mach/arch.h>17#include <asm/mach/map.h>18#include <asm/mach/irq.h>1920#include <mach/gpio.h>21#include <mach/devices.h>2223#include "generic.h"2425#ifdef CONFIG_PCI26static int micrel_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)27{28return KS8695_IRQ_EXTERN0;29}3031static struct ks8695_pci_cfg __initdata micrel_pci = {32.mode = KS8695_MODE_MINIPCI,33.map_irq = micrel_pci_map_irq,34};35#endif363738static void __init micrel_init(void)39{40printk(KERN_INFO "Micrel KS8695 Development Board initializing\n");4142ks8695_register_gpios();4344#ifdef CONFIG_PCI45ks8695_init_pci(&micrel_pci);46#endif4748/* Add devices */49ks8695_add_device_wan(); /* eth0 = WAN */50ks8695_add_device_lan(); /* eth1 = LAN */51}5253MACHINE_START(KS8695, "KS8695 Centaur Development Board")54/* Maintainer: Micrel Semiconductor Inc. */55.boot_params = KS8695_SDRAM_PA + 0x100,56.map_io = ks8695_map_io,57.init_irq = ks8695_init_irq,58.init_machine = micrel_init,59.timer = &ks8695_timer,60MACHINE_END616263