2005-04-17 00:20:36 +02:00
|
|
|
#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
|
2006-02-01 12:06:02 +01:00
|
|
|
* in arch/sh/mm/Kconfig, as well as an entry in arch/sh/kernel/setup.c
|
2005-04-17 00:20:36 +02:00
|
|
|
* for parsing the subtype in get_cpu_subtype().
|
|
|
|
*/
|
|
|
|
enum cpu_type {
|
|
|
|
/* SH-2 types */
|
2007-06-08 04:55:28 +02:00
|
|
|
CPU_SH7619,
|
2006-11-05 08:18:08 +01:00
|
|
|
|
|
|
|
/* SH-2A types */
|
|
|
|
CPU_SH7206,
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* SH-3 types */
|
2006-09-27 10:38:11 +02:00
|
|
|
CPU_SH7705, CPU_SH7706, CPU_SH7707,
|
|
|
|
CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
|
2007-03-27 11:13:51 +02:00
|
|
|
CPU_SH7709, CPU_SH7709A, CPU_SH7710, CPU_SH7712,
|
2007-08-20 01:59:33 +02:00
|
|
|
CPU_SH7720, CPU_SH7729,
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* SH-4 types */
|
|
|
|
CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
|
2007-11-07 03:05:32 +01:00
|
|
|
CPU_SH7760, CPU_SH4_202, CPU_SH4_501,
|
2006-11-20 06:14:29 +01:00
|
|
|
|
|
|
|
/* SH-4A types */
|
2007-06-20 11:27:10 +02:00
|
|
|
CPU_SH7770, CPU_SH7780, CPU_SH7781, CPU_SH7785, CPU_SHX3,
|
2006-12-11 12:28:03 +01:00
|
|
|
|
|
|
|
/* SH4AL-DSP types */
|
2007-07-25 03:49:21 +02:00
|
|
|
CPU_SH7343, CPU_SH7722,
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2007-11-09 09:08:54 +01:00
|
|
|
/* SH-5 types */
|
|
|
|
CPU_SH5_101, CPU_SH5_103,
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
/* Unknown subtype */
|
|
|
|
CPU_SH_NONE
|
|
|
|
};
|
|
|
|
|
2007-11-09 09:08:54 +01:00
|
|
|
#ifdef CONFIG_SUPERH32
|
|
|
|
# include "processor_32.h"
|
2006-09-27 11:33:49 +02:00
|
|
|
#else
|
2007-11-09 09:08:54 +01:00
|
|
|
# include "processor_64.h"
|
2006-09-27 11:33:49 +02:00
|
|
|
#endif
|
|
|
|
|
2006-12-25 02:19:56 +01:00
|
|
|
/* arch/sh/kernel/setup.c */
|
|
|
|
const char *get_cpu_subtype(struct sh_cpuinfo *c);
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
#endif /* __ASM_SH_PROCESSOR_H */
|