[ARM] orion5x: added a new FPGA ID set for the TS-78xx
[pandora-kernel.git] / arch / arm / mach-orion5x / ts78xx-fpga.h
1 #define FPGAID(_magic, _rev) ((_magic << 8) + _rev)
2
3 /*
4  * get yer id's from http://ts78xx.digriz.org.uk/
5  * do *not* make up your own or 'borrow' any!
6  */
7 enum fpga_ids {
8         /* Technologic Systems */
9         TS7800_REV_B2 = FPGAID(0x00b480, 0x02),
10         TS7800_REV_B3 = FPGAID(0x00b480, 0x03),
11 };
12
13 struct fpga_device {
14         unsigned                present:1;
15         unsigned                init:1;
16 };
17
18 struct fpga_devices {
19         /* Technologic Systems */
20         struct fpga_device      ts_rtc;
21         struct fpga_device      ts_nand;
22 };
23
24 struct ts78xx_fpga_data {
25         unsigned int            id;
26         int                     state;
27
28         struct fpga_devices     supports;
29 };