aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPierre Gronlier <ticapix@gmail.com>2010-04-26 12:26:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:58:28 -0400
commit16bfdaa41be85512432212382f2600fcdf7c1c37 (patch)
tree26c1626d05f185a2cbc30e7ea8303f7ae7ac1842 /drivers
parent5013318ca4fd22e30fd891f234b60daa3ca2f62d (diff)
V4L/DVB: Read MAC for TeVii S470 PCI-e DVB-S2 card
This patch retrieve the correct mac address from the eeprom for TeVii S470 card. Signed-off-by: Pierre Gronlier <pierre.gronlier@gmail.com> Cc: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 939079d7bbb9..9e1460828b2f 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -1006,6 +1006,22 @@ static int dvb_register(struct cx23885_tsport *port)
1006 netup_ci_init(port); 1006 netup_ci_init(port);
1007 break; 1007 break;
1008 } 1008 }
1009 case CX23885_BOARD_TEVII_S470: {
1010 u8 eeprom[256]; /* 24C02 i2c eeprom */
1011
1012 if (port->nr != 1)
1013 break;
1014
1015 /* Read entire EEPROM */
1016 dev->i2c_bus[0].i2c_client.addr = 0xa0 >> 1;
1017 tveeprom_read(&dev->i2c_bus[0].i2c_client, eeprom, sizeof(eeprom));
1018 printk(KERN_INFO "TeVii S470 MAC= "
1019 "%02X:%02X:%02X:%02X:%02X:%02X\n",
1020 eeprom[0xa0], eeprom[0xa1], eeprom[0xa2],
1021 eeprom[0xa3], eeprom[0xa4], eeprom[0xa5]);
1022 memcpy(port->frontends.adapter.proposed_mac, eeprom + 0xa0, 6);
1023 break;
1024 }
1009 } 1025 }
1010 1026
1011 return ret; 1027 return ret;