mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
add check for minimum FPGA firmware version
This commit is contained in:
parent
cad161f939
commit
c831ccfc9e
@ -336,6 +336,7 @@ static const struct ddb_info ddb_v7a = {
|
|||||||
.board_control = 2,
|
.board_control = 2,
|
||||||
.board_control_2 = 4,
|
.board_control_2 = 4,
|
||||||
.ts_quirks = TS_QUIRK_REVERSED,
|
.ts_quirks = TS_QUIRK_REVERSED,
|
||||||
|
.hw_min = 0x010007,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct ddb_info ddb_v7 = {
|
static const struct ddb_info ddb_v7 = {
|
||||||
@ -347,6 +348,7 @@ static const struct ddb_info ddb_v7 = {
|
|||||||
.board_control = 2,
|
.board_control = 2,
|
||||||
.board_control_2 = 4,
|
.board_control_2 = 4,
|
||||||
.ts_quirks = TS_QUIRK_REVERSED,
|
.ts_quirks = TS_QUIRK_REVERSED,
|
||||||
|
.hw_min = 0x010007,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct ddb_info ddb_ctv7 = {
|
static const struct ddb_info ddb_ctv7 = {
|
||||||
@ -391,6 +393,7 @@ static const struct ddb_info ddb_ci_s2_pro = {
|
|||||||
.i2c_mask = 0x01,
|
.i2c_mask = 0x01,
|
||||||
.board_control = 2,
|
.board_control = 2,
|
||||||
.board_control_2 = 4,
|
.board_control_2 = 4,
|
||||||
|
.hw_min = 0x010007,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct ddb_info ddb_ci_s2_pro_a = {
|
static const struct ddb_info ddb_ci_s2_pro_a = {
|
||||||
@ -401,6 +404,7 @@ static const struct ddb_info ddb_ci_s2_pro_a = {
|
|||||||
.i2c_mask = 0x01,
|
.i2c_mask = 0x01,
|
||||||
.board_control = 2,
|
.board_control = 2,
|
||||||
.board_control_2 = 4,
|
.board_control_2 = 4,
|
||||||
|
.hw_min = 0x010007,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct ddb_info ddb_dvbct = {
|
static const struct ddb_info ddb_dvbct = {
|
||||||
|
@ -337,6 +337,13 @@ static int __devinit ddb_probe(struct pci_dev *pdev,
|
|||||||
|
|
||||||
dev_info(dev->dev, "HW %08x REGMAP %08x\n",
|
dev_info(dev->dev, "HW %08x REGMAP %08x\n",
|
||||||
dev->link[0].ids.hwid, dev->link[0].ids.regmapid);
|
dev->link[0].ids.hwid, dev->link[0].ids.regmapid);
|
||||||
|
if ((dev->link[0].ids.hwid & 0xffffff) <
|
||||||
|
dev->link[0].info->hw_min) {
|
||||||
|
u32 min = dev->link[0].info->hw_min;
|
||||||
|
|
||||||
|
dev_err(dev->dev, "Update firmware to at least version %u.%u to ensure full functionality!\n",
|
||||||
|
(min & 0xff0000) >> 16, min & 0xffff);
|
||||||
|
}
|
||||||
|
|
||||||
if (dev->link[0].info->ns_num) {
|
if (dev->link[0].info->ns_num) {
|
||||||
ddbwritel(dev, 0, ETHER_CONTROL);
|
ddbwritel(dev, 0, ETHER_CONTROL);
|
||||||
|
@ -167,6 +167,7 @@ struct ddb_info {
|
|||||||
u8 ns_num;
|
u8 ns_num;
|
||||||
u8 con_clock; /* use a continuous clock */
|
u8 con_clock; /* use a continuous clock */
|
||||||
u8 ts_quirks;
|
u8 ts_quirks;
|
||||||
|
u8 mci;
|
||||||
#define TS_QUIRK_SERIAL 1
|
#define TS_QUIRK_SERIAL 1
|
||||||
#define TS_QUIRK_REVERSED 2
|
#define TS_QUIRK_REVERSED 2
|
||||||
#define TS_QUIRK_NO_OUTPUT 4
|
#define TS_QUIRK_NO_OUTPUT 4
|
||||||
@ -174,7 +175,7 @@ struct ddb_info {
|
|||||||
u32 tempmon_irq;
|
u32 tempmon_irq;
|
||||||
u32 lostlock_irq;
|
u32 lostlock_irq;
|
||||||
u32 mdio_base;
|
u32 mdio_base;
|
||||||
u8 mci;
|
u32 hw_min;
|
||||||
const struct ddb_regmap *regmap;
|
const struct ddb_regmap *regmap;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user