diff options
-rw-r--r-- | arch/ppc/platforms/4xx/bamboo.c | 7 | ||||
-rw-r--r-- | arch/ppc/platforms/4xx/ebony.c | 7 | ||||
-rw-r--r-- | arch/ppc/platforms/4xx/luan.c | 7 | ||||
-rw-r--r-- | arch/ppc/platforms/4xx/ocotea.c | 7 | ||||
-rw-r--r-- | include/asm-ppc/ibm_ocp.h | 13 |
5 files changed, 13 insertions, 28 deletions
diff --git a/arch/ppc/platforms/4xx/bamboo.c b/arch/ppc/platforms/4xx/bamboo.c index 05e2824db71c..ac391d463d78 100644 --- a/arch/ppc/platforms/4xx/bamboo.c +++ b/arch/ppc/platforms/4xx/bamboo.c | |||
@@ -52,13 +52,6 @@ | |||
52 | #include <syslib/gen550.h> | 52 | #include <syslib/gen550.h> |
53 | #include <syslib/ibm440gx_common.h> | 53 | #include <syslib/ibm440gx_common.h> |
54 | 54 | ||
55 | /* | ||
56 | * This is a horrible kludge, we eventually need to abstract this | ||
57 | * generic PHY stuff, so the standard phy mode defines can be | ||
58 | * easily used from arch code. | ||
59 | */ | ||
60 | #include "../../../../drivers/net/ibm_emac/ibm_emac_phy.h" | ||
61 | |||
62 | bd_t __res; | 55 | bd_t __res; |
63 | 56 | ||
64 | static struct ibm44x_clocks clocks __initdata; | 57 | static struct ibm44x_clocks clocks __initdata; |
diff --git a/arch/ppc/platforms/4xx/ebony.c b/arch/ppc/platforms/4xx/ebony.c index 509e69a095f0..0fd3442f5131 100644 --- a/arch/ppc/platforms/4xx/ebony.c +++ b/arch/ppc/platforms/4xx/ebony.c | |||
@@ -55,13 +55,6 @@ | |||
55 | #include <syslib/gen550.h> | 55 | #include <syslib/gen550.h> |
56 | #include <syslib/ibm440gp_common.h> | 56 | #include <syslib/ibm440gp_common.h> |
57 | 57 | ||
58 | /* | ||
59 | * This is a horrible kludge, we eventually need to abstract this | ||
60 | * generic PHY stuff, so the standard phy mode defines can be | ||
61 | * easily used from arch code. | ||
62 | */ | ||
63 | #include "../../../../drivers/net/ibm_emac/ibm_emac_phy.h" | ||
64 | |||
65 | bd_t __res; | 58 | bd_t __res; |
66 | 59 | ||
67 | static struct ibm44x_clocks clocks __initdata; | 60 | static struct ibm44x_clocks clocks __initdata; |
diff --git a/arch/ppc/platforms/4xx/luan.c b/arch/ppc/platforms/4xx/luan.c index 95359f748e7b..a38e6f9ef858 100644 --- a/arch/ppc/platforms/4xx/luan.c +++ b/arch/ppc/platforms/4xx/luan.c | |||
@@ -53,13 +53,6 @@ | |||
53 | #include <syslib/ibm440gx_common.h> | 53 | #include <syslib/ibm440gx_common.h> |
54 | #include <syslib/ibm440sp_common.h> | 54 | #include <syslib/ibm440sp_common.h> |
55 | 55 | ||
56 | /* | ||
57 | * This is a horrible kludge, we eventually need to abstract this | ||
58 | * generic PHY stuff, so the standard phy mode defines can be | ||
59 | * easily used from arch code. | ||
60 | */ | ||
61 | #include "../../../../drivers/net/ibm_emac/ibm_emac_phy.h" | ||
62 | |||
63 | bd_t __res; | 56 | bd_t __res; |
64 | 57 | ||
65 | static struct ibm44x_clocks clocks __initdata; | 58 | static struct ibm44x_clocks clocks __initdata; |
diff --git a/arch/ppc/platforms/4xx/ocotea.c b/arch/ppc/platforms/4xx/ocotea.c index 8fc34a344769..80028df1b445 100644 --- a/arch/ppc/platforms/4xx/ocotea.c +++ b/arch/ppc/platforms/4xx/ocotea.c | |||
@@ -53,13 +53,6 @@ | |||
53 | #include <syslib/gen550.h> | 53 | #include <syslib/gen550.h> |
54 | #include <syslib/ibm440gx_common.h> | 54 | #include <syslib/ibm440gx_common.h> |
55 | 55 | ||
56 | /* | ||
57 | * This is a horrible kludge, we eventually need to abstract this | ||
58 | * generic PHY stuff, so the standard phy mode defines can be | ||
59 | * easily used from arch code. | ||
60 | */ | ||
61 | #include "../../../../drivers/net/ibm_emac/ibm_emac_phy.h" | ||
62 | |||
63 | bd_t __res; | 56 | bd_t __res; |
64 | 57 | ||
65 | static struct ibm44x_clocks clocks __initdata; | 58 | static struct ibm44x_clocks clocks __initdata; |
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 |