Subject: Re: L2CR_CONFIG in cpu.c
To: M L Riechers <mlr@rse.com>
From: Tsubai Masanari <tsubai@iri.co.jp>
List: port-macppc
Date: 01/05/2001 00:09:56
>As long as we're on the subject of kernels, does anyone know the use
>of L2CR_CONFIG in cpu.c for macppc?

Add, for example,

options		L2CR_CONFIG="(L2SIZ_512K|L2CLK_20|L2RAM_PIPELINE_BURST)"
(512K L2 cache, L2 clock is 1/2 of cpu clock, pipeline burst SRAM)

to your kernel config.

Possible parameters are:

#define  L2SIZ_256K		0x10000000
#define  L2SIZ_512K		0x20000000
#define  L2SIZ_1M		0x30000000

#define  L2CLK_10		0x02000000 /* core clock / 1   */
#define  L2CLK_15		0x04000000 /*            / 1.5 */
#define  L2CLK_20		0x08000000 /*            / 2   */
#define  L2CLK_25		0x0a000000 /*            / 2.5 */
#define  L2CLK_30		0x0c000000 /*            / 3   */

#define  L2RAM_FLOWTHRU_BURST	0x00000000
#define  L2RAM_PIPELINE_BURST	0x01000000
#define  L2RAM_PIPELINE_LATE	0x01800000