blob: 76c4dc7021cb5dc8943eb0deffd20f0709c92e56 [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
Paul Mundt76168c22007-11-10 20:01:51 +09004#include <asm/cpu-features.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006/*
7 * CPU type and hardware bug flags. Kept separately for each CPU.
8 *
9 * Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
Paul Mundtde027972006-02-01 03:06:02 -080010 * in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 * for parsing the subtype in get_cpu_subtype().
12 */
13enum cpu_type {
14 /* SH-2 types */
Paul Mundtb9601c52007-06-08 11:55:28 +090015 CPU_SH7619,
Yoshinori Satob2296322006-11-05 16:18:08 +090016
17 /* SH-2A types */
18 CPU_SH7206,
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20 /* SH-3 types */
Paul Mundte5723e02006-09-27 17:38:11 +090021 CPU_SH7705, CPU_SH7706, CPU_SH7707,
22 CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
Nobuhiro Iwamatsu9465a542007-03-27 18:13:51 +090023 CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
Markus Brunner3ea6bc32007-08-20 08:59:33 +090024 CPU_SH7720, CPU_SH7729,
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
26 /* SH-4 types */
27 CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
Paul Mundtf9669182007-11-07 11:05:32 +090028 CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
Paul Mundtb552c7e2006-11-20 14:14:29 +090029
30 /* SH-4A types */
Paul Mundt2b1bd1a2007-06-20 18:27:10 +090031 CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
Paul Mundt41504c32006-12-11 20:28:03 +090032
33 /* SH4AL-DSP types */
Magnus Damm870e8a22007-07-25 10:49:21 +090034 CPU_SH7343, CPU_SH7722,
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
Paul Mundtaf3c7df2007-11-09 17:08:54 +090036 /* SH-5 types */
37 CPU_SH5_101, CPU_SH5_103,
38
Linus Torvalds1da177e2005-04-16 15:20:36 -070039 /* Unknown subtype */
40 CPU_SH_NONE
41};
42
Paul Mundtaf3c7df2007-11-09 17:08:54 +090043#ifdef CONFIG_SUPERH32
44# include "processor_32.h"
Paul Mundt19f9a342006-09-27 18:33:49 +090045#else
Paul Mundtaf3c7df2007-11-09 17:08:54 +090046# include "processor_64.h"
Paul Mundt19f9a342006-09-27 18:33:49 +090047#endif
48
Paul Mundt11c19652006-12-25 10:19:56 +090049/* arch/sh/kernel/setup.c */
50const char *get_cpu_subtype(struct sh_cpuinfo *c);
51
Paul Mundtacb499f2007-11-10 20:39:56 +090052#ifdef CONFIG_VSYSCALL
53int vsyscall_init(void);
54#else
55#define vsyscall_init() do { } while (0)
56#endif
57
Linus Torvalds1da177e2005-04-16 15:20:36 -070058#endif /* __ASM_SH_PROCESSOR_H */