ts78xx-fpga.h 557 B

1234567891011121314151617181920212223242526272829
  1. #define FPGAID(_magic, _rev) ((_magic << 8) + _rev)
  2. /*
  3. * get yer id's from http://ts78xx.digriz.org.uk/
  4. * do *not* make up your own or 'borrow' any!
  5. */
  6. enum fpga_ids {
  7. /* Technologic Systems */
  8. TS7800_REV_B2 = FPGAID(0x00b480, 0x02),
  9. TS7800_REV_B3 = FPGAID(0x00b480, 0x03),
  10. };
  11. struct fpga_device {
  12. unsigned present:1;
  13. unsigned init:1;
  14. };
  15. struct fpga_devices {
  16. /* Technologic Systems */
  17. struct fpga_device ts_rtc;
  18. struct fpga_device ts_nand;
  19. };
  20. struct ts78xx_fpga_data {
  21. unsigned int id;
  22. int state;
  23. struct fpga_devices supports;
  24. };