1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

use PCI revision to determine major firmware version

This commit is contained in:
none 2021-04-07 19:21:24 +02:00
parent 35c283bf2f
commit f12fe91b51
3 changed files with 5 additions and 0 deletions

View File

@ -312,6 +312,7 @@ static int __devinit ddb_probe(struct pci_dev *pdev,
dev->link[0].ids.subvendor = id->subvendor; dev->link[0].ids.subvendor = id->subvendor;
dev->link[0].ids.subdevice = pdev->subsystem_device; dev->link[0].ids.subdevice = pdev->subsystem_device;
dev->link[0].ids.devid = (id->device << 16) | id->vendor; dev->link[0].ids.devid = (id->device << 16) | id->vendor;
dev->link[0].ids.revision = pdev->revision;
dev->link[0].dev = dev; dev->link[0].dev = dev;
dev->link[0].info = get_ddb_info(id->vendor, id->device, dev->link[0].info = get_ddb_info(id->vendor, id->device,

View File

@ -2029,6 +2029,9 @@ static int mod_init_sdr_iq(struct ddb *dev)
ddbwritel(dev, 0x01, 0x240); ddbwritel(dev, 0x01, 0x240);
if (dev->link[0].ids.revision == 1)
return 0;
//mod3_set_base_frequency(dev, 602000000); //mod3_set_base_frequency(dev, 602000000);
dev->mod_base.frequency = 570000000; dev->mod_base.frequency = 570000000;
for (i = 0; i < streams; i++) { for (i = 0; i < streams; i++) {

View File

@ -143,6 +143,7 @@ struct ddb_ids {
u32 regmapid; u32 regmapid;
u32 devid; u32 devid;
u32 mac; u32 mac;
u8 revision;
}; };
struct ddb_info { struct ddb_info {