how to use the i2c in mpc5200

iida iida at ztec.com.br
Fri May 28 05:32:36 EST 2004


i2s is anoter i/o , but i read the source of i2c and
i think that the minor number is correct
Thanks for help

linuxppc-embedded at 2nerds.com wrote:

> On Thu, 27 May 2004, iida wrote:
>
>> i created the i2c with
>> mknod /dev/i2c c 89 1
>
>
> This is just a hunch, but is that the proper minor device number?  In my
> copy of the kernel sources, in the file arch/ppc/5xxx_io/i2s.c, I see
> this
> definition:
>
> #define I2S_MINOR 242
>
> ...which makes me wonder if "mknod /dev/i2c c 89 242" would work any
> better.  Does your source tree include that same definition?  Is that
> "minor number" the one you need to use with mknod?
>
> I'm a novice at this Linux-on-embedded-PPC stuff, so please forgive me if
> this is useless advice--and please let me know how you resolved the
> problem when you find the "right" answer. :-)
>
> Chris


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list