Alexander Clouter | 39008f9 | 2009-02-06 22:16:55 +0000 | [diff] [blame] | 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_B = FPGAID(0x00b480, 0x03), |
| 10 | }; |
| 11 | |
| 12 | struct fpga_device { |
| 13 | unsigned present:1; |
| 14 | unsigned init:1; |
| 15 | }; |
| 16 | |
| 17 | struct fpga_devices { |
| 18 | /* Technologic Systems */ |
| 19 | struct fpga_device ts_rtc; |
Alexander Clouter | 75bb6b9 | 2009-02-23 22:40:01 +0000 | [diff] [blame^] | 20 | struct fpga_device ts_nand; |
Alexander Clouter | 39008f9 | 2009-02-06 22:16:55 +0000 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | struct ts78xx_fpga_data { |
| 24 | unsigned int id; |
| 25 | int state; |
| 26 | |
| 27 | struct fpga_devices supports; |
| 28 | }; |