meta-digi-dey: sysinfo: adapt script to CC8M platforms
https://jira.digi.com/browse/DEL-6911 Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
d430cc3bab
commit
9c21f10698
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
# sysinfo
|
# sysinfo
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016-2018 by Digi International Inc.
|
# Copyright (C) 2016-2020 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
|
||||||
|
|
@ -289,7 +289,7 @@ BOARD_ID="$(cat /proc/device-tree/digi,carrierboard,id | tr -d '\0')"
|
||||||
|
|
||||||
if grep -qs '\<digi,ccimx6ul\>' /proc/device-tree/compatible; then
|
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,ccimx8x\>' /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"
|
||||||
fi
|
fi
|
||||||
if [ -d "$MCA_NODE" ]; then
|
if [ -d "$MCA_NODE" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue