Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: sh7372 SH4AL-DSP probe support

Add probe support for the sh7372 SH4AL-DSP core.

The most common use case for this is when the system
boots from the ARM core in the sh7372 and uses the
SH core for application offload as a slave CPU.

May also be used to boot the sh7372 from the SH core.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Magnus Damm and committed by
Paul Mundt
fac6c2a8 83eb95b8

+7 -2
+1 -1
arch/sh/include/asm/processor.h
··· 35 35 CPU_SH7723, CPU_SH7724, CPU_SH7757, CPU_SHX3, 36 36 37 37 /* SH4AL-DSP types */ 38 - CPU_SH7343, CPU_SH7722, CPU_SH7366, 38 + CPU_SH7343, CPU_SH7722, CPU_SH7366, CPU_SH7372, 39 39 40 40 /* SH-5 types */ 41 41 CPU_SH5_101, CPU_SH5_103,
+1 -1
arch/sh/kernel/cpu/proc.c
··· 25 25 [CPU_SH5_101] = "SH5-101", [CPU_SH5_103] = "SH5-103", 26 26 [CPU_MXG] = "MX-G", [CPU_SH7723] = "SH7723", 27 27 [CPU_SH7366] = "SH7366", [CPU_SH7724] = "SH7724", 28 - [CPU_SH_NONE] = "Unknown" 28 + [CPU_SH7372] = "SH7372", [CPU_SH_NONE] = "Unknown" 29 29 }; 30 30 31 31 const char *get_cpu_subtype(struct sh_cpuinfo *c)
+5
arch/sh/kernel/cpu/sh4/probe.c
··· 154 154 case 0x11: 155 155 boot_cpu_data.type = CPU_SH7757; 156 156 break; 157 + case 0xd0: 158 + case 0x40: /* yon-ten-go */ 159 + boot_cpu_data.type = CPU_SH7372; 160 + break; 161 + 157 162 } 158 163 break; 159 164 case 0x4000: /* 1st cut */