Skip to contentSkip to conversation

I2C implementation on MPC8260

DISCUSSION Jos Beck 3 participants 4 messages May 5, 2004

lore
Share & tools
lore

Jos Beck

author
#0 lore raw

Hi,

I am trying to get some i2c devices (RTC, EEPROM) to run on an MPC8260 with kernel version 2.4.21.
I have seen some fragmented information in the kernel source documentation and on this mailing list, but it's not clear to me what parts I can use and what I have to write myself.

Could anyone tell me where and how to start?

Thanks,

Jos

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

#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I am trying to get some i2c devices (RTC, EEPROM) to run on an MPC8260 with kernel version 2.4.21.

Use a more recent kernel.

Quoted 5 lines

I have seen some fragmented information in the kernel source documentation and on this mailing list, but it's not clear to me what parts I can use and what I have to write myself.

Could anyone tell me where and how to start?

The linuxppc_2_4_devel tree on our CVS server has I2C support for the
8260, and also includes several I2C based RTC modules. See
http://www.denx.de/re/linux.html

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] By the way, ALL software projects are done by iterative prototyping. Some companies call their prototypes "releases", that's all.

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

#2 lore raw
In reply to Jos Beck
Quoted 9 lines · Jos Beck

Hi,

I am trying to get some i2c devices (RTC, EEPROM) to run on an MPC8260 with kernel version 2.4.21.
I have seen some fragmented information in the kernel source documentation and on this mailing list, but it's not clear to me what parts I can use and what I have to write myself.

Could anyone tell me where and how to start?

I think you need i2c-core.c, i2c-dev.c, i2c-algo-8260.c and a driver file that set's up (board specific) i2c port settings and irq. I think there are examples in the denx tree. (i2c-pm826.c)

This is more or less the standard thing to do:
check the denx tree.

Jaap-Jan

Quoted 7 lines

Thanks,

Jos

--

J.G.J. Boor                       Anton Philipsweg 1
Software Engineer                 1223 KZ Hilversum
AimSys bv                         tel. +31 35 689 1941
Postbus 2194, 1200 CD Hilversum   mailto:[email protected]

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