blob: f1b3a81191d4a695086318380af71038ab60e742 [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 */
Yoshihiro Shimoda7d740a02008-01-07 14:40:07 +090032 CPU_SH7763, CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
Paul Mundt41504c32006-12-11 20:28:03 +090033
34 /* SH4AL-DSP types */
Magnus Damm9109a302008-02-08 17:31:24 +090035 CPU_SH7343, CPU_SH7722, CPU_SH7366,
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
Paul Mundtaf3c7df2007-11-09 17:08:54 +090037 /* SH-5 types */
38 CPU_SH5_101, CPU_SH5_103,
39
Linus Torvalds1da177e2005-04-16 15:20:36 -070040 /* Unknown subtype */
41 CPU_SH_NONE
42};
43
Paul Mundt343ac722007-11-11 18:11:18 +090044/* Forward decl */
45struct sh_cpuinfo;
Paul Mundt19f9a342006-09-27 18:33:49 +090046
Paul Mundt11c19652006-12-25 10:19:56 +090047/* arch/sh/kernel/setup.c */
48const char *get_cpu_subtype(struct sh_cpuinfo *c);
49
Paul Mundtacb499f2007-11-10 20:39:56 +090050#ifdef CONFIG_VSYSCALL
51int vsyscall_init(void);
52#else
53#define vsyscall_init() do { } while (0)
54#endif
55
Paul Mundt343ac722007-11-11 18:11:18 +090056#endif /* __ASSEMBLY__ */
57
58#ifdef CONFIG_SUPERH32
59# include "processor_32.h"
60#else
61# include "processor_64.h"
62#endif
63
Linus Torvalds1da177e2005-04-16 15:20:36 -070064#endif /* __ASM_SH_PROCESSOR_H */