blob: 37b3d4875291af1a076dd4c77f4455f2a8827fc8 [file] [log] [blame]
Alexander Clouter39008f92009-02-06 22:16:55 +00001#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 */
7enum fpga_ids {
8 /* Technologic Systems */
Alexander Clouter0c1355e2009-03-21 11:09:25 +00009 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
15 /* Unaffordable & Expensive */
16 UAE_DUMMY = FPGAID(0xffffff, 0x01),
Alexander Clouter39008f92009-02-06 22:16:55 +000017};
18
19struct fpga_device {
20 unsigned present:1;
21 unsigned init:1;
22};
23
24struct fpga_devices {
25 /* Technologic Systems */
26 struct fpga_device ts_rtc;
Alexander Clouter75bb6b92009-02-23 22:40:01 +000027 struct fpga_device ts_nand;
Alexander Cloutera914d432009-05-03 12:57:48 -070028 struct fpga_device ts_rng;
Alexander Clouter39008f92009-02-06 22:16:55 +000029};
30
31struct ts78xx_fpga_data {
32 unsigned int id;
33 int state;
34
35 struct fpga_devices supports;
36};