]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/arm/mach-ks8695/board-micrel.c
[ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
[mirror_ubuntu-hirsute-kernel.git] / arch / arm / mach-ks8695 / board-micrel.c
CommitLineData
9bf77ee6
AV
1/*
2 * arch/arm/mach-ks8695/board-micrel.c
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#include <linux/kernel.h>
10#include <linux/types.h>
11#include <linux/interrupt.h>
12#include <linux/init.h>
13#include <linux/platform_device.h>
14
15#include <asm/mach-types.h>
16
17#include <asm/mach/arch.h>
18#include <asm/mach/map.h>
19#include <asm/mach/irq.h>
20
a09e64fb 21#include <mach/devices.h>
9bf77ee6
AV
22
23#include "generic.h"
24
25#ifdef CONFIG_PCI
daa7162f 26static int micrel_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
9bf77ee6
AV
27{
28 return KS8695_IRQ_EXTERN0;
29}
30
daa7162f 31static struct ks8695_pci_cfg __initdata micrel_pci = {
9bf77ee6
AV
32 .mode = KS8695_MODE_MINIPCI,
33 .map_irq = micrel_pci_map_irq,
34};
35#endif
36
37
daa7162f 38static void __init micrel_init(void)
9bf77ee6
AV
39{
40 printk(KERN_INFO "Micrel KS8695 Development Board initializing\n");
41
42#ifdef CONFIG_PCI
7d77ce8f 43 ks8695_init_pci(&micrel_pci);
9bf77ee6
AV
44#endif
45
46 /* Add devices */
47 ks8695_add_device_wan(); /* eth0 = WAN */
48 ks8695_add_device_lan(); /* eth1 = LAN */
49}
50
51MACHINE_START(KS8695, "KS8695 Centaur Development Board")
52 /* Maintainer: Micrel Semiconductor Inc. */
53 .phys_io = KS8695_IO_PA,
54 .io_pg_offst = (KS8695_IO_VA >> 18) & 0xfffc,
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_END