aboutsummaryrefslogtreecommitdiff
path: root/devices/config/VOYOv1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'devices/config/VOYOv1.sh')
-rw-r--r--devices/config/VOYOv1.sh27
1 files changed, 19 insertions, 8 deletions
diff --git a/devices/config/VOYOv1.sh b/devices/config/VOYOv1.sh
index a91761f5..957ec7a7 100644
--- a/devices/config/VOYOv1.sh
+++ b/devices/config/VOYOv1.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# shellcheck disable=SC2034
#
-# Copyright (c) 2016-2017, Linaro Ltd.
+# Copyright (c) 2016-2022, Linaro Ltd.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,11 +18,22 @@
# Helper script used for setting the VOYOv1 frequency.
-DEVICE_NAME="VOYOv1 pentium N4200"
+readonly DEVICE_NAME="VOYOv1 pentium N4200"
-NUMBER_OF_CPUS=4
-DEVICE_IS_BIG_LITTLE=false
-CPUS=(0 1 2 3)
-TARGET_FREQ=1101000
-CPUS_NAME=Pentium-N4200
-DEFAULT_GOVERNOR=schedutil
+readonly NUMBER_OF_CPUS=4
+
+# Define CPU name.
+readonly CPUS_NAME="Pentium-N4200"
+
+# Define CPU frequency.
+readonly CPUS_FREQ=1101000
+
+# Define CPU ID's and embed the name and frequency.
+readonly PENTIUM_CPUS=(${CPUS_NAME} ${CPUS_FREQ} 0 1 2 3)
+
+# Bash does not support 2d arrays so instead store the name of the array and
+# later dereference by using "!" e.g: "arr=(${!CPUS[big]})".
+declare -A -g CPUS
+CPUS[pentium]="PENTIUM_CPUS[@]"
+
+readonly DEFAULT_GOVERNOR=schedutil