Subject: Re: SMBus implementation
To: Jared D. McNeill <jmcneill@invisible.ca>
From: Michael <macallan18@earthlink.net>
List: tech-kern
Date: 10/28/2005 20:34:07
--Signature_Fri__28_Oct_2005_20_34_07_-0400_KH7fdJYFJHArZdah
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> I now have iic attaching to viapcib, but it just occurred to me that
> to attach to iic I need to specify an 'addr'. How does isapnp@isa get
> around this? Is it simply possible because ISA doesn't have strict
> requirements on attach args? Will anybody scream bloody murder if I
> make 'addr' optional in i2c_attach_args?

I'm not sure. Many iic devices have at least partially hardcoded
addresses, usually you can choose between two by pulling a pin low or
high.
The problem is that these addresses aren't necessarily unique since the
address space is pretty small and not all devices can be reliably probed
( you can check if /a/ device is there but you can't always be sure it
really is what you're looking for )

Not that I'm an expert on iic stuff, but this is what I learned when
writing drivers for hardware monitors found in various Macs ( where I
cheated and used the OF device tree to find the iic addresses )

have fun
Michael

--Signature_Fri__28_Oct_2005_20_34_07_-0400_KH7fdJYFJHArZdah
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQ2LDf8pnzkX8Yg2nAQLKlQf+KwSZI6j9NpeYsK9LhrYUubvhBf59t9qk
gFb1bomRqMAYsTM6COFolGGyF9lszaWhLlB/V1RueQJncaDC4Sn1mg6JQMyjGbIT
X3/HAP3mduq5TLgieAki/NFhD8PHoGCQV+kzL9UR4LtXGaqtYGTQauU3flHLoJPC
90ZfiPPaCPnm/Fu6x4e55vlk6NIh60O0rHfUx4pSkSWtoJtb34Ob9KCIefMvPztr
tEhphDCah2zrUIEsOQ8Sd6u48g3vyZciMM/8rMAE8NowvkX2w4wqgL9e1PhjunLx
peitwTQFoYO9m8+l+L4Pvz3e6J2waMWO8TDEoEhrscnR5uKjByTfvw==
=GMns
-----END PGP SIGNATURE-----

--Signature_Fri__28_Oct_2005_20_34_07_-0400_KH7fdJYFJHArZdah--