Re: I2C interrupts on 8541

2007-07-31 Thread Kumar Gala

On Jul 30, 2007, at 11:51 AM, Charles Krinke wrote:

 I'm puzzled about how to setup interrupts for the second I2C interface
 in an 8541. This is the CPM interface, the one with buffer  
 descriptors.

 I see mention of its I2CER/I2CMR registers, but am having trouble
 figuring out how to enable and interrupt so that when the interface is
 in slave mode and a packet is received, it will vector to an interrupt
 service routine.

 I am using Linux-2.7.17.11 and I know you-all have gone past this a  
 bit,
 but in the midst of a project, we are constrained to finish with the
 kernel we started with.

 A few pointers on enabling an interrupt from this interface would be
 greatly appreciated.

To get interrupts you need to use the BD rings.  Look at the section  
'I2C Buffer Descriptors' in the 8555 UM and it shows 'I' bits in both  
the TX  RX rings that should cause interrupts.

- k
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


I2C interrupts on 8541

2007-07-30 Thread Charles Krinke
I'm puzzled about how to setup interrupts for the second I2C interface
in an 8541. This is the CPM interface, the one with buffer descriptors.

I see mention of its I2CER/I2CMR registers, but am having trouble
figuring out how to enable and interrupt so that when the interface is
in slave mode and a packet is received, it will vector to an interrupt
service routine.

I am using Linux-2.7.17.11 and I know you-all have gone past this a bit,
but in the midst of a project, we are constrained to finish with the
kernel we started with.

A few pointers on enabling an interrupt from this interface would be
greatly appreciated.

Charles
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded