* EPIC_SERIAL_MODE, openpic_initsenses
@ 2003-03-06 19:59 emanuel stiebler
2003-03-06 20:23 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: emanuel stiebler @ 2003-03-06 19:59 UTC (permalink / raw)
To: linux-emb
Hi All,
I'm using the serial mode on the EPIC, MPC8245. Some questions about the
inittialisation, because it seems, that I'm the only one who doesn't use
it in the IRQ direct mode. My "ttt_openpic_initsenses" table looks like:
(The DUART interrupts are in twice, for the sake of discussion)
static u_char ttt_openpic_initsenses[] __initdata = {
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 0, ETH1 */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 1, ETH2 */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 2, IDE */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 3, FM */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 4, CF */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 5, RTC */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 6, DUART */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 7, CAN */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 8, CPCI_INTA /
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 9, CPCI_INTB */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 10, CPCI_INTC */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 11, CPCI_INTD */
0, /* EPIC IRQ 12, not used */
0, /* EPIC IRQ 13, not used */
0, /* EPIC IRQ 14, not used */
0, /* EPIC IRQ 15, not used */
0, /* EPIC IRQ 16, I2C */
0, /* EPIC IRQ 17, DMA CH0 */
0, /* EPIC IRQ 18, DMA CH1 */
0, /* EPIC IRQ 19, I2O */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 20, DUART 0 */
(IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 21, DUART 1 */
0,0,0,0,0,0,0,0,0,0, /* 22 - 31 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 32 - 63 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 64 - 95 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 96 - 127 */
0, /* 128, reserved, not used */
0, /* 129, I2C, not used */
0, /* 130, DMA CH0 not used */
0, /* 131, DMA CH1 not used */
0, /* 132, reserved, not used */
0, /* 133, reserved, not used */
0, /* 134, not used */
0, /* 135, not used */
0, /* 136, not used */
1, /* 137, DUART 0 */
1 /* 138, DUART 1 */
};
the ttt_init_IRQ looks like:
{
OpenPIC_InitSenses = ttt_openpic_initsenses;
OpenPIC_NumInitSenses = sizeof(ttt_openpic_initsenses);
openpic_init(0);
}
Questions:
a.) in the openpic_init source, I found that in the EPIC_SERIAL_MODE,
the counting starts at the first address of the Interrupt table, so do I
need to have 5 "not used" entries at the beginning of the table for the
direct Interrupts ?
b.) reading some old email from last year, somebody (Jim Thompson ?)
suggested to put the interrupts of the MPC8245 in entries 137 & 137.
Where are they in the EPIC_SERIAL_MODE ? Still on 137 or on 137-5 ?
Thanks in advance
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: EPIC_SERIAL_MODE, openpic_initsenses
2003-03-06 19:59 EPIC_SERIAL_MODE, openpic_initsenses emanuel stiebler
@ 2003-03-06 20:23 ` Tom Rini
2003-03-06 21:50 ` Kernel Sources, was " emanuel stiebler
0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2003-03-06 20:23 UTC (permalink / raw)
To: emanuel stiebler; +Cc: linux-emb
On Thu, Mar 06, 2003 at 12:59:13PM -0700, emanuel stiebler wrote:
> I'm using the serial mode on the EPIC, MPC8245. Some questions about the
> inittialisation, because it seems, that I'm the only one who doesn't use
> it in the IRQ direct mode. My "ttt_openpic_initsenses" table looks like:
> (The DUART interrupts are in twice, for the sake of discussion)
The Motorola LoPEC and Sandpoint X3 do as well. Please read those files
and the comments surrounding the openpic_* calls there. Among other
things..:
> static u_char ttt_openpic_initsenses[] __initdata = {
[snip]
> (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 11, CPCI_INTD */
> 0, /* EPIC IRQ 12, not used */
> 0, /* EPIC IRQ 13, not used */
> 0, /* EPIC IRQ 14, not used */
> 0, /* EPIC IRQ 15, not used */
> 0, /* EPIC IRQ 16, I2C */
> 0, /* EPIC IRQ 17, DMA CH0 */
> 0, /* EPIC IRQ 18, DMA CH1 */
> 0, /* EPIC IRQ 19, I2O */
> (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 20, DUART 0 */
> (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* EPIC IRQ 21, DUART 1 */
> 0,0,0,0,0,0,0,0,0,0, /* 22 - 31 */
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 32 - 63 */
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 64 - 95 */
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 96 - 127 */
[snip]
You do _not_ need to be doing it like this, and this is quite probably
causing you problems. Look at open_pic_set_sources.
If you're using kernel.org sources, the LoPEC support has made it into
2.4.21-pre4. Otherwise use the linuxppc_2_4_devel tree
(http://penguinppc.org/dev/kernel.shtml)
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Kernel Sources, was Re: EPIC_SERIAL_MODE, openpic_initsenses
2003-03-06 20:23 ` Tom Rini
@ 2003-03-06 21:50 ` emanuel stiebler
2003-03-07 17:44 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: emanuel stiebler @ 2003-03-06 21:50 UTC (permalink / raw)
To: linux-emb
Tom Rini wrote:
> If you're using kernel.org sources, the LoPEC support has made it into
> 2.4.21-pre4. Otherwise use the linuxppc_2_4_devel tree
> (http://penguinppc.org/dev/kernel.shtml)
Is there a difference between this two ?
(I just noticed, that BitKeeper doesn't have the ppc/platform files)
cheers & thanks
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel Sources, was Re: EPIC_SERIAL_MODE, openpic_initsenses
2003-03-06 21:50 ` Kernel Sources, was " emanuel stiebler
@ 2003-03-07 17:44 ` Tom Rini
0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2003-03-07 17:44 UTC (permalink / raw)
To: emanuel stiebler; +Cc: linux-emb
On Thu, Mar 06, 2003 at 02:50:29PM -0700, emanuel stiebler wrote:
>
> Tom Rini wrote:
>
>
> >If you're using kernel.org sources, the LoPEC support has made it into
> >2.4.21-pre4. Otherwise use the linuxppc_2_4_devel tree
> >(http://penguinppc.org/dev/kernel.shtml)
>
> Is there a difference between this two ?
Um yes, there is a difference in the _devel platform, namely that it
supports a number of additional platforms and other cleanups.
--
Tom Rini
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-07 17:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-06 19:59 EPIC_SERIAL_MODE, openpic_initsenses emanuel stiebler
2003-03-06 20:23 ` Tom Rini
2003-03-06 21:50 ` Kernel Sources, was " emanuel stiebler
2003-03-07 17:44 ` Tom Rini
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).