aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms/4xx/ebony.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/platforms/4xx/ebony.c')
-rw-r--r--arch/ppc/platforms/4xx/ebony.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/arch/ppc/platforms/4xx/ebony.c b/arch/ppc/platforms/4xx/ebony.c
index 509e69a095f0..d6b2b1965dcb 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
65bd_t __res; 58bd_t __res;
66 59
67static struct ibm44x_clocks clocks __initdata; 60static struct ibm44x_clocks clocks __initdata;
@@ -98,15 +91,10 @@ ebony_calibrate_decr(void)
98 * on Rev. C silicon then errata forces us to 91 * on Rev. C silicon then errata forces us to
99 * use the internal clock. 92 * use the internal clock.
100 */ 93 */
101 switch (PVR_REV(mfspr(SPRN_PVR))) { 94 if (strcmp(cur_cpu_spec[0]->cpu_name, "440GP Rev. B") == 0)
102 case PVR_REV(PVR_440GP_RB): 95 freq = EBONY_440GP_RB_SYSCLK;
103 freq = EBONY_440GP_RB_SYSCLK; 96 else
104 break; 97 freq = EBONY_440GP_RC_SYSCLK;
105 case PVR_REV(PVR_440GP_RC1):
106 default:
107 freq = EBONY_440GP_RC_SYSCLK;
108 break;
109 }
110 98
111 ibm44x_calibrate_decr(freq); 99 ibm44x_calibrate_decr(freq);
112} 100}