blob: b7c7ce80f03e110007c75e2a1b32e4b2d2379cda [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
Paul Mundt343ac722007-11-11 18:11:18 +09006#ifndef __ASSEMBLY__
Linus Torvalds1da177e2005-04-16 15:20:36 -07007/*
8 * CPU type and hardware bug flags. Kept separately for each CPU.
9 *
10 * Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
Paul Mundtde027972006-02-01 03:06:02 -080011 * in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 * for parsing the subtype in get_cpu_subtype().
13 */
14enum cpu_type {
15 /* SH-2 types */
Paul Mundtb9601c52007-06-08 11:55:28 +090016 CPU_SH7619,
Yoshinori Satob2296322006-11-05 16:18:08 +090017
18 /* SH-2A types */
Paul Mundt2ad69902008-03-13 12:52:44 +090019 CPU_SH7203, CPU_SH7206, CPU_SH7263, CPU_MXG,
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21 /* SH-3 types */
Paul Mundte5723e02006-09-27 17:38:11 +090022 CPU_SH7705, CPU_SH7706, CPU_SH7707,
23 CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
Nobuhiro Iwamatsu9465a542007-03-27 18:13:51 +090024 CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
Yoshihiro Shimoda31a49c42007-12-26 11:45:06 +090025 CPU_SH7720, CPU_SH7721, CPU_SH7729,
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
27 /* SH-4 types */
28 CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
Paul Mundtf9669182007-11-07 11:05:32 +090029 CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
Paul Mundtb552c7e2006-11-20 14:14:29 +090030
31 /* SH-4A types */
Paul Mundt178dd0c2008-04-09 17:56:18 +090032 CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785,
33 CPU_SH7723, CPU_SHX3,
Paul Mundt41504c32006-12-11 20:28:03 +090034
35 /* SH4AL-DSP types */
Magnus Damm9109a302008-02-08 17:31:24 +090036 CPU_SH7343, CPU_SH7722, CPU_SH7366,
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
Paul Mundtaf3c7df2007-11-09 17:08:54 +090038 /* SH-5 types */
39 CPU_SH5_101, CPU_SH5_103,
40
Linus Torvalds1da177e2005-04-16 15:20:36 -070041 /* Unknown subtype */
42 CPU_SH_NONE
43};
44
Paul Mundt343ac722007-11-11 18:11:18 +090045/* Forward decl */
46struct sh_cpuinfo;
Paul Mundt19f9a342006-09-27 18:33:49 +090047
Paul Mundt11c19652006-12-25 10:19:56 +090048/* arch/sh/kernel/setup.c */
49const char *get_cpu_subtype(struct sh_cpuinfo *c);
50
Paul Mundtacb499f2007-11-10 20:39:56 +090051#ifdef CONFIG_VSYSCALL
52int vsyscall_init(void);
53#else
54#define vsyscall_init() do { } while (0)
55#endif
56
Paul Mundt343ac722007-11-11 18:11:18 +090057#endif /* __ASSEMBLY__ */
58
59#ifdef CONFIG_SUPERH32
60# include "processor_32.h"
61#else
62# include "processor_64.h"
63#endif
64
Linus Torvalds1da177e2005-04-16 15:20:36 -070065#endif /* __ASM_SH_PROCESSOR_H */