diff options
Diffstat (limited to 'drivers/media/video/cx23885')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-dvb.c | 16 |
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; |