mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
195f4a170e
Stefan Agner found his board comes with 0x00b480/0x02 but the main board also has Rev B printed on it like my 0x00b480/0x03. Some light enum renaming was needed but it was to be expected. Signed-off-by: Alexander Clouter <alex@digriz.org.uk> Signed-off-by: Nicolas Pitre <nico@marvell.com>
29 lines
557 B
C
29 lines
557 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_B2 = FPGAID(0x00b480, 0x02),
|
|
TS7800_REV_B3 = FPGAID(0x00b480, 0x03),
|
|
};
|
|
|
|
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;
|
|
};
|