aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2019-07-09 00:29:18 +0100
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2019-08-06 15:14:48 +0100
commita6182dfb9fbdedb44c0213e2a609f31955cd5105 (patch)
tree20bb77c1071a08e52d908d8e8750d053c4f8d747
parentd4e5de4cd5f74775add5bc092b356a34783efcad (diff)
imx: imx_aips: Iterate over number of elements defined not calculated
This patch allows a value defined in imx_regs.h to indicate how many elements ought to be iterated over to configure AIPS blocks. This way we can have differentiation between i.MX6ULL and i.MX6UL which contain respectively three and two AIPS blocks. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r--plat/imx/common/imx_aips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/imx/common/imx_aips.c b/plat/imx/common/imx_aips.c
index 532d9c0e..17b1d601 100644
--- a/plat/imx/common/imx_aips.c
+++ b/plat/imx/common/imx_aips.c
@@ -52,6 +52,6 @@ void imx_aips_init(void)
(struct aipstz_regs *)(AIPS3_BASE + AIPSTZ_CONFIG_OFFSET),
};
- for (i = 0; i < ARRAY_SIZE(aips_regs); i++)
+ for (i = 0; i < AIPS_NUM_BLOCKS; i++)
imx_aips_set_default_access(aips_regs[i]);
}