Re: MPC8240 EPIC Driver (Attached)

4 messages, 3 authors, 2001-08-14 · open the first message on its own page

Re: MPC8240 EPIC Driver (Attached)

From: James F Dougherty <hidden>
Date: 2001-08-14 07:43:16

Mark,

Send me your changes and I'll
gladly test them...


		Thanks,
		-James

quoted
"Mark A. Greer" wrote:
quoted
The changes to the openpic code for supporting serial interrupt mode are
very minor.
quoted
Actually IIRC they're already present in the version shipped with
HHL-2.0.  I don't remember making any changes for that at all on the
MVME2100 support, but my memory has been known to be faulty.
Well, there is no _explicit_ support for serial mode but there was an 'if'
stmt added that
adjusts NumSources if it is less than OpenPIC_NumInitSenses.  That let's you
proceed with
an initsenses with more irq's than the pic tells you it has.  Its not a
complete, long-term
solution.

Also, I'm trying to keep this discussion relative to 2_4_devel not hhlx.x
quoted
quoted
What I mean is a table where you specify the irq, the offset fo the regs
from the base
quoted
quoted
address, the sensitivity, and the polarity all separately.  Also the
appropriate
quoted
quoted
extensions to support serial interrupt mode (e.g., MVME2100 uses that).
With a table
quoted
quoted
format something like that, you can avoid the sparse and negative irq's on
the
quoted
quoted
8240/107 and still keep things pretty clean looking.
That sounds right.  It could also use the NIRQ field of the Feature
Reporting Register to cross-check that the table given is the correct size
for the chip it's controlling, and have some way of specifying the
presence or absensce of a cascaded i8259 (presumably with its own table).
The NIRQ field is a part of the problem in serial mode.  You can have 16 lines
hooked up in
serial mode and the NIRQ still tells you that there should only be 5, IIRC.

The table changes are intended to solve more than just epic serial mode.
They're intended
to make explicit--and flexible--all the assumptions that are currently buried
in the
initsenses table (irq #, the offset of corresponding reg in pic, sensifivity
and
polarity).  These aren't extensive changes, I should just do them, post a
patch for review
& shut up...  :)

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

Re: MPC8240 EPIC Driver (Attached)

From: Mark A. Greer <hidden>
Date: 2001-08-14 17:45:39

James F Dougherty wrote:
Mark,

Send me your changes and I'll
gladly test them...
I never finished them.  I had some changes in an old 2.4.0-testxxx kernel but never
finished what I started.
This was several months ago so I kinda forget but I was going to make the
initsenses table look something like what gets passed to openpic_initirq plus a
field to specify the offset in from OpenPIC_addr/OpenPIC.  I also added a couple
routines to set the epic in serial or direct mode and I think that was about it.

I may have some of this laying around.  I'll take a look this afternoon & if its
worth sending, I'll send it to you.

Mark


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

Re: MPC8240 EPIC Driver (Attached)

From: Mark A. Greer <hidden>
Date: 2001-08-14 21:37:14

James,

I took a look around and I think I deleted what I had.  It really wasn't that much
code anyway.  The important things are to get the functionality and not cause
wholesale changes to the existing code.

Please let me know if you're going to work on it and I'll wait to see what you come up
with.  Otherwise, now that there seems to be interest, I'll start working on it when
I'm done with my current project (in a few weeks).

Mark
--

"Mark A. Greer" wrote:
James F Dougherty wrote:
quoted
Mark,

Send me your changes and I'll
gladly test them...
I never finished them.  I had some changes in an old 2.4.0-testxxx kernel but never
finished what I started.
This was several months ago so I kinda forget but I was going to make the
initsenses table look something like what gets passed to openpic_initirq plus a
field to specify the offset in from OpenPIC_addr/OpenPIC.  I also added a couple
routines to set the epic in serial or direct mode and I think that was about it.

I may have some of this laying around.  I'll take a look this afternoon & if its
worth sending, I'll send it to you.

Mark

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

Re: MPC8240 EPIC Driver (Attached)

From: Dan Malek <hidden>
Date: 2001-08-14 23:20:21

"Mark A. Greer" wrote:
I took a look around and I think I deleted what I had.....
Attached is a patch that works with Sandpoint X3, adds the new
serial mode interrupt stuff, and 8245.  You may have to manually
apply it, but it gets you started.

It's on my check-in list, but I have higher priority things at
the moment.  Like Mark said, I would like to see a better OpenPIC
solution that could also include EPIC and be a little more configurable.
I was hoping this would have happened by now, as I would have rather
added to that instead of propagating more hacks.


	-- Dan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help