Re: [PATCH 0/2] sh: add initial SH7305 CPU support
From: John Paul Adrian Glaubitz
Date: Thu Oct 01 2026 - 03:03:39 EST
Hi cacioandpepe,
On Thu, 2026-10-01 at 00:57 -0600, cacioandpepe wrote:
> Add initial SuperH support for the Renesas SH7305 processor.
>
> The first patch fixes SH4 compiler flag fallback handling for toolchains
> which support SH4A targets but do not provide the plain -m4-nofpu
> option.
>
> The second patch adds the SH7305 CPU subtype, processor name and CPU
> probe.
>
> This is the first small architecture level part of ongoing SH7305
> enablement. Platform specific clock, interrupt controller, timer and
> board support are intentionally left for separate patches.
>
> The SH7305 support has been compile tested with GCC 14.3.0 targeting
> big endian SH4A.
>
> cacioandpepe (2):
> sh: guard SH4 no-FPU compiler fallback
> sh: add SH7305 CPU subtype support
>
> arch/sh/Kconfig | 9 +++++++++
> arch/sh/Makefile | 2 +-
> arch/sh/include/asm/processor.h | 2 +-
> arch/sh/kernel/cpu/proc.c | 3 ++-
> arch/sh/kernel/cpu/sh4/probe.c | 3 +++
> 5 files changed, 16 insertions(+), 3 deletions(-)
Thanks for the patch! May I ask what board you are using with this CPU?
FWIW, in the future we want to switch to device trees, so if you add the
board later, it might be an idea to do this using device trees instead.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913