Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Add DECchip EB140 reference design GPIO definitions.



details:   https://anonhg.NetBSD.org/src/rev/e09fd7d8b8f0
branches:  trunk
changeset: 772789:e09fd7d8b8f0
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Jan 16 17:58:02 2012 +0000

description:
Add DECchip EB140 reference design GPIO definitions.
>From document EC-QD2SA-TE.

diffstat:

 sys/dev/ic/tulipreg.h |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 90c4ea43b028 -r e09fd7d8b8f0 sys/dev/ic/tulipreg.h
--- a/sys/dev/ic/tulipreg.h     Mon Jan 16 17:38:16 2012 +0000
+++ b/sys/dev/ic/tulipreg.h     Mon Jan 16 17:58:02 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tulipreg.h,v 1.36 2009/08/28 15:29:16 dyoung Exp $     */
+/*     $NetBSD: tulipreg.h,v 1.37 2012/01/16 17:58:02 jakllsch Exp $   */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -908,6 +908,23 @@
 #define GPP_COGENT_EM1x0_PINS  0x3f    /* General Purpose Pin directions */
 #define GPP_COGENT_EM1x0_INIT  0x09    /* No loopback --- point-to-point */
 
+/*
+ * Digital EB140 21140 reference design.
+ * MC68832 + ML6671 for 100Mb/s.  LXT901 for 10Mb/s.
+ *
+ * (From document EC-QD2SA-TE, figure 1-3.)
+ */
+#define        GPP_EB140_OUTPUTS       0x1f    /* these GPP pins are driven */
+#define        GPP_EB140_MC68832_LB    0x01    /* 100Mb/s loopback disable 1 */
+#define        GPP_EB140_ML6671_LB     0x02    /* 100Mb/s loopback disable 2 */
+#define        GPP_EB140_LXT901_ILB    0x04    /* 10Mb/s internal LB enable */
+#define        GPP_EB140_LXT901_ELB    0x08    /* 10Mb/s external LB disable */
+#define        GPP_EB140_RESERVED      0x10    /* media switch relay on other boards */
+#define        GPP_EB140_MC68836_SYNC  0x20    /* synced to 100Mb/s PHY */
+#define        GPP_EB140_MC68836_LINK  0x40    /* 100Mb/s signal detect */
+#define        GPP_EB140_LXT901_LINK   0x80    /* 10Mb/s link pass */
+
+#define        GPP_EB140_INIT  (GPP_EB140_LXT901_ELB|GPP_EB140_ML6671_LB|GPP_EB140_MC68832_LB)
 
 /*
  * Digital Semiconductor 21040 registers.



Home | Main Index | Thread Index | Old Index