diff options
Diffstat (limited to 'devices/config/flounder.sh')
-rw-r--r-- | devices/config/flounder.sh | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/devices/config/flounder.sh b/devices/config/flounder.sh index 3bae083d..4140d815 100644 --- a/devices/config/flounder.sh +++ b/devices/config/flounder.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 Nexus 9 frequency. -DEVICE_NAME="Nexus 9" +readonly DEVICE_NAME="Nexus 9" -NUMBER_OF_CPUS=2 -DEVICE_IS_BIG_LITTLE=false -CPUS=(0 1) -TARGET_FREQ=1224000 -CPUS_NAME=denver -DEFAULT_GOVERNOR=interactive +readonly NUMBER_OF_CPUS=2 + +# Define CPU name. +readonly CPUS_NAME="denver" + +# Define CPU frequency. +readonly CPUS_FREQ=1224000 + +# Define CPU ID's and embed the name and frequency. +readonly DENVER_CPUS=(${CPUS_NAME} ${CPUS_FREQ} 0 1) + +# 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[denver]="DENVER_CPUS[@]" + +readonly DEFAULT_GOVERNOR=interactive |