1 /*
2  *  This program is free software; you can redistribute it and/or modify it
3  *  under the terms of the GNU General Public License version 2 as published
4  *  by the Free Software Foundation.
5  *
6  *  Copyright (C) 2010 John Crispin <blogic@openwrt.org>
7  */
8 
9 #ifndef _LANTIQ_PLATFORM_H__
10 #define _LANTIQ_PLATFORM_H__
11 
12 #include <linux/mtd/partitions.h>
13 
14 /* struct used to pass info to the pci core */
15 enum {
16 	PCI_CLOCK_INT = 0,
17 	PCI_CLOCK_EXT
18 };
19 
20 #define PCI_EXIN0	0x0001
21 #define PCI_EXIN1	0x0002
22 #define PCI_EXIN2	0x0004
23 #define PCI_EXIN3	0x0008
24 #define PCI_EXIN4	0x0010
25 #define PCI_EXIN5	0x0020
26 #define PCI_EXIN_MAX	6
27 
28 #define PCI_GNT1	0x0040
29 #define PCI_GNT2	0x0080
30 #define PCI_GNT3	0x0100
31 #define PCI_GNT4	0x0200
32 
33 #define PCI_REQ1	0x0400
34 #define PCI_REQ2	0x0800
35 #define PCI_REQ3	0x1000
36 #define PCI_REQ4	0x2000
37 #define PCI_REQ_SHIFT	10
38 #define PCI_REQ_MASK	0xf
39 
40 struct ltq_pci_data {
41 	int clock;
42 	int gpio;
43 	int irq[16];
44 };
45 
46 #endif
47