Skip to content

Commit 738b670

Browse files
authored
Merge pull request #3626 from gizmo98/imx
Add recognition of NXP imx socs i.MX6 dual lite, i.MX6 quad and i.MX8M mini
2 parents 28f8e14 + 433f316 commit 738b670

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scriptmodules/system.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,15 @@ function get_platform() {
430430
*rockpro64*)
431431
__platform="rockpro64"
432432
;;
433+
*imx6dl*)
434+
__platform="imx6"
435+
;;
436+
*imx6q*)
437+
__platform="imx6"
438+
;;
439+
*imx8mm*)
440+
__platform="imx8mm"
441+
;;
433442
esac
434443
elif [[ -e "/sys/devices/soc0/family" ]]; then
435444
case "$(tr -d '\0' < /sys/devices/soc0/family)" in
@@ -628,6 +637,13 @@ function platform_armv7-mali() {
628637

629638
function platform_imx6() {
630639
cpu_armv7 "cortex-a9"
640+
[[ -d /sys/class/drm/card0/device/driver/etnaviv ]] && __platform_flags+=(x11 gles mesa)
641+
}
642+
643+
function platform_imx8mm() {
644+
cpu_armv8 "cortex-a53"
645+
__platform_flags+=(x11 gles)
646+
[[ -d /sys/class/drm/card0/device/driver/etnaviv ]] && __platform_flags+=(mesa)
631647
}
632648

633649
function platform_vero4k() {

0 commit comments

Comments
 (0)