login
Header Space

 
 

Re: iic(4) device discovery

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marco Trillo <marcotrillo@...>
Cc: <tech-kern@...>, Jachym Holecek <freza@...>
Date: Saturday, October 20, 2007 - 10:59 am

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Oct 20, 2007, at 07:37, Marco Trillo wrote:


At least the stuff hooked up to cuda's i2c bus is highly model  
specific and usually doesn't have an OF node. Take the beige G3 as an  
example - only one i2c address can be found via OF ( sgsmix ) and  
that's nowhere near cuda's node. The other devices on this bus -  
pretty much all the video IO stuff - ha no OF nodes anywhere. Then,  
some Apple onboard graphics chips are controlled via i2c. With ki2c  
usually there are OF nodes but not always - by Gigabit G4 for  
instance has none while my iBook G4 does. Newer firmware tends to  
have more information about i2c devices.
So, we can build a table of config hints before autoconf runs, part  
from data found in the OF tree, part from 'just knowing' what kind of  
hw certain models come with.
Some devices have model ID registers and can be probed for, although  
sgsmix isn't one of them. Mixer chips in newer models may or may not  
have ID registers - TAS300x does, DACA does not etc. What I'm getting  
at is - drivers for chips with ID registers should use them ( yeah,  
mine usually don't but that's trivial to change ) so we only need to  
compile data for chips that can't be reliably probed for.


Hmm, actually we can do both - not sure if it's worth the trouble  
though. If for instance ki2c would automatically compile config data  
for its childs when possible that's less work for the before autoconf  
data gatherer which would only have to deal with devices that can't  
be found that way.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBRxoX5MpnzkX8Yg2nAQKeNwf/T818khvVktKtj/CyjlIC8SQIwworMGx1
yGkVIUjRZ+CB4E0AOjmGKFJrYSjoUpCjyaEhuZB/9ctMUoJF04BvHHbhgi6u21jT
3ihHLaXZKoacaoxYwoDyHcelNuKji7Wi8aBG/I3P1DlBIGRG0AhY18k4+ueo5hAD
UfIYTQiGygn9umSrUV1/fffgD1RI+iAxRLgHtdnF1t1hdwVZAC+WBvJv7TFgboI8
7QChZJ8LqLiMvl3z6xhOvqiCuifq0iGFXu4EPx1DYscNwF17dPjZ1jJFmxEAF10s
s9Sv9HCeOMhb01W76eu/ZN0nV4Kw0wFRBgD/NAsCn1j2OlrxYw3Q8A==
=E5yq
-----END PGP SIGNATURE-----
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
iic(4) device discovery, Marco Trillo, (Fri Oct 19, 6:43 pm)
Re: iic(4) device discovery, Martin Husemann, (Fri Oct 19, 7:53 pm)
Re: iic(4) device discovery, Jason Thorpe, (Fri Oct 19, 7:56 pm)
Re: iic(4) device discovery, Marco Trillo, (Sat Oct 20, 4:42 am)
Re: iic(4) device discovery, Michael Lorenz, (Sat Oct 20, 11:07 am)
Re: iic(4) device discovery, Jachym Holecek, (Sat Oct 20, 5:12 am)
Re: iic(4) device discovery, Marco Trillo, (Sat Oct 20, 7:37 am)
Re: iic(4) device discovery, Michael Lorenz, (Sat Oct 20, 10:59 am)
Re: iic(4) device discovery, Jachym Holecek, (Sat Oct 20, 9:30 am)
Re: iic(4) device discovery, Quentin Garnier, (Sat Oct 20, 10:09 am)
Re: iic(4) device discovery, Martin Husemann, (Fri Oct 19, 8:04 pm)
speck-geostationary