* [PATCH] powerpc: add Ethernet UPSMR definitions to QE library
@ 2009-01-06 23:12 Timur Tabi
2009-01-07 3:21 ` Kumar Gala
2009-01-07 4:25 ` Kumar Gala
0 siblings, 2 replies; 4+ messages in thread
From: Timur Tabi @ 2009-01-06 23:12 UTC (permalink / raw)
To: galak, linuxppc-dev, avorontsov
Add the UCC_GETH_UPSMR_xxx definitions to qe.h. The ucc_geth driver will
eventually use these instead of the UPSMR_ macros it currently defines.
Signed-off-by: Timur Tabi <timur@freescale.com>
---
arch/powerpc/include/asm/qe.h | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/include/asm/qe.h b/arch/powerpc/include/asm/qe.h
index edee15d..a355e72 100644
--- a/arch/powerpc/include/asm/qe.h
+++ b/arch/powerpc/include/asm/qe.h
@@ -591,7 +591,7 @@ struct ucc_slow_pram {
#define UCC_GETH_UCCE_RXF1 0x00000002
#define UCC_GETH_UCCE_RXF0 0x00000001
-/* UPSMR, when used as a UART */
+/* UCC Protocol Specific Mode Register (UPSMR), when used for UART */
#define UCC_UART_UPSMR_FLC 0x8000
#define UCC_UART_UPSMR_SL 0x4000
#define UCC_UART_UPSMR_CL_MASK 0x3000
@@ -619,6 +619,23 @@ struct ucc_slow_pram {
#define UCC_UART_UPSMR_TPM_EVEN 0x0002
#define UCC_UART_UPSMR_TPM_HIGH 0x0003
+/* UCC Protocol Specific Mode Register (UPSMR), when used for Ethernet */
+#define UCC_GETH_UPSMR_FTFE 0x80000000
+#define UCC_GETH_UPSMR_PTPE 0x40000000
+#define UCC_GETH_UPSMR_ECM 0x04000000
+#define UCC_GETH_UPSMR_HSE 0x02000000
+#define UCC_GETH_UPSMR_PRO 0x00400000
+#define UCC_GETH_UPSMR_CAP 0x00200000
+#define UCC_GETH_UPSMR_RSH 0x00100000
+#define UCC_GETH_UPSMR_RPM 0x00080000
+#define UCC_GETH_UPSMR_R10M 0x00040000
+#define UCC_GETH_UPSMR_RLPB 0x00020000
+#define UCC_GETH_UPSMR_TBIM 0x00010000
+#define UCC_GETH_UPSMR_RES1 0x00002000
+#define UCC_GETH_UPSMR_RMM 0x00001000
+#define UCC_GETH_UPSMR_CAM 0x00000400
+#define UCC_GETH_UPSMR_BRO 0x00000200
+
/* UCC Transmit On Demand Register (UTODR) */
#define UCC_SLOW_TOD 0x8000
#define UCC_FAST_TOD 0x8000
--
1.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] powerpc: add Ethernet UPSMR definitions to QE library
2009-01-06 23:12 [PATCH] powerpc: add Ethernet UPSMR definitions to QE library Timur Tabi
@ 2009-01-07 3:21 ` Kumar Gala
2009-01-07 3:33 ` Timur Tabi
2009-01-07 4:25 ` Kumar Gala
1 sibling, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2009-01-07 3:21 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev
On Jan 6, 2009, at 5:12 PM, Timur Tabi wrote:
> Add the UCC_GETH_UPSMR_xxx definitions to qe.h. The ucc_geth driver
> will
> eventually use these instead of the UPSMR_ macros it currently
> defines.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
> arch/powerpc/include/asm/qe.h | 19 ++++++++++++++++++-
> 1 files changed, 18 insertions(+), 1 deletions(-)
is there some reason to move the defines into this file?
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] powerpc: add Ethernet UPSMR definitions to QE library
2009-01-07 3:21 ` Kumar Gala
@ 2009-01-07 3:33 ` Timur Tabi
0 siblings, 0 replies; 4+ messages in thread
From: Timur Tabi @ 2009-01-07 3:33 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev
On Tue, Jan 6, 2009 at 9:21 PM, Kumar Gala <galak@kernel.crashing.org> wrote:
>
> is there some reason to move the defines into this file?
For consistency. Similar definitions for UART are already in this file.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] powerpc: add Ethernet UPSMR definitions to QE library
2009-01-06 23:12 [PATCH] powerpc: add Ethernet UPSMR definitions to QE library Timur Tabi
2009-01-07 3:21 ` Kumar Gala
@ 2009-01-07 4:25 ` Kumar Gala
1 sibling, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2009-01-07 4:25 UTC (permalink / raw)
To: Timur Tabi; +Cc: linuxppc-dev
On Jan 6, 2009, at 5:12 PM, Timur Tabi wrote:
> Add the UCC_GETH_UPSMR_xxx definitions to qe.h. The ucc_geth driver
> will
> eventually use these instead of the UPSMR_ macros it currently
> defines.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
> arch/powerpc/include/asm/qe.h | 19 ++++++++++++++++++-
> 1 files changed, 18 insertions(+), 1 deletions(-)
applied
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-07 4:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 23:12 [PATCH] powerpc: add Ethernet UPSMR definitions to QE library Timur Tabi
2009-01-07 3:21 ` Kumar Gala
2009-01-07 3:33 ` Timur Tabi
2009-01-07 4:25 ` Kumar Gala
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).