blob: bf01f486c3e1ad5c0768c27d5ef0a26fd7b657a0 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_SH_PROCESSOR_H
2#define __ASM_SH_PROCESSOR_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
4/*
5 * CPU type and hardware bug flags. Kept separately for each CPU.
6 *
7 * Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
Paul Mundtde027972006-02-01 03:06:02 -08008 * in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * for parsing the subtype in get_cpu_subtype().
10 */
11enum cpu_type {
12 /* SH-2 types */
Paul Mundtb9601c52007-06-08 11:55:28 +090013 CPU_SH7619,
Yoshinori Satob2296322006-11-05 16:18:08 +090014
15 /* SH-2A types */
16 CPU_SH7206,
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
18 /* SH-3 types */
Paul Mundte5723e02006-09-27 17:38:11 +090019 CPU_SH7705, CPU_SH7706, CPU_SH7707,
20 CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
Nobuhiro Iwamatsu9465a542007-03-27 18:13:51 +090021 CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
Markus Brunner3ea6bc32007-08-20 08:59:33 +090022 CPU_SH7720, CPU_SH7729,
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24 /* SH-4 types */
25 CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
Paul Mundtf9669182007-11-07 11:05:32 +090026 CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
Paul Mundtb552c7e2006-11-20 14:14:29 +090027
28 /* SH-4A types */
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090029 CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
Paul Mundt41504c32006-12-11 20:28:03 +090030
31 /* SH4AL-DSP types */
Magnus Damm870e8a22007-07-25 10:49:21 +090032 CPU_SH7343, CPU_SH7722,
Linus Torvalds1da177e2005-04-16 15:20:36 -070033
Paul Mundtaf3c7df2007-11-09 17:08:54 +090034 /* SH-5 types */
35 CPU_SH5_101, CPU_SH5_103,
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037 /* Unknown subtype */
38 CPU_SH_NONE
39};
40
Paul Mundtaf3c7df2007-11-09 17:08:54 +090041#ifdef CONFIG_SUPERH32
42# include "processor_32.h"
Paul Mundt19f9a342006-09-27 18:33:49 +090043#else
Paul Mundtaf3c7df2007-11-09 17:08:54 +090044# include "processor_64.h"
Paul Mundt19f9a342006-09-27 18:33:49 +090045#endif
46
Paul Mundt11c19652006-12-25 10:19:56 +090047/* arch/sh/kernel/setup.c */
48const char *get_cpu_subtype(struct sh_cpuinfo *c);
49
Linus Torvalds1da177e2005-04-16 15:20:36 -070050#endif /* __ASM_SH_PROCESSOR_H */