diff options
author | Eugene Surovegin <ebs@ebshome.net> | 2005-09-03 18:55:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:05:59 -0400 |
commit | 28fa031e765b808520173f750bafbade832ba909 (patch) | |
tree | 62318206567f6c4e868438f407614a6571d227e1 /include/asm-ppc/ibm_ocp.h | |
parent | 7c31625aa844d549cbb8a7aafb94ec4fde8b54a3 (diff) |
[PATCH] ppc32: move 4xx PHY_MODE_XXX defines to ibm_ocp.h
Move 4xx PHY_MODE_XXX defines to asm-ppc/ibm_ocp.h. This is a preparation
step for the new EMAC driver.
Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc/ibm_ocp.h')
-rw-r--r-- | include/asm-ppc/ibm_ocp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-ppc/ibm_ocp.h b/include/asm-ppc/ibm_ocp.h index a33053503ed1..7fd4b6ce327a 100644 --- a/include/asm-ppc/ibm_ocp.h +++ b/include/asm-ppc/ibm_ocp.h | |||
@@ -101,6 +101,19 @@ void ocp_show_emac_data(struct device *dev) \ | |||
101 | device_create_file(dev, &dev_attr_emac_phy_map); \ | 101 | device_create_file(dev, &dev_attr_emac_phy_map); \ |
102 | } | 102 | } |
103 | 103 | ||
104 | /* | ||
105 | * PHY mode settings (EMAC <-> ZMII/RGMII bridge <-> PHY) | ||
106 | */ | ||
107 | #define PHY_MODE_NA 0 | ||
108 | #define PHY_MODE_MII 1 | ||
109 | #define PHY_MODE_RMII 2 | ||
110 | #define PHY_MODE_SMII 3 | ||
111 | #define PHY_MODE_RGMII 4 | ||
112 | #define PHY_MODE_TBI 5 | ||
113 | #define PHY_MODE_GMII 6 | ||
114 | #define PHY_MODE_RTBI 7 | ||
115 | #define PHY_MODE_SGMII 8 | ||
116 | |||
104 | #ifdef CONFIG_40x | 117 | #ifdef CONFIG_40x |
105 | /* | 118 | /* |
106 | * Helper function to copy MAC addresses from the bd_t to OCP EMAC | 119 | * Helper function to copy MAC addresses from the bd_t to OCP EMAC |