[PATCH v7 10/12] nvmem: s32g2_siul2: add NVMEM driver for SoC information
Arnd Bergmann
arnd at arndb.de
Thu Jul 10 22:37:01 PDT 2025
On Thu, Jul 10, 2025, at 16:20, Andrei Stefanescu wrote:
> The SIUL2 hardware module has registers which expose information about
> the given SoC (version, SRAM size, presence of some hw modules).
>
> Signed-off-by: Andrei Stefanescu <andrei.stefanescu at oss.nxp.com>
This does not look like an nvmem at all, it appears that you
are creating an alternative to the soc_device infrastructure
based on a binary interface tunneled through the nvmem subsystem.
Why not just make this a soc_device and have drivers use
soc_device_match() if they need to know what chip they are
running on?
Arnd
More information about the linux-arm-kernel
mailing list