sysinfo: add support to retrieve MCA version for cc95
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
parent
c7c63e3f28
commit
0d078e45a7
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
# sysinfo
|
# sysinfo
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016-2024 by Digi International Inc.
|
# Copyright (C) 2016-2026 by Digi International Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify it
|
# 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"
|
MCA_NODE="/sys/bus/i2c/devices/0-007e"
|
||||||
elif grep -qs '\<digi,ccimx8\(x\|m\)\>' /proc/device-tree/compatible; then
|
elif grep -qs '\<digi,ccimx8\(x\|m\)\>' /proc/device-tree/compatible; then
|
||||||
MCA_NODE="/sys/bus/i2c/devices/0-0063"
|
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
|
fi
|
||||||
if [ -d "$MCA_NODE" ]; then
|
if [ -d "$MCA_NODE" ]; then
|
||||||
MCA_HW_VERSION=$(cat ${MCA_NODE}/hw_version 2>/dev/null | tr -d '\0') || MCA_HW_VERSION="??"
|
MCA_HW_VERSION=$(cat ${MCA_NODE}/hw_version 2>/dev/null | tr -d '\0') || MCA_HW_VERSION="??"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue