sync hh.org
[hh.org.git] / arch / sh / kernel / cpu / sh2 / probe.c
blobf17a2a0d588edf52985018241c333374d7da03da
1 /*
2 * arch/sh/kernel/cpu/sh2/probe.c
4 * CPU Subtype Probing for SH-2.
6 * Copyright (C) 2002 Paul Mundt
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
10 * for more details.
14 #include <linux/init.h>
15 #include <asm/processor.h>
16 #include <asm/cache.h>
18 int __init detect_cpu_and_cache_system(void)
21 * For now, assume SH7604 .. fix this later.
23 cpu_data->type = CPU_SH7604;
24 cpu_data->dcache.ways = 4;
25 cpu_data->dcache.way_shift = 6;
26 cpu_data->dcache.sets = 64;
27 cpu_data->dcache.entry_shift = 4;
28 cpu_data->dcache.linesz = L1_CACHE_BYTES;
29 cpu_data->dcache.flags = 0;
32 * SH-2 doesn't have separate caches
34 cpu_data->dcache.flags |= SH_CACHE_COMBINED;
35 cpu_data->icache = cpu_data->dcache;
37 return 0;