summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-02-09 02:25:24 +0000
committergrehan <grehan@FreeBSD.org>2004-02-09 02:25:24 +0000
commit971910673db583d7ac990299072ad8ec9ab2b9e6 (patch)
treec08625d0a86f40d472f3350472174c4f5580c4e7 /sys/powerpc
parent9d3fe37accd59810f30d8761c94396fb7213c719 (diff)
downloadFreeBSD-src-971910673db583d7ac990299072ad8ec9ab2b9e6.zip
FreeBSD-src-971910673db583d7ac990299072ad8ec9ab2b9e6.tar.gz
Recognize MPC7547 (aka G4+)
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/cpu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/powerpc/powerpc/cpu.c b/sys/powerpc/powerpc/cpu.c
index eee0eab..b1459a4 100644
--- a/sys/powerpc/powerpc/cpu.c
+++ b/sys/powerpc/powerpc/cpu.c
@@ -92,6 +92,7 @@ static const struct cputab models[] = {
{ "Motorola PowerPC 7410", MPC7410, REVFMT_MAJMIN },
{ "Motorola PowerPC 7450", MPC7450, REVFMT_MAJMIN },
{ "Motorola PowerPC 7455", MPC7455, REVFMT_MAJMIN },
+ { "Motorola PowerPC 7457", MPC7457, REVFMT_MAJMIN },
{ "Motorola PowerPC 8240", MPC8240, REVFMT_MAJMIN },
{ "Unknown PowerPC CPU", 0, REVFMT_HEX }
};
@@ -173,6 +174,7 @@ cpu_setup(u_int cpuid)
#endif
break;
+ case MPC7457:
case MPC7455:
case MPC7450:
/* Disable BTIC on 7450 Rev 2.0 or earlier */
@@ -210,6 +212,7 @@ cpu_setup(u_int cpuid)
switch (vers) {
case MPC7450:
case MPC7455:
+ case MPC7457:
bitmask = HID0_7450_BITMASK;
break;
default:
@@ -224,6 +227,7 @@ cpu_setup(u_int cpuid)
case MPC7410:
case MPC7450:
case MPC7455:
+ case MPC7457:
cpu_print_speed();
printf("\n");
cpu_config_l2cr(cpuid, vers);
@@ -304,7 +308,9 @@ cpu_config_l2cr(u_int cpuid, uint16_t vers)
printf("cpu%d: ", cpuid);
if (l2cr & L2CR_L2E) {
- if (vers == MPC7450 || vers == MPC7455) {
+ if (vers == MPC7450 ||
+ vers == MPC7455 ||
+ vers == MPC7457) {
u_int l3cr;
printf("256KB L2 cache");
OpenPOWER on IntegriCloud