From ae10566a53743d63bb835546f19689739457e2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Tue, 29 Apr 2025 10:21:28 +0200 Subject: [PATCH] drivers: hwinfo: litex: add warning and infos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit adds warning and info about the LiteX hwinfo driver, that the returned device id is not unique. Signed-off-by: Fin Maaß --- drivers/hwinfo/CMakeLists.txt | 6 ++++++ drivers/hwinfo/Kconfig | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/hwinfo/CMakeLists.txt b/drivers/hwinfo/CMakeLists.txt index 548577d05bf6..760e4532478b 100644 --- a/drivers/hwinfo/CMakeLists.txt +++ b/drivers/hwinfo/CMakeLists.txt @@ -37,3 +37,9 @@ zephyr_library_sources_ifdef(CONFIG_HWINFO_SILABS_S2 hwinfo_silabs_series2.c) zephyr_library_sources_ifdef(CONFIG_HWINFO_SMARTBOND hwinfo_smartbond.c) zephyr_library_sources_ifdef(CONFIG_HWINFO_STM32 hwinfo_stm32.c) # zephyr-keep-sorted-stop + +if (CONFIG_HWINFO_LITEX) + message(WARNING " + Warning: CONFIG_HWINFO_LITEX does not return a unique device id. It is shared + across all devices with the same bitstream.") +endif() diff --git a/drivers/hwinfo/Kconfig b/drivers/hwinfo/Kconfig index 966f3d399b3a..1d46dd7aa699 100644 --- a/drivers/hwinfo/Kconfig +++ b/drivers/hwinfo/Kconfig @@ -191,7 +191,9 @@ config HWINFO_LITEX depends on DT_HAS_LITEX_DNA0_ENABLED select HWINFO_HAS_DRIVER help - Enable LiteX hwinfo driver + Enable LiteX hwinfo driver. It does not return a unique device id. It is shared + across all devices with the same bitstream. See litex/soc/cores/identifier.py in the + LiteX repository for more information. config HWINFO_PSOC6 bool "Cypress PSOC 6 unique device ID"