Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Fix GMAC_MII_CLKMASK and add a few clk setup bits...
details: https://anonhg.NetBSD.org/src/rev/87e35c84439e
branches: trunk
changeset: 803237:87e35c84439e
user: martin <martin%NetBSD.org@localhost>
date: Sat Oct 18 12:43:25 2014 +0000
description:
Fix GMAC_MII_CLKMASK and add a few clk setup bits for it.
diffstat:
sys/dev/ic/dwc_gmac_reg.h | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r b3b85daeb949 -r 87e35c84439e sys/dev/ic/dwc_gmac_reg.h
--- a/sys/dev/ic/dwc_gmac_reg.h Sat Oct 18 12:36:39 2014 +0000
+++ b/sys/dev/ic/dwc_gmac_reg.h Sat Oct 18 12:43:25 2014 +0000
@@ -76,7 +76,21 @@
#define GMAC_MII_BUSY __BIT(0)
#define GMAC_MII_WRITE __BIT(1)
-#define GMAC_MII_CLKMASK __BITS(4,2)
+#define GMAC_MII_CLK_60_100M_DIV42 0x0
+#define GMAC_MII_CLK_100_150M_DIV62 0x1
+#define GMAC_MII_CLK_25_35M_DIV16 0x2
+#define GMAC_MII_CLK_35_60M_DIV26 0x3
+#define GMAC_MII_CLK_150_250M_DIV102 0x4
+#define GMAC_MII_CLK_250_300M_DIV124 0x5
+#define GMAC_MII_CLK_DIV4 0x8
+#define GMAC_MII_CLK_DIV6 0x9
+#define GMAC_MII_CLK_DIV8 0xa
+#define GMAC_MII_CLK_DIV10 0xb
+#define GMAC_MII_CLK_DIV12 0xc
+#define GMAC_MII_CLK_DIV14 0xd
+#define GMAC_MII_CLK_DIV16 0xe
+#define GMAC_MII_CLK_DIV18 0xf
+#define GMAC_MII_CLKMASK __BITS(5,2)
#define GMAC_BUSMODE_RESET __BIT(0)
Home |
Main Index |
Thread Index |
Old Index