ts78xx-fpga.h 515 B

12345678910111213141516171819202122232425262728
  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. struct fpga_device ts_nand;
  18. };
  19. struct ts78xx_fpga_data {
  20. unsigned int id;
  21. int state;
  22. struct fpga_devices supports;
  23. };