Subject: 33 Mhz LC475
To: None <port-mac68k@NetBSD.ORG>
From: David Johnston <david@canopus.apana.org.au>
List: port-mac68k
Date: 09/28/1997 16:00:11
Hi there!

I think this was discussed about a month ago.

There is a very simple modification you can do to an LC475 or Q605 - the
machines have an identical motherboard - to raise its frequency from
25MHz to 33 Mhz (the change just involves moving two resistors - see the
page http://socrates.berkeley.edu/~schrier/q605.html).

The machine reports a different gestalt value when the change has been
made which means that netbsd will not recognize the machine on booting.
The gestalt values the motherboard reports are as follows:

	speed	|	machine type
		|      LC475	|   Q605
	---------------------------------
	25 MHz	|	89	|    94
	33 MHz	|	90	|    95

Can we add these new gestalt values to machdep.c? From reading the
gestalt.h file from the latest code warrior release it would appear that
these gestalt values are not used for any other machines.

The required changes to cpu.h and machdep.c are as follows:

*** /usr/src/new-sys/arch/mac68k/include/cpu.h  Mon Jun 30 21:21:01 1997
--- cpu.h       Sat Sep 27 20:59:26 1997
***************
*** 181,188 ****
--- 181,190 ----
  #define MACH_MACPB165         84
  #define MACH_MACTV            88
  #define MACH_MACLC475         89
+ #define MACH_MACLC475_33      90
  #define MACH_MACLC575         92
  #define MACH_MACQ605          94
+ #define MACH_MACQ605_33               95
  #define MACH_MACQ630          98
  #define MACH_MACPB280         102
  #define MACH_MACPB280C                103


*** /usr/src/new-sys/arch/mac68k/mac68k/machdep.c       Sun Sep 21 22:18:15 1997
--- machdep.c   Sat Sep 27 20:58:09 1997
***************
*** 1970,1975 ****
--- 1970,1976 ----
        {MACH_MACQ650, "Quadra", " 650 ", MACH_CLASSQ, &romvecs[6]},
        {MACH_MACC650, "Centris", " 650 ", MACH_CLASSQ, &romvecs[6]},
        {MACH_MACQ605, "Quadra", " 605 ", MACH_CLASSQ, &romvecs[9]},
+       {MACH_MACQ605_33, "Quadra", " 605/33 ", MACH_CLASSQ, &romvecs[9]},
        {MACH_MACC610, "Centris", " 610 ", MACH_CLASSQ, &romvecs[6]},
        {MACH_MACQ610, "Quadra", " 610 ", MACH_CLASSQ, &romvecs[6]},
        {MACH_MACQ630, "Quadra", " 630 ", MACH_CLASSQ, &romvecs[13]},
***************
*** 2008,2013 ****
--- 2009,2015 ----
        {MACH_MACLCII,  "LC", " II ",  MACH_CLASSLC, &romvecs[3]},
        {MACH_MACLCIII, "LC", " III ", MACH_CLASSLC, &romvecs[14]},
        {MACH_MACLC475, "LC", " 475 ", MACH_CLASSQ,  &romvecs[9]},
+       {MACH_MACLC475_33, "LC", " 475/33 ", MACH_CLASSQ,  &romvecs[9]},
        {MACH_MACLC520, "LC", " 520 ", MACH_CLASSLC, &romvecs[15]},
        {MACH_MACLC575, "LC", " 575 ", MACH_CLASSQ2, &romvecs[16]},
        {MACH_MACCCLASSIC, "Color Classic ", "", MACH_CLASSLC, &romvecs[3]},

I've tested these changes and they work.

	david

--

David Johnston
david@canopus.apana.org.au