diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-02-28 08:13:48 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2006-02-28 08:13:48 +0000 |
commit | f4ca37f42e6888b337fcaea7e9b787c6462226ec (patch) | |
tree | 4266609a452b276ef539701d9cbd1cb5b6c67682 /sys/dev/mii/ciphyreg.h | |
parent | ea472b4f76e64ed87fe427761671577bd731a79c (diff) |
We need to special case ciphy to ask for RGMII interface at 2.5V for nfe.
This makes Cicada/Vitesse PHYs attached to nfe work.
Many thanks to Bill Paul for diagnosing the problem and suggesting a solution.
Tested by otto@, ok deraadt@
Diffstat (limited to 'sys/dev/mii/ciphyreg.h')
-rw-r--r-- | sys/dev/mii/ciphyreg.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/mii/ciphyreg.h b/sys/dev/mii/ciphyreg.h index 3b8bb8fc909..0b7175664a3 100644 --- a/sys/dev/mii/ciphyreg.h +++ b/sys/dev/mii/ciphyreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ciphyreg.h,v 1.1 2004/12/01 00:24:38 pvalchev Exp $ */ +/* $OpenBSD: ciphyreg.h,v 1.2 2006/02/28 08:13:47 jsg Exp $ */ /* $FreeBSD: ciphyreg.h,v 1.1 2004/09/10 20:57:45 wpaul Exp $ */ /* * Copyright (c) 2004 @@ -251,6 +251,16 @@ /* Extended PHY control register #1 */ #define CIPHY_MII_ECTL1 0x17 #define CIPHY_ECTL1_ACTIPHY 0x0020 /* Enable ActiPHY power saving */ +#define CIPHY_ECTL1_IOVOL 0x0e00 /* MAC interface and I/O voltage select */ +#define CIPHY_ECTL1_INTSEL 0xf000 /* select MAC interface */ + +#define CIPHY_IOVOL_3300MV 0x0000 /* 3.3V for I/O pins */ +#define CIPHY_IOVOL_2500MV 0x0200 /* 2.5V for I/O pins */ + +#define CIPHY_INTSEL_GMII 0x0000 /* GMII/MII */ +#define CIPHY_INTSEL_RGMII 0x1000 +#define CIPHY_INTSEL_TBI 0x2000 +#define CIPHY_INTSEL_RTBI 0x3000 /* Extended PHY control register #2 */ #define CIPHY_MII_ECTL2 0x18 |