Commit f3e19f32 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Paul Mackerras

PPC32: Updates for newer PowerMac/PowerBook machines.

parent 988ce1a4
...@@ -262,13 +262,19 @@ pmac_cpufreq_setup(void) ...@@ -262,13 +262,19 @@ pmac_cpufreq_setup(void)
goto out; goto out;
cur_freq = (*value) / 1000; cur_freq = (*value) / 1000;
/* Check for tibook 800Mhz or 1Ghz */ /* Check for newer machines */
if (machine_is_compatible("PowerBook3,4") || machine_is_compatible("PowerBook3,5")) { if (machine_is_compatible("PowerBook3,4") ||
machine_is_compatible("PowerBook3,5") ||
machine_is_compatible("MacRISC3")) {
value = (u32 *)get_property(cpunode, "min-clock-frequency", NULL); value = (u32 *)get_property(cpunode, "min-clock-frequency", NULL);
if (!value) if (!value)
goto out; goto out;
low_freq = (*value) / 1000; low_freq = (*value) / 1000;
/* The PowerBook G4 12" (PowerBook6,1) has an error in the device-tree
* here */
if (low_freq < 100000)
low_freq *= 10;
value = (u32 *)get_property(cpunode, "max-clock-frequency", NULL); value = (u32 *)get_property(cpunode, "max-clock-frequency", NULL);
if (!value) if (!value)
goto out; goto out;
......
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
#endif #endif
/* Exported from arch/ppc/kernel/idle.c */ /* Exported from arch/ppc/kernel/idle.c */
extern int powersave_nap;
extern int powersave_lowspeed; extern int powersave_lowspeed;
extern int powersave_nap;
/* /*
* We use a single global lock to protect accesses. Each driver has * We use a single global lock to protect accesses. Each driver has
...@@ -1894,10 +1894,22 @@ static struct pmac_mb_def pmac_mb_defs[] __pmacdata = { ...@@ -1894,10 +1894,22 @@ static struct pmac_mb_def pmac_mb_defs[] __pmacdata = {
PMAC_TYPE_RACKMAC, rackmac_features, PMAC_TYPE_RACKMAC, rackmac_features,
0, 0,
}, },
{ "RackMac1,2", "XServe rev. 2",
PMAC_TYPE_RACKMAC, rackmac_features,
0,
},
{ "PowerMac3,6", "PowerMac G4 Windtunnel", { "PowerMac3,6", "PowerMac G4 Windtunnel",
PMAC_TYPE_WINDTUNNEL, rackmac_features, PMAC_TYPE_WINDTUNNEL, rackmac_features,
0, 0,
}, },
{ "PowerBook5,1", "PowerBook G4 17\"",
PMAC_TYPE_UNKNOWN_INTREPID, intrepid_features,
PMAC_MB_HAS_FW_POWER | PMAC_MB_MOBILE,
},
{ "PowerBook6,1", "PowerBook G4 12\"",
PMAC_TYPE_UNKNOWN_INTREPID, intrepid_features,
PMAC_MB_HAS_FW_POWER | PMAC_MB_MOBILE,
},
}; };
/* /*
...@@ -1994,8 +2006,8 @@ probe_motherboard(void) ...@@ -1994,8 +2006,8 @@ probe_motherboard(void)
pmac_mb.features = pangea_features; pmac_mb.features = pangea_features;
break; break;
case macio_intrepid: case macio_intrepid:
pmac_mb.model_id = PMAC_TYPE_UNKNOWN_PANGEA; pmac_mb.model_id = PMAC_TYPE_UNKNOWN_INTREPID;
pmac_mb.model_name = "Unknown Pangea-based"; pmac_mb.model_name = "Unknown Intrepid-based";
pmac_mb.features = intrepid_features; pmac_mb.features = intrepid_features;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment