summaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/ar9/devices.c
blob: ff06dcd0c1f3f07ea1d1a88588984c5a1ef585ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/mtd/physmap.h>
#include <linux/kernel.h>
#include <linux/reboot.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/etherdevice.h>
#include <linux/reboot.h>
#include <linux/time.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/leds.h>

#include <asm/bootinfo.h>
#include <asm/irq.h>

#include <ifxmips.h>
#include <ifxmips_irq.h>

/* pci */
extern int ifxmips_pci_external_clock;
extern int ifxmips_pci_req_mask;

void __init
ar9_register_pci(int clock, int irq_mask)
{
	ifxmips_pci_external_clock = clock;
	if(irq_mask)
		ifxmips_pci_req_mask = irq_mask;
}