processor.h 1.1 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7
#ifndef __ASM_SH_PROCESSOR_H
#define __ASM_SH_PROCESSOR_H

/*
 *  CPU type and hardware bug flags. Kept separately for each CPU.
 *
 *  Each one of these also needs a CONFIG_CPU_SUBTYPE_xxx entry
8
 *  in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
L
Linus Torvalds 已提交
9 10 11 12
 *  for parsing the subtype in get_cpu_subtype().
 */
enum cpu_type {
	/* SH-2 types */
P
Paul Mundt 已提交
13
	CPU_SH7619,
Y
Yoshinori Sato 已提交
14 15 16

	/* SH-2A types */
	CPU_SH7206,
L
Linus Torvalds 已提交
17 18

	/* SH-3 types */
19 20
	CPU_SH7705, CPU_SH7706, CPU_SH7707,
	CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
21
	CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
M
Markus Brunner 已提交
22
	CPU_SH7720, CPU_SH7729,
L
Linus Torvalds 已提交
23 24 25

	/* SH-4 types */
	CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
26
	CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
27 28

	/* SH-4A types */
29
	CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
P
Paul Mundt 已提交
30 31

	/* SH4AL-DSP types */
32
	CPU_SH7343, CPU_SH7722,
L
Linus Torvalds 已提交
33

34 35 36
	/* SH-5 types */
        CPU_SH5_101, CPU_SH5_103,

L
Linus Torvalds 已提交
37 38 39 40
	/* Unknown subtype */
	CPU_SH_NONE
};

41 42
#ifdef CONFIG_SUPERH32
# include "processor_32.h"
P
Paul Mundt 已提交
43
#else
44
# include "processor_64.h"
P
Paul Mundt 已提交
45 46
#endif

47 48 49
/* arch/sh/kernel/setup.c */
const char *get_cpu_subtype(struct sh_cpuinfo *c);

L
Linus Torvalds 已提交
50
#endif /* __ASM_SH_PROCESSOR_H */