mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
0c1355e36f
Received official word finally from Technological Systems on which FPGA ID's they have released unto the world. Also an additional of a dummy entry matching the FPGA ID of the Verilog template on our wiki. Signed-off-by: Alexander Clouter <alex@digriz.org.uk> Signed-off-by: Nicolas Pitre <nico@marvell.com>
36 lines
745 B
C
36 lines
745 B
C
#define FPGAID(_magic, _rev) ((_magic << 8) + _rev)
|
|
|
|
/*
|
|
* get yer id's from http://ts78xx.digriz.org.uk/
|
|
* do *not* make up your own or 'borrow' any!
|
|
*/
|
|
enum fpga_ids {
|
|
/* Technologic Systems */
|
|
TS7800_REV_1 = FPGAID(0x00b480, 0x01),
|
|
TS7800_REV_2 = FPGAID(0x00b480, 0x02),
|
|
TS7800_REV_3 = FPGAID(0x00b480, 0x03),
|
|
TS7800_REV_4 = FPGAID(0x00b480, 0x04),
|
|
TS7800_REV_5 = FPGAID(0x00b480, 0x05),
|
|
|
|
/* Unaffordable & Expensive */
|
|
UAE_DUMMY = FPGAID(0xffffff, 0x01),
|
|
};
|
|
|
|
struct fpga_device {
|
|
unsigned present:1;
|
|
unsigned init:1;
|
|
};
|
|
|
|
struct fpga_devices {
|
|
/* Technologic Systems */
|
|
struct fpga_device ts_rtc;
|
|
struct fpga_device ts_nand;
|
|
};
|
|
|
|
struct ts78xx_fpga_data {
|
|
unsigned int id;
|
|
int state;
|
|
|
|
struct fpga_devices supports;
|
|
};
|