Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193084
b: refs/heads/master
c: 16bfdaa
h: refs/heads/master
v: v3
  • Loading branch information
Pierre Gronlier authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 8ba988e commit fbfc5f2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5013318ca4fd22e30fd891f234b60daa3ca2f62d
refs/heads/master: 16bfdaa41be85512432212382f2600fcdf7c1c37
16 changes: 16 additions & 0 deletions trunk/drivers/media/video/cx23885/cx23885-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,22 @@ static int dvb_register(struct cx23885_tsport *port)
netup_ci_init(port);
break;
}
case CX23885_BOARD_TEVII_S470: {
u8 eeprom[256]; /* 24C02 i2c eeprom */

if (port->nr != 1)
break;

/* Read entire EEPROM */
dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1;
tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom));
printk(KERN_INFO "TeVii S470 MAC= "
"%02X:%02X:%02X:%02X:%02X:%02X\n",
eeprom[0xa0], eeprom[0xa1], eeprom[0xa2],
eeprom[0xa3], eeprom[0xa4], eeprom[0xa5]);
memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6);
break;
}
}

return ret;
Expand Down

0 comments on commit fbfc5f2

Please sign in to comment.