All of lore.kernel.org
 help / color / mirror / Atom feed
* Interrupts on xilinx ml403
@ 2007-07-20 13:52 Mirek23
  2007-07-20 15:12 ` Grant Likely
  2007-07-24  7:31 ` Misbah khan
  0 siblings, 2 replies; 6+ messages in thread
From: Mirek23 @ 2007-07-20 13:52 UTC (permalink / raw)
  To: linuxppc-embedded


Dear All,

      I use linux kernel 2.6 on ppc405 of my Avnet (xilinx like ml403)
evaluation board.

I have setup the virtex-4 FPGA to deal with Themac and Serial interfaces. As
input/output devices I have chosen 8 LEDs and DIP Switches.

With such a configuration I am able to control from Linux user applications
via GPIO driver the LEDs and DIP Switches.

Right now I just wanted to make use of the interrupts. I have configured the
Dip switches to use interrupt. The interrupt accoures when the DIP Switches
state has changed.

In the BSP generated by EDK 9.1 I see that macro :   

#define XPAR_DIP_SWITCHES_8BIT_INTERRUPT_PRESENT 1

has changed from zero to one.
The macro XPAR_INTC_MAX_NUM_INTR_INPUTS is set to 1 as it was before. This
is due to the fact that 
TEMAC uses one interrupt line.

Does it mean that DIP Switches do not use INTC interrupt controller?
How to handle the DIP Switches interrupt?
Does the Interrupt handler routine have to acknowledge the interrupt from
Dip Switches?

Many thanks in advance for any hint on that.

Best Regards

Mirek




 
-- 
View this message in context: http://www.nabble.com/Interrupts-on-xilinx-ml403-tf4117226.html#a11708607
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interrupts on xilinx ml403
  2007-07-20 13:52 Interrupts on xilinx ml403 Mirek23
@ 2007-07-20 15:12 ` Grant Likely
  2007-07-24 15:19   ` Mirek23
  2007-07-24  7:31 ` Misbah khan
  1 sibling, 1 reply; 6+ messages in thread
From: Grant Likely @ 2007-07-20 15:12 UTC (permalink / raw)
  To: Mirek23; +Cc: linuxppc-embedded

On 7/20/07, Mirek23 <miroslaw.dach@psi.ch> wrote:
> Does it mean that DIP Switches do not use INTC interrupt controller?
> How to handle the DIP Switches interrupt?
> Does the Interrupt handler routine have to acknowledge the interrupt from
> Dip Switches?

It probably means that the GPIO irq out line is not hooked up to your
INTC in the system.mhs file.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interrupts on xilinx ml403
  2007-07-20 13:52 Interrupts on xilinx ml403 Mirek23
  2007-07-20 15:12 ` Grant Likely
@ 2007-07-24  7:31 ` Misbah khan
  2007-07-24 15:22   ` Mirek23
  1 sibling, 1 reply; 6+ messages in thread
From: Misbah khan @ 2007-07-24  7:31 UTC (permalink / raw)
  To: linuxppc-embedded


hi ..

If you could send me the code and the config related doc . I could then be
able to suggest you something. As per the understanding of the problem i
guess you are not congiguring the interrupt controller properly. you have to
use correct IRQ no for  that ports then other configuration such as
interrupt type, and whenever you service the interrupt you have to clear the
interrupt etc are to be taken care ....Please see the interrupt controller
register and do your settings correctly . If the same persists then you
please send me the code and the documents then only i could give the exact
explaination on this 

----misbah

Mirek23 wrote:
> 
> Dear All,
> 
>       I use linux kernel 2.6 on ppc405 of my Avnet (xilinx like ml403)
> evaluation board.
> 
> I have setup the virtex-4 FPGA to deal with Themac and Serial interfaces.
> As input/output devices I have chosen 8 LEDs and DIP Switches.
> 
> With such a configuration I am able to control from Linux user
> applications via GPIO driver the LEDs and DIP Switches.
> 
> Right now I just wanted to make use of the interrupts. I have configured
> the Dip switches to use interrupt. The interrupt accoures when the DIP
> Switches state has changed.
> 
> In the BSP generated by EDK 9.1 I see that macro :   
> 
> #define XPAR_DIP_SWITCHES_8BIT_INTERRUPT_PRESENT 1
> 
> has changed from zero to one.
> The macro XPAR_INTC_MAX_NUM_INTR_INPUTS is set to 1 as it was before. This
> is due to the fact that 
> TEMAC uses one interrupt line.
> 
> Does it mean that DIP Switches do not use INTC interrupt controller?
> How to handle the DIP Switches interrupt?
> Does the Interrupt handler routine have to acknowledge the interrupt from
> Dip Switches?
> 
> Many thanks in advance for any hint on that.
> 
> Best Regards
> 
> Mirek
> 
> 
> 
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/Interrupts-on-xilinx-ml403-tf4117226.html#a11758237
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interrupts on xilinx ml403
  2007-07-20 15:12 ` Grant Likely
@ 2007-07-24 15:19   ` Mirek23
  0 siblings, 0 replies; 6+ messages in thread
From: Mirek23 @ 2007-07-24 15:19 UTC (permalink / raw)
  To: linuxppc-embedded


Hi Grant,

   Thanks for the suggestion. I will fix that and see what the EDK will
generate.

Best Regards

Mirek



Grant Likely-2 wrote:
> 
> On 7/20/07, Mirek23 <miroslaw.dach@psi.ch> wrote:
>> Does it mean that DIP Switches do not use INTC interrupt controller?
>> How to handle the DIP Switches interrupt?
>> Does the Interrupt handler routine have to acknowledge the interrupt from
>> Dip Switches?
> 
> It probably means that the GPIO irq out line is not hooked up to your
> INTC in the system.mhs file.
> 
> g.
> 
> -- 
> Grant Likely, B.Sc., P.Eng.
> Secret Lab Technologies Ltd.
> grant.likely@secretlab.ca
> (403) 399-0195
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 

-- 
View this message in context: http://www.nabble.com/Interrupts-on-xilinx-ml403-tf4117226.html#a11765478
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interrupts on xilinx ml403
  2007-07-24  7:31 ` Misbah khan
@ 2007-07-24 15:22   ` Mirek23
  2007-07-25  4:44     ` Misbah khan
  0 siblings, 1 reply; 6+ messages in thread
From: Mirek23 @ 2007-07-24 15:22 UTC (permalink / raw)
  To: linuxppc-embedded


I will try to go further with that after trying Grant's suggestion. When I
still have a problem I will contact you.

Best Regards

Mirek

Misbah khan wrote:
> 
> hi ..
> 
> If you could send me the code and the config related doc . I could then be
> able to suggest you something. As per the understanding of the problem i
> guess you are not congiguring the interrupt controller properly. you have
> to use correct IRQ no for  that ports then other configuration such as
> interrupt type, and whenever you service the interrupt you have to clear
> the interrupt etc are to be taken care ....Please see the interrupt
> controller register and do your settings correctly . If the same persists
> then you please send me the code and the documents then only i could give
> the exact explaination on this 
> 
> ----misbah
> 
> Mirek23 wrote:
>> 
>> Dear All,
>> 
>>       I use linux kernel 2.6 on ppc405 of my Avnet (xilinx like ml403)
>> evaluation board.
>> 
>> I have setup the virtex-4 FPGA to deal with Themac and Serial interfaces.
>> As input/output devices I have chosen 8 LEDs and DIP Switches.
>> 
>> With such a configuration I am able to control from Linux user
>> applications via GPIO driver the LEDs and DIP Switches.
>> 
>> Right now I just wanted to make use of the interrupts. I have configured
>> the Dip switches to use interrupt. The interrupt accoures when the DIP
>> Switches state has changed.
>> 
>> In the BSP generated by EDK 9.1 I see that macro :   
>> 
>> #define XPAR_DIP_SWITCHES_8BIT_INTERRUPT_PRESENT 1
>> 
>> has changed from zero to one.
>> The macro XPAR_INTC_MAX_NUM_INTR_INPUTS is set to 1 as it was before.
>> This is due to the fact that 
>> TEMAC uses one interrupt line.
>> 
>> Does it mean that DIP Switches do not use INTC interrupt controller?
>> How to handle the DIP Switches interrupt?
>> Does the Interrupt handler routine have to acknowledge the interrupt from
>> Dip Switches?
>> 
>> Many thanks in advance for any hint on that.
>> 
>> Best Regards
>> 
>> Mirek
>> 
>> 
>> 
>> 
>>  
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Interrupts-on-xilinx-ml403-tf4117226.html#a11765540
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interrupts on xilinx ml403
  2007-07-24 15:22   ` Mirek23
@ 2007-07-25  4:44     ` Misbah khan
  0 siblings, 0 replies; 6+ messages in thread
From: Misbah khan @ 2007-07-25  4:44 UTC (permalink / raw)
  To: linuxppc-embedded


hi ...

Well you are always welcome to contact me . Just look at the configuration
of registers are proper or not and you have followed Bigendian format or
not. more than 90 % of the problem comes when you dont configure the
controler registers properly.

----Misbah

Mirek23 wrote:
> 
> I will try to go further with that after trying Grant's suggestion. When I
> still have a problem I will contact you.
> 
> Best Regards
> 
> Mirek
> 
> Misbah khan wrote:
>> 
>> hi ..
>> 
>> If you could send me the code and the config related doc . I could then
>> be able to suggest you something. As per the understanding of the problem
>> i guess you are not congiguring the interrupt controller properly. you
>> have to use correct IRQ no for  that ports then other configuration such
>> as interrupt type, and whenever you service the interrupt you have to
>> clear the interrupt etc are to be taken care ....Please see the interrupt
>> controller register and do your settings correctly . If the same persists
>> then you please send me the code and the documents then only i could give
>> the exact explaination on this 
>> 
>> ----misbah
>> 
>> Mirek23 wrote:
>>> 
>>> Dear All,
>>> 
>>>       I use linux kernel 2.6 on ppc405 of my Avnet (xilinx like ml403)
>>> evaluation board.
>>> 
>>> I have setup the virtex-4 FPGA to deal with Themac and Serial
>>> interfaces. As input/output devices I have chosen 8 LEDs and DIP
>>> Switches.
>>> 
>>> With such a configuration I am able to control from Linux user
>>> applications via GPIO driver the LEDs and DIP Switches.
>>> 
>>> Right now I just wanted to make use of the interrupts. I have configured
>>> the Dip switches to use interrupt. The interrupt accoures when the DIP
>>> Switches state has changed.
>>> 
>>> In the BSP generated by EDK 9.1 I see that macro :   
>>> 
>>> #define XPAR_DIP_SWITCHES_8BIT_INTERRUPT_PRESENT 1
>>> 
>>> has changed from zero to one.
>>> The macro XPAR_INTC_MAX_NUM_INTR_INPUTS is set to 1 as it was before.
>>> This is due to the fact that 
>>> TEMAC uses one interrupt line.
>>> 
>>> Does it mean that DIP Switches do not use INTC interrupt controller?
>>> How to handle the DIP Switches interrupt?
>>> Does the Interrupt handler routine have to acknowledge the interrupt
>>> from Dip Switches?
>>> 
>>> Many thanks in advance for any hint on that.
>>> 
>>> Best Regards
>>> 
>>> Mirek
>>> 
>>> 
>>> 
>>> 
>>>  
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Interrupts-on-xilinx-ml403-tf4117226.html#a11776097
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-25  4:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-20 13:52 Interrupts on xilinx ml403 Mirek23
2007-07-20 15:12 ` Grant Likely
2007-07-24 15:19   ` Mirek23
2007-07-24  7:31 ` Misbah khan
2007-07-24 15:22   ` Mirek23
2007-07-25  4:44     ` Misbah khan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.