summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNora Schiffer <[email protected]>2026-06-02 13:57:51 +0200
committerFabio Estevam <[email protected]>2026-06-05 12:56:32 -0300
commita30556bc4249b4154f86c9460da740ff86d30807 (patch)
treeb3f9135267643946d5f5f2a3f9a7a8886311fdbc /include
parent0ef21dd37dc1779293a101413a7ce32bd63870bb (diff)
sysinfo: tq_eeprom: new driver
Introduce a sysinfo driver that can be instantiated from the device, which will provide information from the EEPROM found on all TQ-Systems SoMs. Signed-off-by: Nora Schiffer <[email protected]> Signed-off-by: Max Merchel <[email protected]> Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Alexander Feilke <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sysinfo/tq_eeprom.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/sysinfo/tq_eeprom.h b/include/sysinfo/tq_eeprom.h
new file mode 100644
index 00000000000..6b1bddd7ce0
--- /dev/null
+++ b/include/sysinfo/tq_eeprom.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (c) 2023-2026 TQ-Systems GmbH <[email protected]>,
+ * D-82229 Seefeld, Germany.
+ * Author: Nora Schiffer
+ */
+
+#ifndef __SYSINFO_TQ_EEPROM_H__
+#define __SYSINFO_TQ_EEPROM_H__
+
+#include <sysinfo.h>
+
+enum {
+ /* Model string of TQ-Systems SOM. This is different from BOARD_MODEL,
+ * which usually combines SOM and baseboard names for TQ hardware
+ */
+ SYSID_TQ_MODEL = SYSID_USER,
+ /* SOM serial number */
+ SYSID_TQ_SERIAL,
+ /* MAC address */
+ SYSID_TQ_MAC_ADDR,
+};
+
+#endif /* __SYSINFO_TQ_EEPROM_H__ */