[ARM] update FPGA revisions for TS-7800
[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_1    = FPGAID(0x00b480, 0x01),
10         TS7800_REV_2    = FPGAID(0x00b480, 0x02),
11         TS7800_REV_3    = FPGAID(0x00b480, 0x03),
12         TS7800_REV_4    = FPGAID(0x00b480, 0x04),
13         TS7800_REV_5    = FPGAID(0x00b480, 0x05),
14         TS7800_REV_6    = FPGAID(0x00b480, 0x06),
15         TS7800_REV_7    = FPGAID(0x00b480, 0x07),
16         TS7800_REV_8    = FPGAID(0x00b480, 0x08),
17         TS7800_REV_9    = FPGAID(0x00b480, 0x09),
18
19         /* Unaffordable & Expensive */
20         UAE_DUMMY       = FPGAID(0xffffff, 0x01),
21 };
22
23 struct fpga_device {
24         unsigned                present:1;
25         unsigned                init:1;
26 };
27
28 struct fpga_devices {
29         /* Technologic Systems */
30         struct fpga_device      ts_rtc;
31         struct fpga_device      ts_nand;
32         struct fpga_device      ts_rng;
33 };
34
35 struct ts78xx_fpga_data {
36         unsigned int            id;
37         int                     state;
38
39         struct fpga_devices     supports;
40 };