ts78xx-fpga.h 485 B

123456789101112131415161718192021222324252627
  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_B = FPGAID(0x00b480, 0x03),
  9. };
  10. struct fpga_device {
  11. unsigned present:1;
  12. unsigned init:1;
  13. };
  14. struct fpga_devices {
  15. /* Technologic Systems */
  16. struct fpga_device ts_rtc;
  17. };
  18. struct ts78xx_fpga_data {
  19. unsigned int id;
  20. int state;
  21. struct fpga_devices supports;
  22. };