diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-15 03:48:13 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-15 03:48:13 +0200 |
commit | e82da214d2fe3dc2610df966100c4f36bc0fad91 (patch) | |
tree | 27904e62592da9c84499509cc85429644dcd0b93 /arch/sh/include/asm/processor.h | |
parent | sh: consolidate nommu stubs in arch/sh/mm/nommu.c. (diff) | |
download | linux-e82da214d2fe3dc2610df966100c4f36bc0fad91.tar.xz linux-e82da214d2fe3dc2610df966100c4f36bc0fad91.zip |
sh: Track the CPU family in sh_cpuinfo.
This adds a family member to struct sh_cpuinfo, which allows us to fall
back more on the probe routines to work out what sort of subtype we are
running on. This will be used by the CPU cache initialization code in
order to first do family-level initialization, followed by subtype-level
optimizations.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/processor.h')
-rw-r--r-- | arch/sh/include/asm/processor.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/sh/include/asm/processor.h b/arch/sh/include/asm/processor.h index ff7daaf9a620..db1a4f3a755f 100644 --- a/arch/sh/include/asm/processor.h +++ b/arch/sh/include/asm/processor.h @@ -44,6 +44,17 @@ enum cpu_type { CPU_SH_NONE }; +enum cpu_family { + CPU_FAMILY_SH2, + CPU_FAMILY_SH2A, + CPU_FAMILY_SH3, + CPU_FAMILY_SH4, + CPU_FAMILY_SH4A, + CPU_FAMILY_SH4AL_DSP, + CPU_FAMILY_SH5, + CPU_FAMILY_UNKNOWN, +}; + /* * TLB information structure * @@ -61,7 +72,7 @@ struct tlb_info { }; struct sh_cpuinfo { - unsigned int type; + unsigned int type, family; int cut_major, cut_minor; unsigned long loops_per_jiffy; unsigned long asid_cache; |