diff options
Diffstat (limited to 'arch/arm/mach-orion5x/ts78xx-fpga.h')
| -rw-r--r-- | arch/arm/mach-orion5x/ts78xx-fpga.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-orion5x/ts78xx-fpga.h b/arch/arm/mach-orion5x/ts78xx-fpga.h new file mode 100644 index 000000000000..0f9cdf458952 --- /dev/null +++ b/arch/arm/mach-orion5x/ts78xx-fpga.h | |||
| @@ -0,0 +1,35 @@ | |||
| 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 | |||
| 15 | /* Unaffordable & Expensive */ | ||
| 16 | UAE_DUMMY = FPGAID(0xffffff, 0x01), | ||
| 17 | }; | ||
| 18 | |||
| 19 | struct fpga_device { | ||
| 20 | unsigned present:1; | ||
| 21 | unsigned init:1; | ||
| 22 | }; | ||
| 23 | |||
| 24 | struct fpga_devices { | ||
| 25 | /* Technologic Systems */ | ||
| 26 | struct fpga_device ts_rtc; | ||
| 27 | struct fpga_device ts_nand; | ||
| 28 | }; | ||
| 29 | |||
| 30 | struct ts78xx_fpga_data { | ||
| 31 | unsigned int id; | ||
| 32 | int state; | ||
| 33 | |||
| 34 | struct fpga_devices supports; | ||
| 35 | }; | ||
