linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* EPIC <=> OpenPIC
@ 2001-10-03 20:28 Prasad, Siva
  2001-10-03 21:05 ` Mark A. Greer
  2001-10-03 23:47 ` ashish anand
  0 siblings, 2 replies; 5+ messages in thread
From: Prasad, Siva @ 2001-10-03 20:28 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

Is there code written or ported to EPIC (Embedded programmable interrupt
controller - MPC 107)?.

EPIC is adopted from OpenPIC.

Our PPC 750 based board uses MPC107 as PCI bridge, and direct interrupts.
Since I can't use OpenPIC directly, it would be great if some one can share
the code for EPIC.

If it is already available some place... I would appreciate the pointer.

Thanks in advance.

-- Siva


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

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

* Re: EPIC <=> OpenPIC
  2001-10-03 20:28 EPIC <=> OpenPIC Prasad, Siva
@ 2001-10-03 21:05 ` Mark A. Greer
  2001-10-03 21:16   ` Mark A. Greer
  2001-10-03 23:47 ` ashish anand
  1 sibling, 1 reply; 5+ messages in thread
From: Mark A. Greer @ 2001-10-03 21:05 UTC (permalink / raw)
  To: Prasad, Siva; +Cc: linuxppc-embedded


"Prasad, Siva" wrote:

> Hi,
>
> Is there code written or ported to EPIC (Embedded programmable interrupt
> controller - MPC 107)?.

Yes, mpc10x_common.c.  Examples of its use are in the code.

Mark


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

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

* Re: EPIC <=> OpenPIC
  2001-10-03 21:05 ` Mark A. Greer
@ 2001-10-03 21:16   ` Mark A. Greer
  0 siblings, 0 replies; 5+ messages in thread
From: Mark A. Greer @ 2001-10-03 21:16 UTC (permalink / raw)
  To: Prasad, Siva, linuxppc-embedded


"Mark A. Greer" wrote:

> "Prasad, Siva" wrote:
>
> > Hi,
> >
> > Is there code written or ported to EPIC (Embedded programmable interrupt
> > controller - MPC 107)?.
>
> Yes, mpc10x_common.c.  Examples of its use are in the code.

I'll add a little more.  You can use the openpic code with the EPIC if you're
careful.  Look at sandpoint_setup.c for an example.  Your EPIC IRQs *must*
start at 16 and resist the urge to set the offset param to anything but 0.

Mark


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

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

* Re: EPIC <=> OpenPIC
  2001-10-03 20:28 EPIC <=> OpenPIC Prasad, Siva
  2001-10-03 21:05 ` Mark A. Greer
@ 2001-10-03 23:47 ` ashish anand
  2001-10-04 16:46   ` Dan Malek
  1 sibling, 1 reply; 5+ messages in thread
From: ashish anand @ 2001-10-03 23:47 UTC (permalink / raw)
  To: Prasad, Siva, linuxppc-embedded


Yah..it is already available.
Epic has been ported for MPC 107 and MPC 106 as well.
for mpc 106 can refer montavista port .
I assume we have for mpc107 and 750 board.
I will find that and would give you for refrence.
you can't use directly openpic structure as there is small deviation.
try to adjust your openpic structure as per epic manual.
set appropiately the triggering and polarity mode for irq lines
from winbond bridge and for shared pci slots.
refer the epic chapter and eumbbar chapter (for epic base)
in MPC 107 manual for correct programming

> Is there code written or ported to EPIC (Embedded programmable interrupt
> controller - MPC 107)?.
>
> EPIC is adopted from OpenPIC.
>
> Our PPC 750 based board uses MPC107 as PCI bridge, and direct interrupts.
> Since I can't use OpenPIC directly, it would be great if some one can share
> the code for EPIC.
>
> If it is already available some place... I would appreciate the pointer.

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

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

* Re: EPIC <=> OpenPIC
  2001-10-03 23:47 ` ashish anand
@ 2001-10-04 16:46   ` Dan Malek
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Malek @ 2001-10-04 16:46 UTC (permalink / raw)
  To: ashish anand; +Cc: Prasad, Siva, linuxppc-embedded


ashish anand wrote:
>
> Yah..it is already available.
> Epic has been ported for MPC 107 and MPC 106 as well.
> for mpc 106 can refer montavista port .

The code for the EPIC on all devices is part of the linuxppc_2_4_devel
public source tree.  There is also an option to support the
serial interrupt communication mode if your hardware design
wishes to use that.

Just as Mark mentioned in a previous message, the EPIC works but
requires a clear understanding of how it was integrated into
the OpenPIC support.  Use an existing board port example as a guide.


	-- Dan

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

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

end of thread, other threads:[~2001-10-04 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-03 20:28 EPIC <=> OpenPIC Prasad, Siva
2001-10-03 21:05 ` Mark A. Greer
2001-10-03 21:16   ` Mark A. Greer
2001-10-03 23:47 ` ashish anand
2001-10-04 16:46   ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).