mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-22 20:38:03 +00:00

- Add a header to define imx_csu_init(). - Defines the Central Security Unit's Config Security Level permission bits. - Define CSU_CSL_OPEN_ACCESS permission bitmask - Run a loop to setup peripheral CSU permissions Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
17 lines
378 B
C
17 lines
378 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#include <mmio.h>
|
|
#include <imx_csu.h>
|
|
#include <imx_regs.h>
|
|
|
|
void imx_csu_init(void)
|
|
{
|
|
int i;
|
|
uintptr_t *csl_reg = (uintptr_t *)CSU_BASE;
|
|
|
|
for (i = 0; i < MXC_MAX_CSU_REGS; i++, csl_reg++)
|
|
mmio_write_32((uintptr_t)csl_reg, CSU_CSL_OPEN_ACCESS);
|
|
}
|