ts78xx-fpga.h 774 B

123456789101112131415161718192021222324252627282930313233343536
  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_1 = FPGAID(0x00b480, 0x01),
  9. TS7800_REV_2 = FPGAID(0x00b480, 0x02),
  10. TS7800_REV_3 = FPGAID(0x00b480, 0x03),
  11. TS7800_REV_4 = FPGAID(0x00b480, 0x04),
  12. TS7800_REV_5 = FPGAID(0x00b480, 0x05),
  13. /* Unaffordable & Expensive */
  14. UAE_DUMMY = FPGAID(0xffffff, 0x01),
  15. };
  16. struct fpga_device {
  17. unsigned present:1;
  18. unsigned init:1;
  19. };
  20. struct fpga_devices {
  21. /* Technologic Systems */
  22. struct fpga_device ts_rtc;
  23. struct fpga_device ts_nand;
  24. struct fpga_device ts_rng;
  25. };
  26. struct ts78xx_fpga_data {
  27. unsigned int id;
  28. int state;
  29. struct fpga_devices supports;
  30. };