I had forgotten to send this mail...
==============
Hello Hans,
Sorry for my late response.
In <[EMAIL PROTECTED]> message,
[EMAIL PROTECTED] wrote:
> I've noticed that the saa717x uses the same I2C address as the
> saa7114/5. Do you know of a way to uniquely identify the saa717x?
>
> One option is to check what happens when you write to I2C address 0. The
> saa7114 and saa7115 return an ID 'string' by alternately writing and
> reading I2C address 0:
>
> for (i = 0; i < 16; i++) {
> saa7115_write(client, 0, i);
> printk("%02x\n", saa7115_read(client, 0));
> }
>
> Can you try this on the saa717x? If this works and we get a unique
> identifier, then that method can be used. If it always returns a
> constant value, then it might be possible to use that as the ID.
The register address of saa7114/5 is 8bit. But, that of saa7173/4
is 12bit(16bit?). And I was not able to find the register that showed
chipversion on saa7173/4. The 000H register of saa7173/4 is a register
for video scaler.
There was a part that seemed that the driver checked whether the chip
was saa7115 or saa7173 when we dumped I2C bus.
Step1:
write: 0x0A 0xAA
read: 0x0A
===> Perhaps, when 0xAA can be read here, it is judged that it is saa7114/5.
Step2:
write: 0x01 0x0A 0xAA
read: 0x01 0x0A
===> Perhaps, when 0xAA can be read here, it is judged that it is saa7173/4.
# I don't know why the programmer used the "Luminance/brightness control
# register" to check the chip :-)
---
T.Adachi
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel