* [PATCH][PPC32] Adds mcc cpm commands
@ 2005-02-14 12:56 morten.banzon
2005-02-15 19:23 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: morten.banzon @ 2005-02-14 12:56 UTC (permalink / raw)
To: linuxppc-embedded
This patch adds mcc cpm commands to the cpm2.h file in the 2.6.10 kernel
Signed-off-by: Morten Banzon <morten.banzon at axxessit.no>
diff -Nru linux-2.6.10.orig/include/asm-ppc/cpm2.h
linux-2.6.10/include/asm-ppc/cpm2.h
--- linux-2.6.10.orig/include/asm-ppc/cpm2.h 2004-12-24
22:34:44.000000000 +0100
+++ linux-2.6.10/include/asm-ppc/cpm2.h 2005-02-14 12:22:22.000000000
+0100
@@ -41,6 +41,7 @@
#define CPM_CR_IDMA3_SBLOCK (0x16)
#define CPM_CR_IDMA4_SBLOCK (0x17)
#define CPM_CR_MCC1_SBLOCK (0x1c)
+#define CPM_CR_MCC2_SBLOCK (0x1d)
#define CPM_CR_SCC1_PAGE (0x00)
#define CPM_CR_SCC2_PAGE (0x01)
@@ -68,10 +69,15 @@
#define CPM_CR_INIT_RX ((ushort)0x0001)
#define CPM_CR_INIT_TX ((ushort)0x0002)
#define CPM_CR_HUNT_MODE ((ushort)0x0003)
+#define CPM_CR_INIT_MCC_TRX ((ushort)0x0003)
#define CPM_CR_STOP_TX ((ushort)0x0004)
+#define CPM_CR_INIT_MCC_TX ((ushort)0x0005)
+#define CPM_CR_INIT_MCC_RX ((ushort)0x0006)
#define CPM_CR_RESTART_TX ((ushort)0x0006)
+#define CPM_CR_MCC_RESET ((ushort)0x0007)
#define CPM_CR_SET_GADDR ((ushort)0x0008)
#define CPM_CR_START_IDMA ((ushort)0x0009)
+#define CPM_CR_STOP_RX ((ushort)0x0009)
#define CPM_CR_STOP_IDMA ((ushort)0x000b)
#define mk_cr_cmd(PG, SBC, MCN, OP) \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][PPC32] Adds mcc cpm commands
2005-02-14 12:56 [PATCH][PPC32] Adds mcc cpm commands morten.banzon
@ 2005-02-15 19:23 ` Tom Rini
0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2005-02-15 19:23 UTC (permalink / raw)
To: morten.banzon; +Cc: linuxppc-embedded
On Mon, Feb 14, 2005 at 01:56:07PM +0100, morten.banzon@axxessit.no wrote:
> This patch adds mcc cpm commands to the cpm2.h file in the 2.6.10 kernel
>
> Signed-off-by: Morten Banzon <morten.banzon at axxessit.no>
What is this used for / needed by? Thanks.
--
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][PPC32] Adds mcc cpm commands
@ 2005-02-15 19:50 morten.banzon
2005-02-15 20:45 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: morten.banzon @ 2005-02-15 19:50 UTC (permalink / raw)
To: Tom Rini; +Cc: linuxppc-embedded
Tom Rini <trini@kernel.crashing.org>
15.02.2005 20:23
To: morten.banzon@axxessit.no
cc: linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH][PPC32] Adds mcc cpm commands
On Mon, Feb 14, 2005 at 01:56:07PM +0100, morten.banzon@axxessit.no wrote:
>> This patch adds mcc cpm commands to the cpm2.h file in the 2.6.10
kernel
>>
>> Signed-off-by: Morten Banzon <morten.banzon at axxessit.no>
> What is this used for / needed by? Thanks.
> --
> Tom Rini
> http://gate.crashing.org/~trini/
This is needed for a MPC82xx MCC driver. Curently no MCC driver is in the
kernel.
My intention is to supply more patches with definitions for MCC interrupts
and buffer descriptors, if there is acceptance for such.
Even if no MCC driver is currently in the kernel these patches could go
in. They do not break anything, only easy the job for those who need a MCC
driver, like me :-)
-- Morten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][PPC32] Adds mcc cpm commands
2005-02-15 19:50 morten.banzon
@ 2005-02-15 20:45 ` Tom Rini
0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2005-02-15 20:45 UTC (permalink / raw)
To: morten.banzon; +Cc: linuxppc-embedded
On Tue, Feb 15, 2005 at 08:50:11PM +0100, morten.banzon@axxessit.no wrote:
> Tom Rini <trini@kernel.crashing.org>
> 15.02.2005 20:23
>
>
> To: morten.banzon@axxessit.no
> cc: linuxppc-embedded@ozlabs.org
> Subject: Re: [PATCH][PPC32] Adds mcc cpm commands
>
>
> On Mon, Feb 14, 2005 at 01:56:07PM +0100, morten.banzon@axxessit.no wrote:
>
> >> This patch adds mcc cpm commands to the cpm2.h file in the 2.6.10
> kernel
> >>
> >> Signed-off-by: Morten Banzon <morten.banzon at axxessit.no>
>
> > What is this used for / needed by? Thanks.
>
>
> > --
> > Tom Rini
> > http://gate.crashing.org/~trini/
>
> This is needed for a MPC82xx MCC driver. Curently no MCC driver is in the
> kernel.
OK. I'd recommend holding off until 2.6.12 open then. Thanks, and
queued.
--
Tom Rini
http://gate.crashing.org/~trini/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-02-15 20:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-14 12:56 [PATCH][PPC32] Adds mcc cpm commands morten.banzon
2005-02-15 19:23 ` Tom Rini
-- strict thread matches above, loose matches on Subject: below --
2005-02-15 19:50 morten.banzon
2005-02-15 20:45 ` 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).