sysinfo: add support to retrieve MCA version for cc95

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2026-02-17 10:55:42 +01:00
parent c7c63e3f28
commit 0d078e45a7
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#
# sysinfo
#
# Copyright (C) 2016-2024 by Digi International Inc.
# Copyright (C) 2016-2026 by Digi International Inc.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
@ -317,6 +317,8 @@ if grep -qs '\<digi,ccimx6ul\>' /proc/device-tree/compatible; then
MCA_NODE="/sys/bus/i2c/devices/0-007e"
elif grep -qs '\<digi,ccimx8\(x\|m\)\>' /proc/device-tree/compatible; then
MCA_NODE="/sys/bus/i2c/devices/0-0063"
elif grep -qs '\<digi,ccimx95\>' /proc/device-tree/compatible; then
MCA_NODE="/sys/bus/i2c/devices/7-0020"
fi
if [ -d "$MCA_NODE" ]; then
MCA_HW_VERSION=$(cat ${MCA_NODE}/hw_version 2>/dev/null | tr -d '\0') || MCA_HW_VERSION="??"